I was browsing through few learning sites, forums and discussions – One prominent topic where everyone is trying to debate “Which is the best programming technology for web App” considering the current scenario of technology; Unfortunately, choosing a programming language can be a major hurdle. It’s been a couple of weeks I was going the knowledge-base across and multiple discussion with people who worked on these. I'm sharing all the info I got in form of comparison. There are various aspects we need to consider before comparison and some many deny that comparison itself, I just picked these three because of the popularity and trend of these three across the industry.
Now the entire comparison will provide you clarity on 3 points:
- History and background
- Why it’s used
- Advantages and Disadvantages
In the conclusion will share my views on what's best for you to use or learn
A brief background, along with advantages and disadvantages - rather I call benefits and limitations
PHP
|
Ruby
|
Python
| |
server-side scripting language
|
server-side web application framework
|
Interpreted high-level programming language for general-purpose programming
| |
Introduced by
|
Rasmus Lerdorf
|
David Heinemeier Hansson
|
Guido van Rossum
|
First released / appeared in
|
1995
|
2005
|
1991
|
Background
|
Developed as a personal homepage tool
|
Evolved from the project management tool “Basecamp”
|
As a hobby, Rossum write an interpreter for the new scripting language he been thinking from a long time
|
Purpose
|
Create dynamic and interactive websites
|
Seamless database table creations, migrations, and scaffolding of views to enable rapid application development
|
Multi-paradigm programming language.
|
Current stable version
|
7.2.2 [Jan 31,2018]
|
5.1.5 [Feb 14, 2018]
|
3.6.4 [Dec 19, 2017]
|
Popularly known for
|
Fast and flexible
|
Dynamic, Imperative object-oriented programming language
|
General Purpose Programming Language
|
Market Share
|
3.4%
|
2.5%
|
5.1%
|
Who is using it [in popular]
|
Facebook / Wikipedia
|
Twitter / Groupon
|
Google /YouTube
|
Usability
|
Follows classic approach
Extensively documented
|
Elegant, powerful and expressive
|
Most readable programming language
|
Learning curve
|
Easy to learn
|
Needs to know at least one or 2 programming language
|
Highly recommended for new programmers and simple syntax
|
Popularity
|
1
|
3
|
2
|
Performance
|
Consume less memory and high performance
| ||
Advantages or Benefits
|
|
|
|
Disadvantages or Limitations
|
|
|
|
If we look at the TIOBE Programming Community index which provides the popularity of programming languages index - It shows Python, PHP, and Ruby in the first 10 trending programming skills across the industry. So popularity is almost the same for the three.
Let's look few highlights on each and then jump to conclusion
PHP:
- Is the popular, so help is easily available
- Syntax is very similar to C and C++, provides ease to developers in adaptation
- Works well with most popular online database MySQL and also with many RDBMS
- It can run both on Windows / Unix servers
- As it's fully object-oriented language helps to build large and complex web applications
Ruby:
- Contains many ready-made plugins and modules, which allow developers not to waste time [Time-efficient]
- Need to follow standardized file storage and programming conventions that keep a project structured [Consistent]
- It's an open source framework distributed under the MIT license [Cost-effective]
- It comes with inbuilt Minitest tool, which will help in expectation syntax, test benchmarking, and mocking.
- Encourages TDD
Python:
- Contains numerous third-party modules that makes it capable of interacting with most of the other languages and platforms
- Provides large standard library, many high use programming tasks have already been scripted into the standard library
- It's free to use and distribute, including for commercial purposes.
- Learning Ease and Support Available
- User-friendly Data Structures:
As most programmers will agree, all three will do everything and there's no Good / Bad to choose. It always depends on what you want to accomplish. For example:
After so much excitement, I'm not telling you any groundbreaking rule. So like in the above picture it always depends on what the goals you are trying to achieve in the project or scenario you are with. I'm a fan of Python because its been on the web since 1995 and is a powerful scripting language with simple syntax, it's also easy to learn and easy to write. On the other hand, it's slower because it is an embedded language, runtime overhead can be a problem in larger applications. Also deploying Python web applications isn’t as straightforward as it is in other languages like PHP. So, Always remember it depends on your development needs, the scale of your application, necessity of the customer and many other underlying factors to determine the language you need to use. When you bring all of these factors together it's a purposeful discussion on which language to choose or best.
Feel free to add your points and views, Thank you!!


Get all Technology and Programming Learn latest technology, software development skills, b.tech, MCA and BCA
ReplyDeletecomputer programming training.