Click here to Skip to main content
15,892,161 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Eddy Vluggen15-Oct-18 0:31
professionalEddy Vluggen15-Oct-18 0:31 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Kornfeld Eliyahu Peter13-Oct-18 20:00
professionalKornfeld Eliyahu Peter13-Oct-18 20:00 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Sander Rossel14-Oct-18 0:25
professionalSander Rossel14-Oct-18 0:25 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 3:50
georani14-Oct-18 3:50 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Sander Rossel14-Oct-18 4:03
professionalSander Rossel14-Oct-18 4:03 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 2:58
georani14-Oct-18 2:58 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Kornfeld Eliyahu Peter14-Oct-18 3:16
professionalKornfeld Eliyahu Peter14-Oct-18 3:16 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 6:15
georani14-Oct-18 6:15 



Please, see this hypothetical and valid VB.NET code:


VB
'VB.NET code 
 Select Case L1
            Case Is < 50
                If L1 = 42 Then

                    For x = 0 To 100
                        For y = 0 To 100
                            For z = 0 To 100
                                L1 = DoSomethingWithL(x,y,z,L)
                                If L1 = 2 Then L1 += 1 Else L1 = 0                             
                            Next z
                        Next y
                    Next x
                End If

            Case Is > 390
                L1 = 0
            Case Is = 70
                L1 = 32
 End Select


Now compare with the only way to do the same thing in C#:

C#
// C# code with "Curly Braces Hell"

	if (L1 < 50)
	{
		if (L1 == 42)
		{

			for (var x = 0; x <= 100; x++)
			{
				for (var y = 0; y <= 100; y++)
				{
					for (var z = 0; z <= 100; z++)
					{
                        L1 = DoSomethingWithL(x,y,z,L);
						if (L1 == 2)
						{
							L1 += 1;
						}
						else
						{
							L1 = 0;
						}  
					}
				}
			}
		}
	}

	else if (L1 > 390)
	{
		L1 = 0;
	}

	else if (L1 == 70)
	{
		L1 = 32;
	}



Which is more readable and fun? Do you prefer "Curly Braces Hell"?

modified 14-Oct-18 14:08pm.

GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Kornfeld Eliyahu Peter14-Oct-18 6:55
professionalKornfeld Eliyahu Peter14-Oct-18 6:55 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 7:45
georani14-Oct-18 7:45 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Mark Miller15-Oct-18 4:42
Mark Miller15-Oct-18 4:42 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani15-Oct-18 4:59
georani15-Oct-18 4:59 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Mark Miller15-Oct-18 5:13
Mark Miller15-Oct-18 5:13 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani15-Oct-18 5:50
georani15-Oct-18 5:50 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
User 49097414-Oct-18 23:15
User 49097414-Oct-18 23:15 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Kornfeld Eliyahu Peter14-Oct-18 23:45
professionalKornfeld Eliyahu Peter14-Oct-18 23:45 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
User 49097415-Oct-18 0:27
User 49097415-Oct-18 0:27 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
André Pereira14-Oct-18 22:56
André Pereira14-Oct-18 22:56 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Dave Kreskowiak14-Oct-18 4:50
mveDave Kreskowiak14-Oct-18 4:50 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 6:00
georani14-Oct-18 6:00 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Dave Kreskowiak14-Oct-18 6:06
mveDave Kreskowiak14-Oct-18 6:06 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Dave Kreskowiak14-Oct-18 9:21
mveDave Kreskowiak14-Oct-18 9:21 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
georani14-Oct-18 11:32
georani14-Oct-18 11:32 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Dave Kreskowiak14-Oct-18 11:55
mveDave Kreskowiak14-Oct-18 11:55 
GeneralRe: (Again) Visual Basic.NET Exceeded C# Popularity in TIOBE in October 2018 And it is Raising Pin
Dave Kreskowiak17-Oct-18 9:29
mveDave Kreskowiak17-Oct-18 9:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.