Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Curly braces

Name: Anonymous 2008-04-21 17:12

Why would anyone seriously want to use curly braces to denote scope? Surely significant indentation, or implicit scope based on the surrounding keywords, is far superior.

Also consider this: every time you wish to enter { or }, you must hold down the shift key. That is one extra wasted keypress per scopening and sclosing.

And it just looks messy, like a spastic has been scribbling nonsense all over your screen.

Name: Anonymous 2008-04-21 17:13

a spastic has been scribbling nonsense all over your screen.

Name: Anonymous 2008-04-21 17:16

spastic

Name: Anonymous 2008-04-21 17:16

OP, do you use PYTHON?

Name: Anonymous 2008-04-21 17:17

You know, in HASKELL we have OIOC.

Name: Anonymous 2008-04-21 17:18

Oriental and India Office Collections

Name: Anonymous 2008-04-21 17:18

OP uses VB.NET

Name: Anonymous 2008-04-21 17:19

>>6
Optional indention of the code, asswipe.

Name: Anonymous 2008-04-21 17:20

I find it easier to type {} than []

Name: Anonymous 2008-04-21 17:23

>>8
I know what you meant, you windowlicking cumslurper.

Name: Anonymous 2008-04-21 17:25

() > {}

Name: Anonymous 2008-04-21 17:35

>>1
Pythonista
>>2,3
same person and we have been trolled constantly
>>4,5,8
Haskellite trollee
>>6,7,10
Troll
>>9
Seppler
>>11
Lisper

Name: 9 2008-04-21 17:38

>>12
You are incorrect, I am a Seshrupper. Also, stop trolling me.

Name: 11 2008-04-21 17:42

>>12
You are incorrect, I am a Pythonista. Also, stop trolling me.

Name: Anonymous 2008-04-21 17:45

Any language you can't do things like
[cod€]if (!connected(node1, node2));
        alternative_algorithm = 1;
[/code]
Isn't worth coding in. Remember, every time you trip your fellow programmers up, they're reminded that you're smarter than they are.

Name: Anonymous 2008-04-21 17:46

>>15
Oh my. I don't think I've ever failed at BBCode quite this way before.

Name: Anonymous 2008-04-21 17:47

>>16
Yes, you did fail quite hard.

Name: Anonymous 2008-04-21 17:58

lmao @ cod€

Name: Anonymous 2008-04-21 18:00

if (!connected(node1, node2));
        alternative_algorithm = 1;

Name: Anonymous 2008-04-21 18:07

>>19
eight spaces is PIG DISGUSTING

Name: Anonymous 2008-04-21 18:09

if (!connected(node1, node2));

Name: Anonymous 2008-04-21 18:15

[cod€]
Test
[/cod€]

Name: Anonymous 2008-04-21 18:26

>>22
What did you expect?

Name: Anonymous 2008-04-21 18:27

>>15

[cod€] is now a [spoiler][b][i]MEME[/i][/b][/spoiler]

Name: Anonymous 2008-04-21 18:28


(when (connected node1 node2)
  (alternative-algorithm))

wins.

Also, this thread is now about the perversity of ";" terminators and "_" in variable names.

Name: Anonymous 2008-04-21 18:28

>>24
What the fuck, shiichan. What the fuck.

Name: Anonymous 2008-04-21 18:31

>>26
You sure fucked that one up.

Protip: nest your tags

Name: Anonymous 2008-04-21 18:39

>>25
Yes, yes. I agree with both of those.

Name: Anonymous 2008-04-21 18:50

>>26
Blame the Canadians and their crazy euros.

Name: Anonymous 2008-04-21 19:25

>>12
I am the same person, Also we have been trolled constantly

Name: Anonymous 2008-04-21 19:41

>>1

Just
    Use
        Python

Name: Anonymous 2008-04-22 0:44

>>31
[b]DON'T HELP HIM[/b]

Name: Anonymous 2008-04-22 1:41

>>32
HOW DARE YOU MAKE A MISTAKE WHEN COMMUNICATING WITH EXPERT PROGRAMMERS, #1) you can't even use IRC well; #2) you can't tab-complete; #3) you can't google - this implies yer too busy jerking off and sucking soda or video-gaming. Die well, kid

Name: Anonymous 2008-04-22 9:37

I like braces, they help you to know where each statement starts and ends.

I always put the curly brace under function and class, but put it to the right of for, while, if, etc.

I also use style 3 of indentation.

Name: Anonymous 2008-04-22 9:40

>>34
Then you might as well not bother having curly braces if you use a consistent style of indentation.

Name: Anonymous 2008-04-22 18:56

C style dialects are made of fail. The suck-tax just make it easier on parsers, not on the programmers.

Brackets, case sensativity etc. All fail.

if(..){
}

vs

If .. Then
End If

Oh noes! I typed 9 extra charachters! Well, actually if you aren't using some fail IDE you can specify an if statement in 3 charachters.

Name: Anonymous 2008-04-22 19:16

>>1

Public Class Nigger
    Public Function Faggot() As String
      Return "I'm a huge nigger faggot!" & _
          " Oh, and semicolons are also fail, when we can" & _
          " do multiline statements with UNDERSCORES!"
    End Function
End Class

Name: Anonymous 2008-04-22 19:26

>>36
Extra keywords are just a poor substitute for having a way to group code.

Name: Anonymous 2008-04-22 19:34

>>37

You are correct. Semicolons are huge fail. Multiline statements are the exception not the rule. So forcing one to type a semicolon after every line, when only a few of their lines are going to be multiline is true fail.

>>38

The extra keywords at least have an explicit meaning. Where braces have no meaning other than something is ending (the starting brace does have an obvious meaning as it follows the keyword of whatever is starting). If you want to make it convey an obvious meaning (as in what exactly it is ending) you need combine it with spacing, or another popular trick is to use comments, fail). Python has shown us that spacing can be used to group code, and it does so without the braces because the spacing inherent to braces makes the braces redundant.

The only language where braces make sense is JavaScript on a webpage because of download performance concerns.

Name: Anonymous 2008-04-22 19:38

>>1
>>36
>>39

Public Class Nigger
    Public Function Faggot() As String
        Return "I'm a huge nigger faggot!" & _
            " Oh, and semicolons are also fail, when we can" & _
            " do multiline statements with UNDERSCORES!"
    End Function

    Public Sub DickButt(ByVal OP As Poster)
        If OP = FAGGOT Then
            MessageBox.Show("God damn I'm a faggot!  And look" & _
                ", the same symbol for testing equality as the" & _
                " one for assignment, based on where in the code" & _
                " it appears!  Fuck yeah DeVry University expert" & _
                " programming degree!",
                "EXPERT PROGRAMMER OP", MessageBoxButtons.OK, _
                MessageBoxIcon.Exclamation)
        End If
    End Sub
End Class

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List