10 tips that will help you when you are about to learn a new language
I started programming when I was 13 in a Commodore computer, and during these 20+ years I had to learn a lot of languages… various Basic versions, Turbo Pascal, C++, Assembly, Blitz Basic, Java, Javascript, Asp, Php, MySql, Actionscript…
I want to share with you some tips that can be useful when you are about to learn a new language
1) It’s just another programming language
If it’s not your first programming language, then you’re fine: it’s just another programming language.
Most operators, types, loops and conditionals will be the same you already know, just with a different syntax.
2) Start from Hello World
Learning a new programming language by coding something quite complex can be really frustrating and you will be tempted to give up.
Don’t be afraid to start from something really simple as an Hello World or something similar
3) Get an editor with syntax highlighting
This is a must-do both for new and well known languages.
Don’t believe programmers claiming they write their code with NotePad… this sounds like visual effects in Lord of the Rings movie have been made with MS Paint.
There are so many ways to help our job, whatever it should be, it would be stupid not to make it as easy as we can.
A good editor should have row numbers, syntax highlighting, and support a wide number of languages so you will have to learn one interface to rule them all.
The one I love is PSPad.
4) Get some books
Now it’s time to get seriously into the new language. Go to Amazon and search for some books. I recommend you to get at least a beginners guide, the “your new language” Bible and an advanced book.
I highly recommend the Bible because of its friendly way of explaining and the complete coverage of the language.
5) Start translating
Now it’s time to translate your projects made in an “old” language into the new one. This process is called “porting”.
There’s nothing better than facing the same old problems in a new way.
If it’s your first language, then jump directly to next step.
6) Start rewriting
Look in the web for examples with source code, read them and rewrite them in your way. At the end, your script will probably look slightly different than the original one, but it will work the same way.
Remember every programmer has his own way to write code, so using someone else code is never the better way to learn a language. Rewrite it.
7) Submit your work
It’s time to submit your work to related portals. People will rate and comment it and you will know if what you called “ultimate address book” is really useful or just another script.
Never mind, seven steps ago you even wasn’t able to write “Hello world”…
8) Languages change. And what about you?
All major languages change during time to face new technologies. Just think about Actionscript or Php.
They evolve day by day… this means you should do the same.
But I have some advices:
8a) Don’t be a “latest release fanatic”… when Php 5 was released, some programmers I know started complaining because their servers did not installed it.
The most amazing thing is the most complex script they did was a form validation. There is no need to learn php5 if your job is validating forms. Php3 will do the same.
When a new release of the language hits the market, it takes about two years (in some cases even more) before you MUST master it.
So don’t waste precious time to be the first to explore the new version. Let others do the dirty job for you and learn from their experience.
8b) Don’t be an “old release fanatic”… if you don’t have to dive yourself into the new version, you also don’t have to stick forever to the old one.
There will be a time you knowledge will be obsolete, and a programmer with an obsolete knowledge is not a programmer.
It’s up to you to decide when it’s time to switch to the new version
9) Don’t learn everything
Your time is limited, and your brain – like it or not – is limited too.
So you should choose wisely what to learn and what not to learn.
In my case, I decided to quit ASP for Actionscript. I had not enough time to learn both languages.
My preferred dynamic web language is Php, so I decided there was no need to master ASP for the sake of mastering it.
10) Nothing lasts forever
What is the best language today, will be obsolete in the future.
Actually I use less than an half of the languages I had to learn… programming languages are like women… you will meet a lot of them in your life, but you will only have two or three of them by your side at the same time… (this can be the last post in this blog if my wife reads it…)















(6 votes, average: 4.33 out of 5)









This post has 11 comments
Ruben Swieringa
nice post man, you’ve put some really simple yet very effective pointers in there, good to keep in the back of your head :)
pixum
inspiring for a newbie like me, and good to see i made quite some good decisions … thanks
junxron
great post.. notepad++ is good for programming too.. I used it for my programming in AS3…
Iain
That’s a great post. You should never be scared to learn a new language – like you point out, it’s the first one that’s the hardest. I wish that big bits of my brain weren’t taken up with Lingo and Visual Basic though!
Matthias
I’ve been using PSPad for ages, too, but recently jumped over to Komodo Edit. It needs a little longer to start but the wait is more than worth it. It’s built on the Mozilla platform and supports Firefox-style extensions and even features live PHP validation of your files.
I think, point 4 and 9 in your list are most important. You will never get to learn about the tricks, pitfalls and several ways to accomplish something in a language just by self-educating yourself with the help of Google. And I found 3 languages to really keep up with is the maximum.
I’m curious about how much languages others are really proficient with.
egdcltd
I do actually still use Notepad for coding, although I’m trying to wean myself of it and use Notepad++ more. I also use Dreamweaver MX and PHP Designer.
I mostly know PHP and HTML, some Actionscript 2 and MySQL. I’m trying to learn AJAX, and did do some ASP, but found it similar enough to PHP to cause confusion.
First language I ever used was Spectrum BASIC.
chocorobokun
the first programming language that i learn’t was actionscript 2:)
now im learning php
thx emanuele
for the advice:)
Skofo
Did you delete my question for a cross-platform notepad?
Jai
Thanks for this. Soon I’m going to start really learning C++, after I borrow some books. Good advice, thanks again.
Andy
Thanks for your advices. Your tips are practical and useful for every programmers and I love to see it :)
Communibus Locis
I find it hard to quantify my first programming language. Is it Applesoft BASIC where I peeked and poked bits to break copy protection?
Was it Pascal in school writing a simple print loop for a project?
I usually count my first language as AutoLISP where I actually wrote full on programs to help me do my CAD job.
Regardless, your priciples are definitely excellent regardless if you moved on to Assembly, C, Delphi, PHP, VB or my new favorite (to learn) Boo.
http://www.theminorityreport.org/2009/new-programming-language-too-scary-for-daily-use/