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. Which programming language you like the most and why?

Which programming language you like the most and why?

Scheduled Pinned Locked Moved The Lounge
question
57 Posts 36 Posters 1 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 Nagy Vilmos

    Oh please no! Multiple inheritance opens such a large bag of pain. Interfaces give you that [to some degree] and I don't want any more.


    Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

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

    Nagy Vilmos wrote:

    Multiple inheritance opens such a large bag of pain

    Not at all.

    utf8-cpp

    1 Reply Last reply
    0
    • J JimmyRopes

      OriginalGriff wrote:

      I'd like var removed except for Linq returns.

      var in C# is not like var in some other languages. The var in C# is strongly typed based on what the type is of the object assigning to it. Quite a bit different than being loosely typed.

      The report of my death was an exaggeration - Mark Twain
      Simply Elegant Designs JimmyRopes Designs
      Think inside the box! ProActive Secure Systems
      I'm on-line therefore I am. JimmyRopes

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #28

      I agree - which is why I see it's use and even necessity for Linq. But other than that, it is a sign of laziness, and of "I don't care what this is and I can't be bothered to work it out". Given Intellisense is pretty good, most of the time I have to type no more characters to get the actual type I am going to use than to get var. So which is easier to maintain? Strongly (but anonymously) typed variables, or the actual class name?

      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      R 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        I agree - which is why I see it's use and even necessity for Linq. But other than that, it is a sign of laziness, and of "I don't care what this is and I can't be bothered to work it out". Given Intellisense is pretty good, most of the time I have to type no more characters to get the actual type I am going to use than to get var. So which is easier to maintain? Strongly (but anonymously) typed variables, or the actual class name?

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

        R Offline
        R Offline
        Rob Grainger
        wrote on last edited by
        #29

        I see both points of view, but

        SqlCommand command = new SqlCommand();

        Seems a bit redundant. I prefer "var" there (especially for generic types). Most other times I use the type - it helps keep code readable. Maybe you should be arguing for coding standards where you work that codify these things (always a shame you need to tell people). Better still, stop employing sloppy programmers.

        R A 2 Replies Last reply
        0
        • N Nagy Vilmos

          Oh please no! Multiple inheritance opens such a large bag of pain. Interfaces give you that [to some degree] and I don't want any more.


          Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

          R Offline
          R Offline
          Rob Grainger
          wrote on last edited by
          #30

          Nagy Vilmos wrote:

          Multiple inheritance opens such a large bag of pain

          I call you out there - C++'s implementation offers a whole bag of pain, but try it in SELF and you'll see that its an incredibly powerful technique. The main problem is that in statically typed languages, inheritance is often confused with typing. Dynamically typed languages don't have this problem, so you can freely mixin behaviour. I'd like to see a type-safe language with something more like duck-typing - allowing non-related classes to be polymorphic if they have the same interface (not a Java/COM-style interface, but real interface). i.e. two objects are polymorphic on the set of common methods they have, regardless of their relationship through inheritance. C#'s extension methods attempt to fill the same gap - adding features to existing classes (and interfaces), but do so only by compromising OO - these are all static methods, can't be overridden, etc.

          1 Reply Last reply
          0
          • P PIEBALDconsult

            SQL. Because it's the best way to access and manipulate the data I need to access and mess with, and I can use it via a number of other (general-purpose) programming languages (C#, VB.net, C, etc.) as appropriate.

            R Offline
            R Offline
            Rob Grainger
            wrote on last edited by
            #31

            Really, I've always thought SQL was a hardship we have to endure. To whit... 1. Dates. WTF?!!?? No real standard support for dates. 2. Joins. WTF is that fugly syntax. 3. Aggregattion and grouping. WTF. 4. Use of DISTINCT (it should be implicit in every query) There's plenty more, but it always struck me as a butt-ugly language, poorly designed for the task in hand. I mean honestly, a language for accessing relational databases that fails to be even relational: SQL Criticism[^]

            P 1 Reply Last reply
            0
            • N Nikunj_Bhatt

              Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

              B Offline
              B Offline
              BobJanova
              wrote on last edited by
              #32

              Of the conventional languages, C# is excellent. One thing which is missing (related to the multiple inheritance thing) is a way of specifying that you implement an interface through a member field; this would simplify the provider based approach to multiple inheritance workarounds significantly. For example let's say we want to 'inherit'

              class A {
              void DoAStuff() {}
              void DoStuff(int i) {}
              }

              class B {
              int BStuff { get; set; }
              void DoStuff(int i) {}
              }

              class C: A, B { ... }

              This exposes a common problem in multiple inheritance, a 'common' method (what is C.DoStuff)? At the moment you can have interfaces IA and IB and have C implement both through member fields:

              interface IA { void DoAStuff(); void DoStuff(int i); }
              interface IB { int BStuff { get; set; } void DoStuff(int i); }

              class A : IA {
              void DoAStuff() {}
              void DoStuff(int i) {}
              }

              class B : IB {
              int BStuff { get; set; }
              void DoStuff(int i) {}
              }

              class C: IA, IB {
              A a; B b;

              void IA.DoAStuff() { a.DoAStuff(); }
              // ... etc
              }

              What I want is

              class C: IA, IB {
              A a implements IA = new A();
              B b implements IB = new B();
              }

              Also, I want array operations, particularly arithmetic. Writing

              for(int i = 0; i < a.length; i++) c[i] = (2 * a[i]) + b[i];

              ... is tedious and obfuscating. I should be able to write

              c = (2 * a) + b;

              Given a free choice, a modern APL like Dyalog's offering is still the best for getting complex problems solved quickly. APL has made significant strides towards the 'normal' world in the last 10-15 years and you can now write readable structured code, use OO and talk to external components in a sensible fashion, but it still has all that crazy power if you need it. Something like R would also be good if I knew it as well as I do APL, probably.

              1 Reply Last reply
              0
              • N Nikunj_Bhatt

                Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                R Offline
                R Offline
                RogelioP EX DE HL
                wrote on last edited by
                #33

                nikunjbhatt84 wrote:

                Which programming language you like the most and why? What feature(s) you love the most?

                BASIC, because it allows me to Briskly Achieve Solutions Impossible in C For the meaty part of my "developer" life it has been usually the defined in IEC_61131-3 [^] - these are the ones I actually got paid to do. Been a while. For fun personal stuff C++ is somewhere in there. And Pascal... Logo... Forth... :-\ -- RP

                1 Reply Last reply
                0
                • L Lost User

                  You forgot about Bacon. Lots and lots of Bacon. [Edit] Who in their right mind would 1 vote a Bacon post???? Good god for the love of bacon!?!?

                  Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                  S Offline
                  S Offline
                  Super Lloyd
                  wrote on last edited by
                  #34

                  now, what is it about bacon!?

                  A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                  1 Reply Last reply
                  0
                  • N Nikunj_Bhatt

                    Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                    M Offline
                    M Offline
                    Michael Haines
                    wrote on last edited by
                    #35

                    My favorite is the one that keeps me gainfully employed. I am currently working several projects at a time and working in C#, VB, Java, Groovy, Javascript, XUL, and a proprietary templating language for UIs. I finish lines of VB with semi-colons and forget the ()s on If statements in Java/Groovy/Javascript. If someone knows how to setup eclipse and VS to catch these mistakes, that would be a feature I'd like to have. You are here - through no fault of mine!

                    1 Reply Last reply
                    0
                    • R Rob Grainger

                      I see both points of view, but

                      SqlCommand command = new SqlCommand();

                      Seems a bit redundant. I prefer "var" there (especially for generic types). Most other times I use the type - it helps keep code readable. Maybe you should be arguing for coding standards where you work that codify these things (always a shame you need to tell people). Better still, stop employing sloppy programmers.

                      R Offline
                      R Offline
                      RugbyLeague
                      wrote on last edited by
                      #36

                      I agree. But haters gonna hate :)

                      1 Reply Last reply
                      0
                      • R Rob Grainger

                        Really, I've always thought SQL was a hardship we have to endure. To whit... 1. Dates. WTF?!!?? No real standard support for dates. 2. Joins. WTF is that fugly syntax. 3. Aggregattion and grouping. WTF. 4. Use of DISTINCT (it should be implicit in every query) There's plenty more, but it always struck me as a butt-ugly language, poorly designed for the task in hand. I mean honestly, a language for accessing relational databases that fails to be even relational: SQL Criticism[^]

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

                        To know her is to love her. I guess you don't know her like I do.

                        Rob Grainger wrote:

                        Joins. WTF is that fugly syntax.

                        Perhaps you're using Oracle?

                        Rob Grainger wrote:

                        DISTINCT (it should be implicit in every query)

                        Heck no. I very rarely use DISTINCT; I did the other day, first time in years, I was being lazy. About the worst thing I can say about SQL is that BETWEEN shouldn't be inclusive.

                        1 Reply Last reply
                        0
                        • N Nikunj_Bhatt

                          Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                          J Offline
                          J Offline
                          jocstar
                          wrote on last edited by
                          #38

                          68K Assembler, Snasm and an Amiga!! An elegant weapon from a more civilized age.

                          1 Reply Last reply
                          0
                          • N Nikunj_Bhatt

                            Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                            V Offline
                            V Offline
                            VEMS
                            wrote on last edited by
                            #39

                            C++

                            1 Reply Last reply
                            0
                            • N Nikunj_Bhatt

                              Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                              B Offline
                              B Offline
                              BubingaMan
                              wrote on last edited by
                              #40

                              Beyond a doubt, my favorite (GUI) language is XAML. MVVM in combination with MVC patterns results in the most elegant LOB applications I have ever seen. I absolutely love it. XAML + C# is by far my favorite combo. As for specific implementation of XAML based technology, I have a preference for WPF. Silverlight has some nice features as well, but overall SL has been a pain in the ass for me.

                              1 Reply Last reply
                              0
                              • N Nikunj_Bhatt

                                Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                                U Offline
                                U Offline
                                User 4085378
                                wrote on last edited by
                                #41

                                I vote for VB for several reasons. I say this, having designed 2 fully operational procedural languages. Professor E. J. Yannakoudaks eyan@aueb.gr

                                1 Reply Last reply
                                0
                                • N Nikunj_Bhatt

                                  Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                                  O Offline
                                  O Offline
                                  Old Ed
                                  wrote on last edited by
                                  #42

                                  Assembler, without a doubt. I like it because it's pristine. Every instruction does exactly what you expect it to do. As for features, it's the lack of features that make Assembler great to work with.

                                  1 Reply Last reply
                                  0
                                  • N Nikunj_Bhatt

                                    Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                                    D Offline
                                    D Offline
                                    danmcleran
                                    wrote on last edited by
                                    #43

                                    Python is my fun girlfriend. C++ is my dependable wife.

                                    1 Reply Last reply
                                    0
                                    • R Rob Grainger

                                      I see both points of view, but

                                      SqlCommand command = new SqlCommand();

                                      Seems a bit redundant. I prefer "var" there (especially for generic types). Most other times I use the type - it helps keep code readable. Maybe you should be arguing for coding standards where you work that codify these things (always a shame you need to tell people). Better still, stop employing sloppy programmers.

                                      A Offline
                                      A Offline
                                      Alexander DiMauro
                                      wrote on last edited by
                                      #44

                                      Rob Grainger wrote:

                                      Seems a bit redundant. I prefer "var" there (especially for generic types).

                                      Exactly. I agree. Especially when you are handed code like this:

                                      SomeClassWithACrazyLongNameThatGoesOnAndOnAnd bacon = new SomeClassWithACrazyLongNameThatGoesOnAndOnAnd();

                                      The one that makes me laugh (while pulling my hair out) the most is when I see:

                                      var bacon = 3;

                                      Now THAT is not even laziness, just silly...except for the bacon.

                                      The world is going to laugh at you anyway, might as well crack the 1st joke! Have you tried turning it off and on again? Have you tried forcing an unexpected reboot?

                                      1 Reply Last reply
                                      0
                                      • N Nikunj_Bhatt

                                        Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                                        B Offline
                                        B Offline
                                        BrainiacV
                                        wrote on last edited by
                                        #45

                                        FORTH is the one true language...at least for anything requiring real time controls. It allows you to freely intermix high level and low level code as you create a new language to match your task. Your commands can become active during compilation and can start reading your source code to perform functions not built into the compiler. It supported the rudiments of object orientation, long before the terms and methodologies were created. FORTH code is smaller than machine code and operates at 80% of compiled C code. Being stack based, unit testing is a snap. No need to create scaffolds for testing. Just load up the stack and execute it. Each command (verb) can be compiled in immediate mode and immediately tested. In team environments, after we define our points of contact, we generally just zipper our code together and it all works. I became a true believer after we slapped together in just six weeks a project I estimated to take nine months (and I'm good at estimating). We literally slung code at a wall and it all stuck. Later projects let me write code that wrote itself by expanding the compiler dynamically. It was fast too, I'd compile 300K programs in 30 seconds while C compilers at the time would take hours. It is interactive, you can add commands while the program is running (particularly after you have added multi-tasking to the language instead of the OS), so you are not stuck in the Edit-Compile-Run-Debug-Repeat cycle. That said, I still prefer to let the task select the language. If I am going to be parsing strings, my first choice is BASIC, and I don't mean that perversion called VB.NET. But today my language of choice is C#.NET because it is less verbose than VB.NET. Mostly because it is a commercial decision and there is no Object Oriented FORTH (of merit) until I guess I write it.

                                        Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                                        1 Reply Last reply
                                        0
                                        • N Nikunj_Bhatt

                                          Which programming language you like the most and why? What feature(s) you love the most? Is there any other feature(s) that you wish to present in the language you are working on?

                                          M Offline
                                          M Offline
                                          Masterdesign
                                          wrote on last edited by
                                          #46

                                          Hello, deciding which programming language is most likely one depends upon the ease of use less complicated still productive and the variety of udate feature If that is the case than i think C# is the only option. Thanks

                                          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