Python and Ruby: Programming Languages Compared

Page 1

Python and Ruby: Programming Languages Compared

Python and Ruby are two programming languages used for the development of portals, services and complex web applications. In this post today, we will try to explain what are the strengths and “weaknesses” of each. Enjoy the reading. Python was founded in 1991 by Guido van Rossum (currently in force at Dropbox). The idea behind Python is to simplify the lives of programmers by providing them with an easily readable, clear syntax and inspired by the “machine language”. There are three basic principles of Python philosophy: explicit is better than implicit; the simple is better than the whole; the complex is better than the complicated. What has just been said immediately qualifies Python as one of the most suitable languages for those approaching the world of programming. The syntax is easy to understand and does not require the memorization of many notions – to create something there is one and only one way to follow. And the explicit structure of the code greatly facilitates debugging. Among the numerous merits of Python, then, can not be mentioned the fact that it is a free software (from the download of the interpreter for the platform that uses the language in each application). Moreover, those interested in modifying it can do it freely, so as to redistribute it in that open source optics that has always been one of the secrets of computer evolution. Python can be defined as a pseudo compiled and portable language (the second characteristic is, in effect, a direct consequence of the first). An interpreter, in essence, analyzes the source code and then executes it in the event that it considers it correct from the syntactic point of view. This means that, unlike what happens with the C language, Python does not have a separate compilation phase from which an executable file can be generated. Why, then, do we talk about portability? Simply because the language, after being written on a source, can be interpreted and then run on almost any


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.