MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Compare PHP vs Ruby (comparison and difference)

Published on 27 July 15
1
0
There are enormous Web programming language exists on which web developers work upon with each one having their own specific and unique functions and web applications. Each language has a unique set of keywords and special syntaxes for framing program commands. In this article we are drawing a line of comparison between PHP and ruby. We will ensure to incorporate all the possible dimensions and parameters that formulate Web development platform.
PHP: Most Popular Scripting Language for the Web
PHP, a server scripting language has emerged as a powerful tool to create dynamic and more responsive websites. This web programming language is fast, flexile, widely used scripting language for everything from a single blog to most popular and dynamic Websites across the globe.
Advantages of PHP

Easy Free software released under PHP license.

to learn (Short learning curve)

Large community of users and developers

Provides extensive database support

Offers great number of available extensions and source codes

Allows execution of code in restricted environments

Offers native session management and extension API

A great alternative for competitors like Microsoft’s ASP (Active Server Pages)

Can be deployed on most web servers

Works on almost every operating system and platform

Disadvantages of PHP

Not suitable for making desktop applications

Error handling is traditionally poor

Global configuration parameters can change language semantics, complicating deployment and portability

Objects are CallByValue by default, which is the opposite of most languages and catches lots of programmers off-guard

. Generally considered to be less secured than the other programming languages
PHP based Tech Giants

Zend

Yahoo

Facebook

Google

NASA
Popularity
As far as Wikipedia database is to be believed, as of January 2013, PHP was installed on more than 240 million websites (39% of those sampled) and 2.1 million web servers.
Syntax

A PHP script starts with <?php and ends with ?> The default file extension for PHP files is .php. A PHP file usually contains HTML tags, and some PHP scripting code.

1

2

3

<?php

// PHP code goes here

?>;

Ruby: Interpreted, Pure Object- Oriented Programming Language
Ruby is an effective programming language that runs on Ruby on Rails or simply to put it as Rails, an open source, full stack web application development framework. It is a dynamic, imperative object oriented programming language developed to augment new dimensions to web development process. It has a dynamic type system and automatic memory management
Advantages of RUBY

Open-sourced

Works on multiple platforms

Can be embedded into Hypertext Mark-up Language (HTML)

A Very High-Level Language (VHLL)

Offers encapsulation of data methods within objects

Pure OOP (Object-Oriented Programming)

Super advanced string and text manipulation techniques

Can easily be connected to DB2, MySQL, Oracle, and Sybase

Scalable and big programs written in Ruby are easily maintainable

Has a clean and easy syntax that allows the new developer to learn Ruby very quickly and easily

Ability to write multi-threaded applications with a simple API

Offers advanced array class

Able to write external libraries in Ruby or C

Allows reserved word to be used as an identifier as long as the parser doesn’t perceive an ambiguity

Better security features

It has a debugger

It has flexible syntax

Powerful string handling
Disadvantages of Ruby

Learning it can be difficult

Lacks informational resources

Slower processing time (CPU time) compared to other programming languages

Development and updates are slower

Ruby based Tech Giants

Google Sketch up

37signals

GitHub

Shopify

Indiegogo

Basecamp

Popularity
According to the Ruby official website, it is ranked among the top 10 on most popular programming languages worldwide (such as the TIOBE index). Much of the growth is attributed to the popularity of software written in Ruby, particularly the Ruby on Rails web framework
Syntax

All Ruby files will have extension .rb. Using the Ruby interpreter available in /usr/bin directory, you can run Ruby codes.

1

2

#!/usr/bin/ruby -w

puts &amp;amp;quot;Put something here&amp;amp;quot;;

I hope this article enabled you by far to ideate which programming language has its specific functionalities for a particular purpose and which to use for that specific web development project.
This blog is listed under Open Source and Development & Implementations Community

Related Posts:

PHP

 
View Comment (1)
Post a Comment

Please notify me the replies via email.

Important:
  • We hope the conversations that take place on MyTechLogy.com will be constructive and thought-provoking.
  • To ensure the quality of the discussion, our moderators may review/edit the comments for clarity and relevance.
  • Comments that are promotional, mean-spirited, or off-topic may be deleted per the moderators' judgment.
  1. 28 January 16
    0

    Once you get passionate about development, you have to realize that you'll never stop learning. In a way, as technology evolves so rapidly, you need to get used to be an eternal novice. The point is being able to learn quickly, display adaptability and being passionate. Back to the question, depending on your level of knowledge of general programming, web specific languages like HTML and CSS and databases you may need from a few weeks to several months to reach a level that allows you to build a fully functional web application of average complexity with PHP. As a passionate Ruby on Railer, my personal opinion is that you may want to start with PHP if that is your first experience with web development. PHP is in fact a good language to explore the basis of server side web development. As soon as you are able to get a few things done in plain PHP, you will probably understand better how Rails (or your framework of choice) can dramatically improve your productivity and the quality of your output. Remember that Ruby on Rails, differently from PHP, is not a programming language. It is a framework built on Ruby language. As such, it helps you doing common things without having to code them every single time from scratch. Still, to make good use of it, you need first to understand what's happening at a lower level. for more visit : http://www.valuecoders.com/blog/

You may also be interested in
 
Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top