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. Programming Language and code aesthetics

Programming Language and code aesthetics

Scheduled Pinned Locked Moved The Lounge
csharpjavajavascriptpythonperl
72 Posts 39 Posters 7 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.
  • N Nemanja Trifunovic

    Christian Graus wrote:

    C++ and C# are top of my list.

    ...of ugly ones?

    Programming Blog utf8-cpp

    B Offline
    B Offline
    Big Daddy Farang
    wrote on last edited by
    #26

    Good question. If he considers C to be ugly, how could he consider C++ or C# to be, well, not ugly?

    BDF People don't mind being mean; but they never want to be ridiculous. -- Moliere

    K 1 Reply Last reply
    0
    • N Nemanja Trifunovic

      Christian Graus wrote:

      C++ and C# are top of my list.

      ...of ugly ones?

      Programming Blog utf8-cpp

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #27

      No, of the nice ones. But, that's probably b/c I learned C++ first, so the way it looks makes sense to me.

      Christian Graus Driven to the arms of OSX by Vista.

      M 1 Reply Last reply
      0
      • S Single Step Debugger

        If one says that the Object Pascal is the best language ever created I probably would agree. But pretty?!? It’s ugly like hell. Even using the “With” can't prevent code from looking like teenage chat-room.

        The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

        J Offline
        J Offline
        Jim Crafton
        wrote on last edited by
        #28

        I'd argue that part of Object Pascal's "prettiness" is in it's uniformity. There's a precision to it's design that make it feel like something that was crafted and thought about, whereas C/C++ tend to feel like something that was just kind of grown from some crazy mad scientist's post-60's LSD trip, and then gradually beaten into shape to be something useful. While the verbosity can be a bit much, I'd agree with you on the "with" keyword, it also, IMHO, leads to very nicely laid out and well written code. Of all the code I've ever read, OP was the easiest to just fall into, and the best code I've ever read, bar none, is Borland's VCL source. It's clean, clear, and easy to follow, with largely logical names, well thought out design, it's just good stuff. Contrast that with most C/C++ code, which frequently is either a maze of cryptic, vowel challenged, 3 letter variable names, or an unreadable morass of hungarian notation, half of which doesn't even match up any more, plus the haze of pre-processor statements, which make you want to poke your eyes out trying to figure out what's going on.

        ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

        S 1 Reply Last reply
        0
        • J Jim Crafton

          I'd argue that part of Object Pascal's "prettiness" is in it's uniformity. There's a precision to it's design that make it feel like something that was crafted and thought about, whereas C/C++ tend to feel like something that was just kind of grown from some crazy mad scientist's post-60's LSD trip, and then gradually beaten into shape to be something useful. While the verbosity can be a bit much, I'd agree with you on the "with" keyword, it also, IMHO, leads to very nicely laid out and well written code. Of all the code I've ever read, OP was the easiest to just fall into, and the best code I've ever read, bar none, is Borland's VCL source. It's clean, clear, and easy to follow, with largely logical names, well thought out design, it's just good stuff. Contrast that with most C/C++ code, which frequently is either a maze of cryptic, vowel challenged, 3 letter variable names, or an unreadable morass of hungarian notation, half of which doesn't even match up any more, plus the haze of pre-processor statements, which make you want to poke your eyes out trying to figure out what's going on.

          ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

          S Offline
          S Offline
          Single Step Debugger
          wrote on last edited by
          #29

          Jim Crafton wrote:

          Of all the code I've ever read, OP was the easiest to just fall into, and the best code I've ever read, bar none, is Borland's VCL source. It's clean, clear, and easy to follow, with largely logical names, well thought out design, it's just good stuff.

          I’m totally agreed with that. The VCL even the Indy components was masterpiece. Though some function names like “GetDefaultSystemFonts” are a little too verbose.:)

          The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

          1 Reply Last reply
          0
          • R Ray Cassick

            I take heat for it but I love VB.net. C++ may look pretty form a distance but as she gets closer you start to see that her blouse is off by one button, one high heel is shorter than the other and her eyes are crossed in a wild and crazy look that makes you think she perpetually drinks way too much. Oh yeah, and her hair extensions are starting to come loose...


            FFRF[^]
            My LinkedIn profile[^]
            My Programmers Blog[^]

            M Offline
            M Offline
            Michael Bergman
            wrote on last edited by
            #30

            Ray Cassick wrote:

            I take heat for it but I love VB.net.

            As well you should.

            m.bergman

            -- For Bruce Schneier, quanta only have one state : afraid.

            1 Reply Last reply
            0
            • R Rama Krishna Vavilala

              Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

              Proud to be a CPHog user

              M Offline
              M Offline
              Michael Bergman
              wrote on last edited by
              #31

              My vote for the prettiest language is PCL6. My vote for the ugliest language is PCL6.

              m.bergman

              -- For Bruce Schneier, quanta only have one state : afraid.

              1 Reply Last reply
              0
              • S stephen hazel

                forth is prettiest (but not so useful in the long run) c++ is the next prettiest then c then 68000 asm the rest are are an absolute dog's breakfast... X|

                G Offline
                G Offline
                Gary R Wheeler
                wrote on last edited by
                #32

                Steve Hazel wrote:

                forth is prettiest (but not so useful in the long run

                You didn't take your meds today, did you? FORTH; blech.

                Software Zen: delete this;
                Fold With Us![^]

                S 1 Reply Last reply
                0
                • P Paul Conrad

                  Christian Graus wrote:

                  Any BASIC derived language is ugly as sin. Objective C is ugly

                  I'd hate to see what kind of programming language you could get if you hooked those two up.

                  "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                  B Offline
                  B Offline
                  bulg
                  wrote on last edited by
                  #33

                  __asm{...}

                  P 1 Reply Last reply
                  0
                  • B bulg

                    __asm{...}

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #34

                    bulg wrote:

                    __asm{...}

                    Not bad, at least compared to AT&T style assembly with gcc :rolleyes:

                    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                    1 Reply Last reply
                    0
                    • R Ray Cassick

                      I take heat for it but I love VB.net. C++ may look pretty form a distance but as she gets closer you start to see that her blouse is off by one button, one high heel is shorter than the other and her eyes are crossed in a wild and crazy look that makes you think she perpetually drinks way too much. Oh yeah, and her hair extensions are starting to come loose...


                      FFRF[^]
                      My LinkedIn profile[^]
                      My Programmers Blog[^]

                      S Offline
                      S Offline
                      Shog9 0
                      wrote on last edited by
                      #35

                      Ray Cassick wrote:

                      C++ may look pretty form a distance

                      But rarely does. ...unless it happens to be standing next to VB... :rolleyes:

                      ----

                      You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

                      1 Reply Last reply
                      0
                      • R Rama Krishna Vavilala

                        Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

                        Proud to be a CPHog user

                        S Offline
                        S Offline
                        Shog9 0
                        wrote on last edited by
                        #36

                        I enjoy the look of C and JavaScript. Both lend themselves well to small, tightly-written functions. Of course, any language can be made ugly.

                        ----

                        You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

                        1 Reply Last reply
                        0
                        • R Rama Krishna Vavilala

                          Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

                          Proud to be a CPHog user

                          V Offline
                          V Offline
                          Vikram A Punathambekar
                          wrote on last edited by
                          #37

                          I find the C-derived languages pleasing to look at. I am not a VB basher, but the code looks ugly. I am not familiar enough with other languages to comment on them.

                          Cheers, Vıkram.


                          Stand up to be seen. Speak up to be heard. Shut up to be appreciated.

                          1 Reply Last reply
                          0
                          • G Gary R Wheeler

                            Steve Hazel wrote:

                            forth is prettiest (but not so useful in the long run

                            You didn't take your meds today, did you? FORTH; blech.

                            Software Zen: delete this;
                            Fold With Us![^]

                            S Offline
                            S Offline
                            stephen hazel
                            wrote on last edited by
                            #38

                            forth can be elegant. Like perl, it can also be an absolute dog's breakfast like the rest...

                            G 1 Reply Last reply
                            0
                            • R Rama Krishna Vavilala

                              Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

                              Proud to be a CPHog user

                              P Offline
                              P Offline
                              PIEBALDconsult
                              wrote on last edited by
                              #39

                              Depends on what you're used to. Even W finds his wife attractive. X| Over the weekend I glanced at some C code I wrote about ten years ago -- X| A colleague showed me an SQL function he was working on today -- X| I just glanced at an old Ada book I have sitting around (I never learned it) -- X| COBOL, BASIC -- X| Pascal not so much. But C# I really enjoy now. (Even though no one else would format it the way I do.) :~ I think the dividing line is whether or not the language uses BEGIN/END. The fewer "words" and the more symbols the better.

                              1 Reply Last reply
                              0
                              • S stephen hazel

                                forth can be elegant. Like perl, it can also be an absolute dog's breakfast like the rest...

                                G Offline
                                G Offline
                                Gary R Wheeler
                                wrote on last edited by
                                #40

                                ... Beholder, Beauty Eye of

                                Software Zen: delete this;
                                Fold With Us![^]

                                S 1 Reply Last reply
                                0
                                • G Gary R Wheeler

                                  ... Beholder, Beauty Eye of

                                  Software Zen: delete this;
                                  Fold With Us![^]

                                  S Offline
                                  S Offline
                                  stephen hazel
                                  wrote on last edited by
                                  #41

                                  sooooooooooo true. Kinda Yoda like... (Like Grover I talk. SORRY!)

                                  1 Reply Last reply
                                  0
                                  • R Rama Krishna Vavilala

                                    Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

                                    Proud to be a CPHog user

                                    A Offline
                                    A Offline
                                    andrey dmitriev
                                    wrote on last edited by
                                    #42

                                    I found G (LabVIEW) most and really beautiful. Andrey.

                                    1 Reply Last reply
                                    0
                                    • R Rama Krishna Vavilala

                                      Does Code written in some languages appear more "beautiful" than other languages? Granted, there is an element of developer there too. But ignoring the developer, do code in some languages prone to appear more "ugly" than in some other languages. For example, to me code written in Java/C#/Python/JavaScript appear aesthetically more pleasing than that in Objective C or Scheme (even though I love Scheme) or Perl. What languages do you find "beautiful" ? or you don't think that there is an aesthetic aspect of a languages?

                                      Proud to be a CPHog user

                                      B Offline
                                      B Offline
                                      Behzad Sedighzadeh
                                      wrote on last edited by
                                      #43

                                      I think C is still the most beautiful Language, though i do most of my job in C#.Yo can build outside world with C.That's enough to say C is the best.

                                      Behzad

                                      1 Reply Last reply
                                      0
                                      • S Single Step Debugger

                                        Mustafa, could I ask you something? Print the quoted one, find some notary sign it, put a seal and bind with a government apostil after that send it to me. It could be something like: I, down signed Mustafa Ismail Mustafa Hereby Authorize Deyan Georgiev to:

                                        Mustafa Ismail Mustafa wrote:

                                        Go out, enjoy a drink or four, meet some girls, meet some new people who aren't in the computer business

                                        I need something more official for my wife.:)

                                        The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                                        M Offline
                                        M Offline
                                        Mustafa Ismail Mustafa
                                        wrote on last edited by
                                        #44

                                        Deyan Georgiev wrote:

                                        I need something more official for my wife

                                        Uh... I've known women to become ferocious (for want of a much better word) when something tries to interrupt their control of their men. Pass. I value my life :)

                                        Don't forget to vote if the response was helpful


                                        Sig history "dad" Ishmail-Samuel Mustafa Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation "There is no wealth like knowledge, no poverty like ignorance" Ali Ibn Abi Talib

                                        1 Reply Last reply
                                        0
                                        • J Jim Crafton

                                          Hey Mustafa, while you're at it for Deyan, could you send me one too? The wife's leash tends to be pretty short...

                                          ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog

                                          M Offline
                                          M Offline
                                          Mustafa Ismail Mustafa
                                          wrote on last edited by
                                          #45

                                          Clickety[^]

                                          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