by maxklein · 18y ago · 0 comments
Remember this: Every language you learn is a big investment in time and energy, and I don't think many people can be really proficient in more than 2 or 3 languages. Some can, but not most.
So, choose wisely, because you will likely be using that language for a long time to come. I personally prefer python because it's more widespread and right now, you have more available to you when you know it than with ruby.
Even if you spend a month learning Ruby and never use it again, it will still irrevocably change the way you approach writing code.
Very cool? YES! worth learning? Absolutely! "changing the way I write code irrevocably? Not a chance!
I'm fairly confident that it did. Once you've really learned it, Ruby creates paths in your brain that you will try to follow forever, even if you're not coding in Ruby anymore.
If it didn't, then you never gave Ruby a real chance.
Certainly the "ah-ha" moment for ruby was much less intense than my ah-ha moment of Lisp, Python, SmallTalk and Erlang. And it's definitely more straight forward to me than Haskell, Prolog, OCAML or Forth.
That's just the reality of it.
I would also throw Lisp in. And Forth. And Haskell. And Smalltalk...
But then, we are not talking about a month anymore...
i think it's mostly mentality. if you think languages are hard to learn, then they will probably seem that way because you will allow yourself too much time to play around with mere details, whereas if you recognize there isn't much to them, you can accomplish a lot in no time at all
A language is not just the syntax of the language itself, it's also the code style, the convention, the best practise, the language specific stuff, the API of the libraries available, the best way of doing things with libraries.
If you use python to write simple number crunching console applications, then switch to ruby, that is an easy switch.
But if you're writing a Web application using Python and Django and you switch to writing DirectSound using C++, and you tell me you can do this in a week, then you are a genius.
The syntax of languages are trivial, but that's like saying you can discover the colors used in a painting. That's the easy part. The difficult part is knowing how it works. Let me list a few examples of technologies that I think differ strongly from each other that make it difficult to switch
- MFC with C++
- Django with Python
- DirectShow with C++
- VHDL
- ASM
- Javascript with JQuery
- CSS with HTML
- Helix Framework with C++
- Quicktime API with C++
- OpenGL with .NET
- LISP
Have you ever had to switch between things on that level? Or are you talking more of a python to ruby switch?
I agree with your general point though. It takes me about 6 months to feel proficient in a language. It's not just the syntax - it's the idioms, packaging infrastructure, unit testing tools, code organization principles, code conventions, etc.
I have a hard time believing that's achievable in a "couple of weeks", regardless of the level of someone's "genius".
(Also, just because something compiles doesn't mean you're good at it.)
but if you worry about the details of the language, it will prematurely affect the structures that you create. in this mode it's harder to write "advanced" things because you are respecting the language too much, and are more confined to its syntax/semantics
if you stay above/outside the language, you will naturally pull it up
all the web things, CSS HTML, JS, PHP etc. XML things like XSLT and XQuery (both of which btw are strict functional languages), etc. both JVM and .NET runtimes. API's can be their own sorts of languages. matlab, mathematica and so on
funnily, i grew up on Java. but everything changed once i met languages with first-class functions
my current favorite languages are Lua and Arc. if Arc had a solid implementation i would use it a lot
Whereas the Peter Norvigs of the world need ten years.
Sigh.
When I was in college and looking for internships, I put about 20 languages on my resume - Basic, Pascal, DCL, C, C++, Java, JavaScript, Perl, Assembler, PHP, HTML, SQL, CSS, InstallShield, Common Lisp, Scheme, Dylan, Haskell, Ocaml, and Erlang. After all, I'd written code in all of them, even if "code" was just a small 100-line program.
By the time I was looking for my first job, I'd pruned that to the C, C++, Java, PHP, JavaScript, Lisp, Haskell, and Erlang.
Now, I don't even list skills any more, just what I've done and what technologies I used to do it. But the list of languages that I consider myself proficient in is Java, PHP, Python, and JavaScript.
I used to wonder why it was that adults got so stupid between graduating from college and their mid-30s. Now I know - it's not that they're getting stupider, it's that their world and the difficulty of problems they face is expanding faster than their abilities. I feel much, much dumber than I did when I started college - but the program that took me a month then, I can whip off in a weekend now.
And if you hit the reply button and say that you have, then I demand to see code samples.
one paradigm i've yet to try out is the "goal-oriented" languages a la Prolog. i'll get to them
my point isn't about me though, despite how great i am. i just think that thinking about languages as if they were huge monoliths isn't the best way of thinking about them, because it will hurt your ability to try out new languages and perspectives. they are things that you should revel in, not keep away from because they seem daunting
If you're such a language whiz you might want to master basic English.