Today we are going to take a look at the different web programming languages ââthat power the Internet. This is the fourth part in a series of programming for beginners. In the first part, we learned the basics of variables and data types. In part 2, we moved on to functions and control structures. In Part 3, we looked at some of the many software programming languages. Like last time around, I’ve included screenshots of what the typical code for the language looks like, which I think is a good at-a-glance indicator of how comfortable you’ll be. to program it or not.
PHP
PHP is the undisputed king of server-side languages ââin use on the Internet today – running on 75% of all web servers – and is the power behind WordPress, Wikipedia, and even the user part of Facebook.
As a server-side language, the code is processed before it reaches the user’s browser, so all it sees is the last page and nothing of the original PHP code. PHP is mainly used in conjunction with MySQL to extract information from a database, manipulate it, and present it to the user.
PHP is for general purpose and comes standard with most web servers – if you’ve heard the term MAMP / WAMP / LAMP before, the P usually means PHP (the rest is Windows / Mac / Linux, Apache and MySQL).
MySQL
Another component of standard web server installations, MySQL is a free open source database server. It’s not a programming language as such, but it’s a new language to learn if you want to talk to databases, so it’s a key part of modern websites. Although MySQL is actually a command line language, there are some common GUI tools like PHPMyAdmin to more easily manage databases.
Again, MySQL is what powers WordPress – so all of your posts and content are actually stored in a MySQL database.
Javascript
Not to be confused with Java, the fully object-oriented software programming language we introduced last week, Javascript is the daddy of interactive web pages. It is a scripting language that runs locally on the user’s browser, allowing web pages to respond to user interactions such as item clicking and sync events. It would be impossible to cover everything that Javascript is capable of – just say if there is anything interactive on a site, and it is not Flash – it is more than likely Javascript.
It’s also worth mentioning JQuery at this point. JQuery is a JavaScript framework that lets you write less code and gives you greater compatibility with browsers, and is quickly becoming the standard for modern web pages. It’s especially useful for targeting specific parts of a web page using familiar CSS terms and doing something with them, like showing or hiding them. While JQuery is made from JavaScript, it also introduces its own unique language components, so just because you know JavaScript doesn’t mean you can automatically use JQuery (you can also argue that you don’t need to know a lot about Javascript to be able to use jQuery). We’ll definitely be looking at this one at some point.
Perl
Perl was once a major force in web programming, but has since been relegated primarily to word processing applications. It’s incredibly fast at processing text, but not very useful on the modern Internet. This is something all hackers have in the cheat box, so it’s worth checking out at some point.
To give you an idea of ââthe power of Perl, here is the complete code that was created to break DVD encryption. Yes, it’s rather cryptic:
Ruby
Ruby and its Ruby On Rails web application framework power some pretty big websites like Groupon, Shopify (a commerce platform), and the Twitter front-end. It’s a fully object-oriented language that is interpreted by the server and then sent as a finished HTML page to the browser – much like PHP (but also completely different, * sigh *). It does, however, have a number of key advantages, namely fast development, less code repetition, and speed.
Unfortunately, most web servers don’t support Ruby out of the box, so unless you can set up your own server the way you want, you need to use a hosting service like Heroku.
Python
Python is another fully object-oriented high-level strongly typed language. Adjectives used to describe Python generally include amusing, easy to use, and one good learning tool – but ultimately there are very few real world Python web applications. This certainly seems like a good place to start, especially if you are the type of person who enjoys Linux and open source / community projects. Don’t expect to create real webpages with this, and there seems to be a rivalry with the Ruby community.
ASP.net
This is Microsoft’s contribution to the arena of web languages, which is predictably popular in corporate environments and nowhere else. It’s tightly integrated with the .Net family and you need specific Windows hosting to run ASP.net web applications, which in my experience is a lot more effort than it is worth. worth it. Stay away from this one unless you have a really good reason not to.
So what should you learn?
If you want to build a modern and interactive website, I suggest a combination of PHP, MySQL and possibly JQuery / Javascript for interactivity. This isn’t to say that languages ââlike Ruby and Python aren’t worth exploring as a learning exercise – which we will certainly do at some point – but if your time is limited and you seriously want to start learning some useful real world skills, then the PHP / MySQL combo is the best place to start.
If you think I missed something, then comments and reader contributions are always welcome in the comments.
Read more
About the Author