Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Sloppy Code - thoughts

Sloppy Code - thoughts

Scheduled Pinned Locked Moved The Lounge
questiondiscussion
55 Posts 32 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jeremy Falcon

    While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

    Jeremy Falcon

    R Offline
    R Offline
    R Giskard Reventlov
    wrote on last edited by
    #2

    However awful my code might be, at least it's properly formatted... :-) I agree with you; it's the same when I interview a developer that turns up looking like a homeless person: if you can't be bothered to take care of yourself, why would I believe that you'd be any different with your attitude to coding?

    J K L J 4 Replies Last reply
    0
    • R R Giskard Reventlov

      However awful my code might be, at least it's properly formatted... :-) I agree with you; it's the same when I interview a developer that turns up looking like a homeless person: if you can't be bothered to take care of yourself, why would I believe that you'd be any different with your attitude to coding?

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #3

      Or if they smell bad man. All the sudden the entire interaction becomes about the stinch and how to get away from it.

      Jeremy Falcon

      R 1 Reply Last reply
      0
      • J Jeremy Falcon

        While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

        Jeremy Falcon

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #4

        What Karel said. Coding is, well, a love affair, and I expect code to be treated respectfully, and in part that means it should be visually pleasing, from 10 feet away, to look at.

        Jeremy Falcon wrote:

        the coders that write messy code tend to also have messy cars and homes. It's gross.

        Have you visited them??? But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience. Marc

        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

        J 1 Reply Last reply
        0
        • M Marc Clifton

          What Karel said. Coding is, well, a love affair, and I expect code to be treated respectfully, and in part that means it should be visually pleasing, from 10 feet away, to look at.

          Jeremy Falcon wrote:

          the coders that write messy code tend to also have messy cars and homes. It's gross.

          Have you visited them??? But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience. Marc

          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #5

          Marc Clifton wrote:

          Have you visited them???

          Some I've hung out with over the years and some I just listened to them talk about their habits. It's amazing what you can learn if you really listen to the stuff people say.

          Marc Clifton wrote:

          But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience.

          Agreed. It's just a lazy mentality. And if they're that lazy about formatting, chances are they're that lazy about learning and education.

          Jeremy Falcon

          M 1 Reply Last reply
          0
          • J Jeremy Falcon

            Or if they smell bad man. All the sudden the entire interaction becomes about the stinch and how to get away from it.

            Jeremy Falcon

            R Offline
            R Offline
            R Giskard Reventlov
            wrote on last edited by
            #6

            That is the worst of all possible scenarios. Have had to tell someone that they need to bathe. Was not pleasant.

            1 Reply Last reply
            0
            • J Jeremy Falcon

              Marc Clifton wrote:

              Have you visited them???

              Some I've hung out with over the years and some I just listened to them talk about their habits. It's amazing what you can learn if you really listen to the stuff people say.

              Marc Clifton wrote:

              But even more of an issue for me is, coders that write messy code also write bad code, at least in my experience.

              Agreed. It's just a lazy mentality. And if they're that lazy about formatting, chances are they're that lazy about learning and education.

              Jeremy Falcon

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #7

              Jeremy Falcon wrote:

              It's amazing what you can learn if you really listen to the stuff people say.

              Aye, and listening is a skill I find very few people have. This guy[^] has some short TedTalks on the subject I found quite good, if you're interested. Marc

              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

              J 1 Reply Last reply
              0
              • J Jeremy Falcon

                While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                Jeremy Falcon

                M Offline
                M Offline
                Mike Hankey
                wrote on last edited by
                #8

                Code that only a mother could love?

                New version: WinHeist Version 2.1.0 My goal in life is to have a psychiatric disorder named after me. I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.

                J 1 Reply Last reply
                0
                • M Mike Hankey

                  Code that only a mother could love?

                  New version: WinHeist Version 2.1.0 My goal in life is to have a psychiatric disorder named after me. I'm currently unsupervised, I know it freaks me out too but the possibilities are endless.

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #9

                  +5 :thumbsup:

                  Jeremy Falcon

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    Jeremy Falcon wrote:

                    It's amazing what you can learn if you really listen to the stuff people say.

                    Aye, and listening is a skill I find very few people have. This guy[^] has some short TedTalks on the subject I found quite good, if you're interested. Marc

                    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #10

                    I will check that out. Thanks.

                    Jeremy Falcon

                    1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                      Jeremy Falcon

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #11

                      How is it even possible to have badly formatted code in this day and age? You can just press ctrl+shift+alt+windows+1+F and have it automatically formatted.

                      J S P 3 Replies Last reply
                      0
                      • L Lost User

                        How is it even possible to have badly formatted code in this day and age? You can just press ctrl+shift+alt+windows+1+F and have it automatically formatted.

                        J Offline
                        J Offline
                        Jeremy Falcon
                        wrote on last edited by
                        #12

                        Formatting is just one piece of the puzzle.

                        Jeremy Falcon

                        1 Reply Last reply
                        0
                        • R R Giskard Reventlov

                          However awful my code might be, at least it's properly formatted... :-) I agree with you; it's the same when I interview a developer that turns up looking like a homeless person: if you can't be bothered to take care of yourself, why would I believe that you'd be any different with your attitude to coding?

                          K Offline
                          K Offline
                          Kenneth Haugland
                          wrote on last edited by
                          #13

                          So you think Einstein was wrong? ;P

                          R 1 Reply Last reply
                          0
                          • J Jeremy Falcon

                            While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                            Jeremy Falcon

                            S Offline
                            S Offline
                            Slacker007
                            wrote on last edited by
                            #14

                            Jeremy Falcon wrote:

                            Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                            I was going to point out the same fact, interestingly enough. :thumbsup: Edit: I am saying this is "fact" only because I have never seen otherwise. I am sure it really is not a fact. :rolleyes:

                            K 1 Reply Last reply
                            0
                            • L Lost User

                              How is it even possible to have badly formatted code in this day and age? You can just press ctrl+shift+alt+windows+1+F and have it automatically formatted.

                              S Offline
                              S Offline
                              Slacker007
                              wrote on last edited by
                              #15

                              People can also make their bed, take out the trash, and do the dishes...but they don't.

                              1 Reply Last reply
                              0
                              • S Slacker007

                                Jeremy Falcon wrote:

                                Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                                I was going to point out the same fact, interestingly enough. :thumbsup: Edit: I am saying this is "fact" only because I have never seen otherwise. I am sure it really is not a fact. :rolleyes:

                                K Offline
                                K Offline
                                Kenneth Haugland
                                wrote on last edited by
                                #16

                                We don't really have time for facts, we mostly go with assumptions instead.

                                J 1 Reply Last reply
                                0
                                • J Jeremy Falcon

                                  While we're on the subject of code reviews, what do you guys think about sloppy code that's not formatted well? I tend to not think I'm that anal retentive, but I admit the poindexter comes out when I see sloppy code that's not kept up to a proper margin, not indented decently, old commented code left in, etc. Oddly enough, the coders that write messy code tend to also have messy cars and homes. It's gross.

                                  Jeremy Falcon

                                  Sander RosselS Offline
                                  Sander RosselS Offline
                                  Sander Rossel
                                  wrote on last edited by
                                  #17

                                  It's so easy to format your code properly... Ctrl + K, Ctrl + D (in Visual Studio anyway). It doesn't delete white spaces, but it does quite a bit for you. I'm amazed at how much badly formatted code I still see! And in my experience if the code is poorly formatted it's poorly written. Comments are as bad, or worse...

                                  // Create a new person
                                  Person p = new Person();

                                  NO, REALLY!? Arghhh! And I actually see those kinds of comments... Another thing I can't stand is copy-paste programming. And much too often it's way too obvious. The following is some production code I've had the 'pleasure' of working with (it was an obvious comment that was copy-pasted, but not edited with the code).

                                  // Save the customer
                                  product.Save();

                                  I looked at it and screamed in disgust "OH LORD, WHY DO YOU HATE ME SO!? :(( "

                                  My blog[^]

                                  public class SanderRossel : Lazy<Person>
                                  {
                                  public void DoWork()
                                  {
                                  throw new NotSupportedException();
                                  }
                                  }

                                  A 1 Reply Last reply
                                  0
                                  • K Kenneth Haugland

                                    We don't really have time for facts, we mostly go with assumptions instead.

                                    J Offline
                                    J Offline
                                    Jeremy Falcon
                                    wrote on last edited by
                                    #18

                                    I'll accept that as a fact.

                                    Jeremy Falcon

                                    K 1 Reply Last reply
                                    0
                                    • J Jeremy Falcon

                                      I'll accept that as a fact.

                                      Jeremy Falcon

                                      K Offline
                                      K Offline
                                      Kenneth Haugland
                                      wrote on last edited by
                                      #19

                                      You assume too much :laugh:

                                      1 Reply Last reply
                                      0
                                      • K Kenneth Haugland

                                        So you think Einstein was wrong? ;P

                                        R Offline
                                        R Offline
                                        R Giskard Reventlov
                                        wrote on last edited by
                                        #20

                                        About what?

                                        K J 2 Replies Last reply
                                        0
                                        • R R Giskard Reventlov

                                          About what?

                                          K Offline
                                          K Offline
                                          Kenneth Haugland
                                          wrote on last edited by
                                          #21

                                          Quote:

                                          if you can't be bothered to take care of yourself

                                          Pic[^]. Do you think he`looks like a physicist or a hobo?

                                          R 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups