What languages would you suggest a programmer to learn, not because they will have a lot of use of the language (but they may have), but because it will improve one's programming skill in general and let one think in a different (and possibly better) way?
|
closed as not constructive by Anna Lear♦ Dec 26 '11 at 2:20
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
for "normal" programming and algorithms:
for a thought changing experience:
for destroying your mind and crossing the line between padawan and Jedi Master:
|
|||||||||||||||||
|
|
Don't forget Javascript. It has OO features that are not your usual OO features. It is well-suited for higher-order functions and closures, and you routinely use these. It allows for many functional programming tricks. It is enormously flexible. And it's practical, because every serious browser has it. (Of course it has a number of unpleasant quirks, too. Few practical languages don't) |
|||||||||
|
|
C and assembly for how a computer works Haskell and LISP for both functional programming and metaprogramming APL for vector and terse programming bash or tcsh for how to administer a computer programmatically |
|||||
|
|
I would suggest Scheme. It's a functional programming language derived (most actually think it's a dialect) from Lisp. The main difference with Common Lisp is, its approach is very minimalistic - extremely so. For instance, in a normal distribution of Scheme (any scheme < R5, or Mit/GNU/Scheme) you won't find a loop implementation: you'll have to make your own using tail recursion. It's really expressive and its syntax is great to learn something new about programming, as in: just looking at the code, you get an idea of how the compiler/interpreter will work its way trough it. Plus, it comes with the Best Programming Book Ever, Structure and Interpretation of Computer Programs, freely downloadable on the MIT's website. Here are some video lesson that, I hope, will immediately get you interested in this fascinating language - the speakers are the authors of SICP: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/ |
|||||
|
|
LISP, preferably Scheme in combination with Abelson & Sussman's "Structure and Interpretation of Computer Programs", will teach you to think in terms other than those imposed by C/C++. FORTH, specifically a block-oriented FORTH, not a file-oriented one (such as D85) will teach you to curb your loquaciousness. When you cannot under any circumstances whatsoever write a routine longer than 16 lines of 64 characters, you are forced to abstract and factor. |
||||
|
|
|
Java is one of the languages taught most at universities worldwide and there's a reason for it. Though it's often Dinosaur-like, it gives everyone a very good overview of the Concepts of modern programming. It does NOT show you how the computer itself works like Assembler or even the already-much-much-more abstract language C. But Pilots have to be able to fly and not to be able to Build an Airplane on their own - go learn JAVA as a good Basis for any Code you'll write in the (for a reson) most common languages nowadays: Java, c++, php, c#, ruby(on rails) python and so on... max |
||||
|
|
|
Hands down, I would say Haskell. And for two reasons:
|
||||
|
|
|
I would suggest Scala if one is come from C/Java world. It is not purely functional programming language, but it use OO to simulate some functional programming features (ex. Using object to simulate first class function and high order function). So if you are familiar with OO, Scala uses terms you already knows to explain the functional world. I found it is easier for me to understand functional programming in Scala rather than dive into a more functional programming like Haskell, List...etc. |
||||
|
|
|
C# 3 with LINQ. It's a great intro to functional programming. Try writing a program (or solving Project Euler) and replacing as many loops as possible with LINQ calls. From there, one can move on to F# |
||||
|
|
|
The functional languages are the ones that I feel helped bring me to where I am today. Even though I'm in web application development, the concepts learned from functional languages help me see solutions to problems that I otherwise wouldn't have seen. Here are the languages I worked with in my university:
Learning these languages will help you understand the world of abstractions, and how to build blocks of code that encapsulate other functionality, hiding the low level details so you can focus on the high-level business goals. |
||||
|
|
|
Ruby has one of the most powerful and intuitive testing frameworks I've used. I'm not sure I really understood how to properly use mocking and stubbing until I started writing tests in ruby. rSpec and Cucumber are fantastic tools. |
||||
|
|
|
There are a number of programming languages that will require that you think about a problem in a new way (relative to what you are used to of course.) The most common languages to learn having been taught a imperative language, is a functional and a logical language, for instance prolog and lisp. Some languages are heavily influenced by category theory, like ocaml and Haskell and some are cross breed languages like Curry (functional and logical). Curry is probably the most mind blowing language that I know of, not just because it got all the mind blowingness of Haskell with logical programming, but also because of the integration with constraint based programming. Another fun language is Occam-pi since it is so heavy on concurrency, but also because of the recent arduino port. |
||||
|
|
|
A well-rounded programmer has several bags o' tricks up his/her sleeve, and these include:
These all teach you slightly different ways to think about and approach problems. |
||||
|
|
|
you won't learn correctly any programming language without a clear target. Knowing what you want to do with it,then you can decide which program suit your needing. For example, let's say about c#. C# can do web program, console program, stand alone executable, gaming program, silverlight program and mobile program. While the syntax is equal in almost every case but it works differently in every scenario. For example, a stand alone executable keeps their information until it is unloaded or the program is finished, while a web program, the information is destroyed every time you load a page, and in silverlight, you will spend most of the time, struggling with a xml file. And second, don't spend your time with exotic languages (Haskel for example), corporate speaking, there are very few program worth your effort :java (king of the hill), c#/vb.net, php and sql. |
||||
|
|
|
There's a very simple program for writing Java Applets called Processing This language will give you a very basic understanding of variables, loops, and that sort of thing, if you're just starting out. |
||||
|
|
|
Some great suggestions here. I'd probably go with C or C++ personally. They force you to deal with a lot of concepts that matter greatly in understanding how things work, but that tend to get obfuscated in other languages. Just understanding how things are really working is going to help you as a programmer even if the language you're using later hides some of the details. Assembly is fun if you want to dig in even a bit lower level then that, but don't expect to get a lot done with it. :) |
||||
|
|
|
I would recommend Ruby. Ruby doesn't demand that you change paradigms, but it encourages you to work in multiple paradigms. I think that advantage of this is that instead of being frustrated with not being able to work they way you are used to, you use a different paradigm out of frustration with the limitations of doing things the way you are used to. |
||||
|
|
