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

    N Offline
    N Offline
    Nemanja Trifunovic
    wrote on last edited by
    #9

    Rama Krishna Vavilala wrote:

    Java/C#/Python/JavaScript

    I find it strange that you bundle Python with Java/C#/JS. Languages that have pleasant and readable syntax IMHO are Python/BOO and Pascal/Modula/Delphi/Oberon. On the other hand I don't like the syntax of C and all derived languages (C++, Objective-C, C#, Java, JS, Perl...) Lisp, Fortran, Haskell, ML, Erlang are in between. Of course, syntax is not really very high on my list of important language features. In fact, the two languages I use most on daily bases are C++ and Perl and the syntax is definitelly not something that would attract me to either of these languages.

    Programming Blog utf8-cpp

    R 1 Reply Last reply
    0
    • C Christian Graus

      Any BASIC derived language is ugly as sin. Objective C is ugly, too. So is C, for that matter. C++ and C# are top of my list.

      Christian Graus Driven to the arms of OSX by Vista.

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #10

      Christian Graus wrote:

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

      ...of ugly ones?

      Programming Blog utf8-cpp

      B C 2 Replies 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

        D Offline
        D Offline
        Douglas Troy
        wrote on last edited by
        #11

        Pete O'Hanlon wrote:

        We are sex at a keyboard.

        5! :laugh:

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          Rama Krishna Vavilala wrote:

          Java/C#/Python/JavaScript

          I find it strange that you bundle Python with Java/C#/JS. Languages that have pleasant and readable syntax IMHO are Python/BOO and Pascal/Modula/Delphi/Oberon. On the other hand I don't like the syntax of C and all derived languages (C++, Objective-C, C#, Java, JS, Perl...) Lisp, Fortran, Haskell, ML, Erlang are in between. Of course, syntax is not really very high on my list of important language features. In fact, the two languages I use most on daily bases are C++ and Perl and the syntax is definitelly not something that would attract me to either of these languages.

          Programming Blog utf8-cpp

          R Offline
          R Offline
          Rama Krishna Vavilala
          wrote on last edited by
          #12

          I was not giving any strict order of preference, but I agree that Python is more pleasant than C#/C++.

          Proud to be a CPHog user

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

            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 C 2 Replies 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
              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
                                          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