Sunday 25 March 2012

Learning a new programming language.

Many of my friends ask me, that how should I learn a new language? How much time it will take to learn the language. From where should I start? Aren't  these the common questions in our minds, when we decide to learn a new language.
Over the years I have devised a method, to help myself learn new programming languages faster than we usually think.
So here we go.

Step 1:  What is your purpose of learning the language?
Make the purpose absolutely clear in your mind or I would say write it down somewhere, so you can see it frequently. It is important as programming languages have a very vast scope. For example, Lets say you wan't to learn C#. Now, C# is a .net language which is very robust and is used to work on many technologies namely websites, web services (ASP.NET), Windows desktop applications, Windows phone apps etc. So if you want to develop dynamic websites go for ASP.NET with C#.

Step 2: Logic
Over the years while coding on many languages and technologies I learned one thing. Whatever be the language  programming logic remains the same, I know some guys may argue on this and I agree with their point. But hey, here is my take on it. Languages change, the way they handle things change but the programming constructs are the same except the syntax. What I mean by that is, you will find loop conditions in all the languages, conditional statements like 'if' and 'case' in almost all the languages, Array concepts and many such things. It's like learning to say `hi, how are you?` in German.
Understanding of these constructs is important.


Step 3: Get a nice book 
Spend a day or a half to go through many books of the language. Picking up a good book is a key to learn the language. Don't go for the language documentation books or books which covers every thing about the language. I personally think that such books does not contain practical examples and they are more of a reference, like a dictionary than a language teaching book.
Go for books which contains some practical examples and exercises at the end of each topic for you to solve. A book which covers all the important concepts such as database interactions etc. to get you on board and start coding immediately. You should complete reading the book in 20 days max, if you think you can't search another one.

Step 4:  Architecture
There are certain architectures which suits the language, most commonly used to develop programs in the language. For e.g. Three Layer Architecture, MVC architecture etc. Find out which architecture is used to code in the language. Understand how it works, why it is used. Create at least two professional projects using this architecture. Try to develop projects which are not related to each other, which helps you understand the language and the architecture thoroughly.


 If you follow the above steps, guys, I guarantee you that you can now add the programming language to your Resume. 

3 comments:

  1. nice blog
    please share IF any more stuff..

    ReplyDelete
  2. i dont know nothing about programing bt i want learn

    ReplyDelete