The number one tip I would give to people learning to code

It is very easy to get overwhelmed when jumping in to the world of web development and programming in general. To most people, looking at code on a page is like looking at a foreign language. Thats because it is! 

Programming is basically the language of computers. There are many different dialects; php, C++, java, python, django; but they all have a basis in simple logic. Half of the battle of learning to code is learning to translate the code in front of you and understand what it is doing and why.

Reading Code

That’s it! Read your code. If you’re looking at code and you feel completely lost, just start reading it as if it was a set of instructions.

Here is how you do it:

Take this block of very basic PHP from the PHP manual 

The above posted code is what is called a “conditional statement” and they are really the easiest thing to understand and “read” when you start getting in to programming.

This is how I would translate it:

Once it is translated into “readable” text you can get a better grasp on what is happening and start to alter things.

Here is a different example from the PHP manual

This is how I would translate it:

 

This is a super simple “tip” but I have come across many coders who have literally never thought of “reading” code and instead were trying to dissect it line by line. As an added bonus, if you get in to the habit of reading code you should also get in to the habit of commenting your code which will only help you in the long run.

Now that you’re learning to read and translate code, it’s time to start learning syntaxes. Each language is different, so decide on the language you want to learn and grab the manual and have at it.

 

 

 

 

The_Idiot

About Lindsay

Self made millionaire.. Oops I mean web developer.. who started out learning how to build websites with tables and dreamweaver, I now almost entirely focus on CMS-based development, usually WordPress. I love coding and designing and regularly switch between my left and right brains.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">