Close

Thread: Funny pictures

  1. #15111
    Thinks Gravy Boats are SEXY ASF! izzy's Avatar
    Join Date
    Jun 2015
    Location
    Centennial
    Posts
    1,630

    Default

    Quote Originally Posted by CavSct1983 View Post
    Personally, I say #2 as it's easier to read and find where you missed something. I'm sure some pasty nerd is going to correct me.
    Guess I'm pasty because it's #1 or gtfo

  2. #15112
    Splays for the Bidet CS1983's Avatar
    Join Date
    Jan 2011
    Location
    St. Augustine, FL
    Posts
    6,260

    Default

    Quote Originally Posted by izzy View Post
    Guess I'm pasty because it's #1 or gtfo
    You're tan though, so you're only pasty on the inside.

    Curious as to why #1?
    Feedback

    It is terrible to contemplate how few politicians are hanged. - The Cleveland Press, March 1, 1921, GK Chesterton

  3. #15113
    Machine Gunner Circuits's Avatar
    Join Date
    Sep 2003
    Location
    Colofornia Springs, CO
    Posts
    2,411

    Default

    Quote Originally Posted by CavSct1983 View Post
    Curious as to why #1?
    I'm #1 as well. I'll go so far as to function() { code;code;code; }, too.

    For me, has to do with compressing lines of code so I can see more of the flow in one screen. Even on big monitors with 70+ lines I hate having to scroll up and down to see functional blocks on one screen if I don't have to, and when I'm stuck on 80x25 line terminals or worse it becomes extra important.

    My editor tracks indents and brace-matching, so I don't need visual blocking to follow it.
    "The only real difference between the men and the boys, is the number and size, and cost of their toys."
    NRA Life, GOA Life, SAF Life, CSSA Life, NRA Certified Instructor Circuits' Feedback

  4. #15114
    Splays for the Bidet CS1983's Avatar
    Join Date
    Jan 2011
    Location
    St. Augustine, FL
    Posts
    6,260

    Default


    Feedback

    It is terrible to contemplate how few politicians are hanged. - The Cleveland Press, March 1, 1921, GK Chesterton

  5. #15115
    A FUN TITLE asmo's Avatar
    Join Date
    May 2012
    Location
    Douglas County (Parker)
    Posts
    3,446

    Default

    Quote Originally Posted by izzy View Post
    Guess I'm pasty because it's #1 or gtfo
    To be clear its: (defun function(foo)oper(baz))

    All other is heresy.
    What is my joy if all hands, even the unclean, can reach into it? What is my wisdom, if even the fools can dictate to me? What is my freedom, if all creatures, even the botched and impotent, are my masters? What is my life, if I am but to bow, to agree and to obey?
    -- Ayn Rand, Anthem (Chapter 11)

  6. #15116
    My Avatar Is Prettier Than I Am asystejs's Avatar
    Join Date
    Jan 2016
    Location
    Lakewood, CO
    Posts
    142

    Default

    Function #2 is correct
    The last thing I want to do is spend time hunting thru complex nested code for a { and its matching matching }

  7. #15117
    Thinks Gravy Boats are SEXY ASF! izzy's Avatar
    Join Date
    Jun 2015
    Location
    Centennial
    Posts
    1,630

    Default

    Quote Originally Posted by CavSct1983 View Post
    You're tan though, so you're only pasty on the inside.

    Curious as to why #1?
    If you have to ask you'll never know.


    It's just preference but as mentioned before you end up having fewer lines of code. To me it makes it easier to read.

  8. #15118
    Thinks Gravy Boats are SEXY ASF! izzy's Avatar
    Join Date
    Jun 2015
    Location
    Centennial
    Posts
    1,630

    Default

    Quote Originally Posted by asystejs View Post
    Function #2 is correct
    The last thing I want to do is spend time hunting thru complex nested code for a { and its matching matching }
    I guess that's better than no brackets. If we keep on with this conversation this thread will have to be renamed though.

  9. #15119
    Splays for the Bidet CS1983's Avatar
    Join Date
    Jan 2011
    Location
    St. Augustine, FL
    Posts
    6,260

    Default

    Quote Originally Posted by izzy View Post
    If you have to ask you'll never know.


    It's just preference but as mentioned before you end up having fewer lines of code. To me it makes it easier to read.
    I find it harder to read. I like anything I write or have to read to be in nice blocks and no chance of missing something.

    I also indent like crazy so I don't have to guess where something's nested place is. Thankfully, none of this is a present concern. I've only had to really write code for classes and a few for work that were really just to automagical some stuff *I* was doing.

    You're not one of those "Your code should be simple enough that you don't have to comment" types are you?
    Feedback

    It is terrible to contemplate how few politicians are hanged. - The Cleveland Press, March 1, 1921, GK Chesterton

  10. #15120
    Thinks Gravy Boats are SEXY ASF! izzy's Avatar
    Join Date
    Jun 2015
    Location
    Centennial
    Posts
    1,630

    Default

    Quote Originally Posted by CavSct1983 View Post
    I find it harder to read. I like anything I write or have to read to be in nice blocks and no chance of missing something.

    I also indent like crazy so I don't have to guess where something's nested place is. Thankfully, none of this is a present concern. I've only had to really write code for classes and a few for work that were really just to automagical some stuff *I* was doing.

    You're not one of those "Your code should be simple enough that you don't have to comment" types are you?
    I comment more than the other developers I work with, I put in lots and lots. I've always used K&R code style so it's just what I'm used to. Every place I've worked uses it. In the end it's a matter of what someone is comfortable with. I will say that if you work for me I'll make you use K&R.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •