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.
  • 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
    stephen hazel
    wrote on last edited by
    #14

    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 B 2 Replies Last reply
    0
    • M Michael Bergman

      Christian hinted at it: we tend to "feel" code is beautiful if it is well structured (or if you want to be sexist about it: well stacked!) and code which is not structured is ugly. But we do this in other areas of life as well: a flower bed which is looked after is pleasant to look at while an untended flower bed overrun with weeds is ugly. I suppose you could call BASIC, the weeds of programming languages.

      m.bergman

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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #15

      Michael Bergman wrote:

      I suppose you could call BASIC, the weeds of programming languages.

      Only if you count COBOL as the badly written memo of programming languages.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      My blog | My articles | MoXAML PowerToys

      1 Reply Last reply
      0
      • S Single Step Debugger

        For me the good written C++ is more beautiful then an attractive girl emerging from the sea together with the sunrise in the summer day. JAVA could be sexy too in some cases. The “foreach” loop and “readonly” keyword gives the C# a little fat look.

        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
        #16

        Deyan Georgiev wrote:

        For me the good written C++ is more beautiful then an attractive girl emerging from the sea together with the sunrise in the summer day. JAVA could be sexy too in some cases. The “foreach” loop and “readonly” keyword gives the C# a little fat look.

        Y'know Deyan, you should stop working during the weekends. Go out, enjoy a drink or four, meet some girls, meet some new people who aren't in the computer business, it'll do you a world of good my friend.

        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

        S 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

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

          In order of preference Object Pascal, Python, Smalltalk, C++/C#/C/Java, Lisp

          ¡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
          • 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

            R Offline
            R Offline
            Ray Cassick
            wrote on last edited by
            #18

            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[^]

            R M S G 4 Replies Last reply
            0
            • M Mustafa Ismail Mustafa

              Deyan Georgiev wrote:

              For me the good written C++ is more beautiful then an attractive girl emerging from the sea together with the sunrise in the summer day. JAVA could be sexy too in some cases. The “foreach” loop and “readonly” keyword gives the C# a little fat look.

              Y'know Deyan, you should stop working during the weekends. Go out, enjoy a drink or four, meet some girls, meet some new people who aren't in the computer business, it'll do you a world of good my friend.

              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

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

              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.

              J M P J 4 Replies Last reply
              0
              • J Jim Crafton

                In order of preference Object Pascal, Python, Smalltalk, C++/C#/C/Java, Lisp

                ¡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
                #20

                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 1 Reply Last reply
                0
                • P Pete OHanlon

                  Programmers are romantics. We're lovers not fighters. Why, developers are widely regarded as being the sexiest creatures on the planet. Our beauty causes people in other professions to go blind. We are love. We are truth. We are sex at a keyboard.

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  My blog | My articles | MoXAML PowerToys

                  M Offline
                  M Offline
                  MidwestLimey
                  wrote on last edited by
                  #21

                  It's the white pills you idiot! 2 of the white one and ONLY 1 of the red. You know what too many red pills does to you, seesh. That poor nurse was walking funny for months ..

                  Bar fomos edo pariyart gedeem, agreo eo dranem abal edyero eyrem kalm kareore

                  1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Programmers are romantics. We're lovers not fighters. Why, developers are widely regarded as being the sexiest creatures on the planet. Our beauty causes people in other professions to go blind. We are love. We are truth. We are sex at a keyboard.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    My blog | My articles | MoXAML PowerToys

                    R Offline
                    R Offline
                    Ravi Bhavnani
                    wrote on last edited by
                    #22

                    Pete O'Hanlon wrote:

                    We're lovers not fighters.

                    Aye! /ravi

                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                    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[^]

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #23

                      That's on a good day... Things get uglier most days.

                      "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                      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

                        R Offline
                        R Offline
                        Roger Wright
                        wrote on last edited by
                        #24

                        Absolutely! Pascal is the epitome of beautiful languages, while C++ is merely the pit.

                        "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                        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.

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

                          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 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

                            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
                                          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