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. code aesthetics

code aesthetics

Scheduled Pinned Locked Moved The Lounge
comquestiondiscussion
103 Posts 42 Posters 195 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.
  • L Lost User

    I can only see about 100 columns (in VS, using 1 screen) CRT's FTW though, they're the only kind of screen that doesn't give me a headache (anyone else have this problem?)

    T Offline
    T Offline
    T Mac Oz
    wrote on last edited by
    #94

    harold aptroot wrote:

    give me a headache

    My other half has the same problem, the place she used to work did a company-wide rollout of new LCDs as the new standard issue equipment & she just couldn't work on one. Headache would build up over the course of a day & take days to go away. At home we bought a 46" Bravia X which we had to take back too 'coz she couldn't watch it :(( . Luckily, we were able to do a straight-out swap for a Panasonic Viera 50" :-D .

    T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

    1 Reply Last reply
    0
    • J John M Drescher

      :laugh: I want a shortcut for adding it to code that does not use it!

      John

      T Offline
      T Offline
      T Mac Oz
      wrote on last edited by
      #95

      Vikram A Punathambekar wrote:

      I wish VS had a similar shortcut for stripping out Hungarian notation!

      Take out the annoying MS "redundant data type - already known from declaration" Hungarian

      John M. Drescher wrote:

      I want a shortcut for adding it to code that does not use it!

      And put in the proper "this prefix indicates how the variable is expected to be used" Hungarian?

      T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

      J 1 Reply Last reply
      0
      • P Pete OHanlon

        Hans Dietrich wrote:

        there are some people who just don't care - to them it's a job, and a clean compile is the best you can expect from them.

        For some coders, a clean compile is shippable code.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        T Offline
        T Offline
        T Mac Oz
        wrote on last edited by
        #96

        Pete O'Hanlon wrote:

        For some coders, a clean compile is shippable code.

        For some coders managers, a clean compile is shippable code. So painfully true! Try going on holidays & having to clean up the mess after you come back when your boss has shipped the work experience kid's code as release product :mad:

        T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

        modified on Friday, September 19, 2008 2:08 AM

        1 Reply Last reply
        0
        • Mike HankeyM Mike Hankey

          I totally agree. I'm not fanatical but like to write and read code that is neatly formatted. Easier to read and follow. My biggest pet peeve is no comments. The app I'm supporting at the moment, although very well written is extremely sophisticated and comments are very very rare, and of course no docs. Though I do not comment every line of code I write I do comment in places where it makes sense. Mike

          Semper Fi http://www.hq4thmarinescomm.com[^] My Site

          T Offline
          T Offline
          T Mac Oz
          wrote on last edited by
          #97

          Mike Hankey wrote:

          My biggest pet peeve is no comments.

          Don't hurt me! ;P My old employer (where I stayed for far too long) was a real cowboy, never ending cycles of "gotta have this yesterday" & the work was mostly very compartmentalised (i.e. only one person doing any real work on any given project) so I got into some very bad habits. Running my own ship now & having to work with others on a MAJOR project, I'm improving steadily.

          T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

          Mike HankeyM 1 Reply Last reply
          0
          • T Theodore M Seeber

            I think I've yet to meet three programmers on a team who all agree on what aesthetics are. consistent yes, within one coder's code. Which is practically useless. I find algorithm complexity to be far more beautiful than the spacing in the original code- but then again, I can READ CODE, rather than READ COMMENTS. Having said that- you'll always find indentation in my code, because I specifically find I have a problem with remembering to close multi-line groups. Other than that- well, that's all personal aesthetics, and asethetics are *always* subjective.

            T Offline
            T Offline
            T Mac Oz
            wrote on last edited by
            #98

            Theodore M. Seeber wrote:

            I can READ CODE, rather than READ COMMENTS.

            Right there with you, however, I'm learning that I'm in the minority on this one. Another thread (or it might have just been an article - don't remember now) in recent months discussed how programmers tend to "think" in the first programming language they learn. While Pascal was technically the first language I learned, C++ was the first I used to any real purpose. I can "read" C/C++ written by another C++ programmer, quite easily. C++ written by someone who "thinks" in VB is gobbledegook to me, I struggle to follow un-commented VB code and I'm pretty sure that any VB code that I write without comments is indecipherable to a VB programmer! The educational background of one of my colleagues has been very theory-based so he actually "thinks" in pseudo-code - which means it's almost imperative that he write comments first (to lay out the pseudo-code) before he can translate into program code!

            T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

            T 1 Reply Last reply
            0
            • T T Mac Oz

              Mike Hankey wrote:

              My biggest pet peeve is no comments.

              Don't hurt me! ;P My old employer (where I stayed for far too long) was a real cowboy, never ending cycles of "gotta have this yesterday" & the work was mostly very compartmentalised (i.e. only one person doing any real work on any given project) so I got into some very bad habits. Running my own ship now & having to work with others on a MAJOR project, I'm improving steadily.

              T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

              Mike HankeyM Offline
              Mike HankeyM Offline
              Mike Hankey
              wrote on last edited by
              #99

              I know working in the "had to have it yesterday mentality" position is hard to keep up with such things as commenting, docs and such but if the time is spent up front you or someone else that has to maintain doesn't have to spend vast amounts of time figuring it out.

              T-Mac-Oz wrote:

              I'm improving steadily.

              Good for you. I don't always do the best job but try to keep up with it. In college my prof was a stickler for commenting and wouldn't except a project unless it was commented so I guess I picked it up early in my career. Mike

              Semper Fi http://www.hq4thmarinescomm.com[^] My Site

              1 Reply Last reply
              0
              • T Tom Deketelaere

                I try to do the same, but isn't this sort of relative, what looks good for one programmer may look like crap for another. Of course some rules are very basic (like not letting code be longer then the width of a normal screen) and should always be followed (I think)

                A Offline
                A Offline
                Alex Espinoza
                wrote on last edited by
                #100

                For me aesthetics is tied to improve readability. Not really how beautiful the code looks. I guess some people code argue that even "improved readability" could be relative also. The good thing is you try code styles with your team and get to a standard that helps everyone better understand the code.

                1 Reply Last reply
                0
                • T T Mac Oz

                  Theodore M. Seeber wrote:

                  I can READ CODE, rather than READ COMMENTS.

                  Right there with you, however, I'm learning that I'm in the minority on this one. Another thread (or it might have just been an article - don't remember now) in recent months discussed how programmers tend to "think" in the first programming language they learn. While Pascal was technically the first language I learned, C++ was the first I used to any real purpose. I can "read" C/C++ written by another C++ programmer, quite easily. C++ written by someone who "thinks" in VB is gobbledegook to me, I struggle to follow un-commented VB code and I'm pretty sure that any VB code that I write without comments is indecipherable to a VB programmer! The educational background of one of my colleagues has been very theory-based so he actually "thinks" in pseudo-code - which means it's almost imperative that he write comments first (to lay out the pseudo-code) before he can translate into program code!

                  T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

                  T Offline
                  T Offline
                  Theodore M Seeber
                  wrote on last edited by
                  #101

                  True to a certain extent. Those of use who started out in "no style" languages though, like early 1980s line number basic or Motorola Assembly, can get to the point where we read in any language. It also helps that I had training in a large variety of languages in college; usually takes 2-3 days for me to switch between, and then I'm comfortable again. SQL, VB, Forth, Fortran, Cobol, C-derived, Lisp, single-or-multi threading; there are only so many combinations. And to think it used to be said that anybody who started out in a language with a freestyle jmp or goto instruction was ruined forever! I think it just made me much more tolerant of different styles in the long run- debugging spaghetti code makes you ready for *anything*.

                  1 Reply Last reply
                  0
                  • T T Mac Oz

                    Vikram A Punathambekar wrote:

                    I wish VS had a similar shortcut for stripping out Hungarian notation!

                    Take out the annoying MS "redundant data type - already known from declaration" Hungarian

                    John M. Drescher wrote:

                    I want a shortcut for adding it to code that does not use it!

                    And put in the proper "this prefix indicates how the variable is expected to be used" Hungarian?

                    T-Mac-Oz "When I'm ruler of the universe ... I'm working on it, I'm working on it. I'm just as frustrated as you are. It turns out to be a non-trivial problem." - Linus Torvalds

                    J Offline
                    J Offline
                    John M Drescher
                    wrote on last edited by
                    #102

                    Being that I have written 500K lines of MFC I have grown very accustomed to using Hungarian notation and I like it. Many times if some one sends me a small code sample without Hungarian notation I will add it myself...

                    John

                    1 Reply Last reply
                    0
                    • M Marc Clifton

                      I take care to ensure the aesthetics of my code. That spacing and formatting is consistent. I don't care if I'm writing throw away code or production code. The code should always look neat and tidy. Why don't other programmers do the same??? OK, I'm sure there are some out there. And yes, there are code beautifiers, so who really cares, right? What's your thoughts on whether code should look good, in terms of spacing, formatting, structure, etc.? Marc

                      Thyme In The Country Interacx My Blog

                      C Offline
                      C Offline
                      CPallini
                      wrote on last edited by
                      #103

                      My code is beautiful. By definition. :-D

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      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