There are two parts in web development/programming:
– the front-end (what the browser is displaying to the user)
– the back-end (what happens before the browser is displaying the results to the user)
Each of these sections are big enough for a programmer to not know both very well (I am not talking about geniuses here).
To build a website, a modern website, you need to have both sections.
Before starting, you will need to get a hosting account where you can practice with your website development. Hosting is cheap these days and I recommend to buy a cheap one, just for development, because you can jump into learning and developing right away without spending time learning how to setup your own hosting environment (that takes time too).
To know how to program the front-end you need to know:
– HTML or HTML5 (HTML5 is the latest standard)
– CSS (Cascading Style Sheets) – version 2 or better 3
HTML is the backbone of any website and it’s not a programming language per se but a markup language which uses tags <> to enclose its commands.
You can see HTML codes if you go to a webpage with your browser, then right-click, then View Page Source, or View Source. That’s how I learned HTML…by reverse engineer webpages looking into their source code.
HTML is not hard to learn. You can use a visual webpage editor like Microsoft Frontpage, Coffeecup, NetObjects Fusion or iWeb (for Mac) and create a webpage, then look into the source code to see what you have done. Play with that.
Later on, you will be able to write HTML by hand in an advanced text editor like Editplus, Notepad++ or TextPad (don’t skip learning how to code by hand, don’t rely on the visual editor too long).
After learning HTML it’s easy to pick up advanced HTML, which is HTML5.
If HTML is the backbone of a website then CSS is what give a website its look and formatting (presentation semantics, as they call it). You can compare HTML with Notepad and CSS with MS Word processor. One makes text, but the other ones makes it much prettier. That’s what CSS does, basically.
Sometimes you can find CSS code by looking into the webpages source code (like this:<style type=”text/css”>…your CSS code…</style>) but usually the CSS code is kept in a separate file (ending in .css) and invoked/included in the HTML page using a specific command (like this: <link rel=”stylesheet” type=”text/css” href=”whatever_name.css” /> ).
If you encounter a website which has this inclusion command then you can see the CSS code by going to that .css file directly, in the browser (like www.the_website.com/whatever_name.css).
See here an example of a CSS fileÂ (it’s my site’s CSS file)
Having some graphic design skills doesn’t hurt also (Adobe Photoshop or equivalent to make pretty graphics for your website).
The back-end now is even more complicated than the front-end and that because there are so many options, it’s mind boggling.
In the last 10 years the open-source movement gave birth to many programming languages and were made free to people, spawning even more open-source tools and programming languages.
You may have heard of Perl, TCL/TK, PHP, Python, Ruby, Java, Erlang, C, C++, Lisp, Haskell, ASP/ASP.NET/C#, Coldfusion/CFML. But some of these have lots of frameworks built on top of them (the scope of the framework is to make life easier for the programmer – only PHP has over 20 frameworks).
What are these back-end programming languages doing? Most of them are serving as an intermediary between the browser and the database (yes, back-end means also database).
The data is sent to this intermediary through a page written in a programming language of choice which is processed by the programming language interpreter which allows to that data to be sent into a database. Also, the same page programmed in a language can get the data from the database and send it to the browser using the programming language interpreter.
What programming language you choose it doesn’t matter much as long as you can accomplish your result.
But you, as a beginner, should choose a programming language which has these characteristics (and I am not referring at the syntax):
– the language should be popular (that means it has a big community which can offer support)
– the language should be open source (that means you don’t have to pay money for it)
– the language should stick around for longer time (that means the language shouldn’t disappear or be less used in the short term – it happened with ASP classic and Coldfusion/CFML/TCL/TK)
In conjunction with these languages also you should choose the database which you will learn. The database should also be open-source (MySQL, PostgresSQL, SQLlite).
In my opinion, for a beginner, you should choose from among these back-end technologies to help you started:
– PHP (open source, big community, lots of software built with, lots of jobs),
– Ruby on Rails (open source, growing community, hot with startups, growing number of jobs),
– Python (open source, big community, quite hot with startups, growing number of jobs)
– MySQL database (open source, big community, hot with startups, many jobs)
You have to try these and see what you like, what fits you.
Ruby on Rails
– check out also the installation tutorial I wrote
– http://www.w3schools.com/sql (SQL is the language used to extract, insert, delete and process data in the database – you need to know this as well)
Don’t forget! You can find tutorials not only on Google but on Youtube too (so you can have a visual).
You can try front-end development and also back-end development…but in the end you will have to specialize (you can’t learn everything very well, unless, of course, you are a genius).
Learning from scratch will take you time but don’t despair. Even God needed seven days to create Earth, so they say.
Be perseverent, ask around when you don’t understand, get connected to the specific communities, go to stackoverflow.com or other communities for very technical questions, search on Google, buy some books and practice.
Practice makes perfect, they say and that’s not far from truth.
NOTE: This article was published by me on Quora.com on June 22, 2011