What's your favorite programming language and why? I plan to do use Haskell, OCaml, Prolog, and Lisp from now on, but I'm open to better ideas. Thanks.
Bill
Bill
C is; but that is simply because it is the language I feel most comfortable with. The more I use Python though the more I enjoy its ease of use and multi paradigm approach to programming.
I'm aching to get to grips with Haskell or Erlang though and have set a little time aside in the next couple of weeks to slog it out (be prepared for a stream of noob questions).
Only drawback is the lack of a cool cross-platform GUI library...![]()
OCaml is simply the best language I know: It is a functional language, so there is no distinction between expressions and statements, like in C-like languages. It has strong typing and type inference, so you catch a lot of errors at compile time. Unlike Haskell it is not a pure functional language but has mutable values for those global variables you need in real life projects. It has pattern matching, garbage collection and its blazing fast (not much slower than C).(
C is; but that is simply because it is the language I feel most comfortable with. The more I use Python though the more I enjoy its ease of use and multi paradigm approach to programming.
I have to laugh, PL1 and APL were both actively used in the last shop I consulted in. Never underestimate the longevity of something useful!
Fortran and Lisp are the two oldest high-level programming languages I know. I'm glad they're still around, but I'm hoping Cobol will die out if it hasn't done that yet.
Cobol includes, or included, the alter statement, a little gem that any sadist would adore. In Cobol's early years, programmers needed to do a lot to save main memory. So the language's designer invented "alter."
Say you write two Cobol paragraphs: Print-Paycheck and Calculate-Deductions. Later in the program, you say, "Alter Print-Paycheck to proceed to Calculate-Deductions." After the computer executes that statement, each seeming call to Print-Paycheck will be a call to Calculate-Deductions instead. Fill a program with alter statements, include that program in another program, and you'll drive the other program's maintainer insane. I couldn't be that cruel. Neither could any of you, I'm sure.
For me it's C, but i am still learning. I feel comfortable and confident with it. I also like the fact it operates at quite a low level.
I am just getting Objective-C under my belt and then i am moving on to ada (i'm starting a job in July that is ada based, anyone got experience with it?)