Which one of these is the most different JavaScript, PHP, Ruby Python, MySQL?

If you are a web designer, then you’ve probably heard about the importance of knowing multiple languages. Which one is most different? JavaScript, PHP, Ruby, Python, and MySQL are all very similar in syntax but they do have some differences.

For example, Ruby has “end” instead of “then”. JavaScript doesn’t have this so it’s safer to use an opening brace when ending a function or if-else statement. This might not seem like much but it can lead to errors that will take more time to fix than just rewording your code with the correct syntax.

They are all very different languages with their own strengths and weaknesses. For example, if you want a language that will be widely adopted then Ruby or Python would be your best choice because they are both trending up in popularity right now whereas JavaScript may see its heyday come and go as it has seen declining numbers over the last few years according to Google Trends.

This blog post will explore these four languages in detail for designers who want to learn them! We’ll also include links for resources that teach how each language can be used.

To know how are these languages used in the real world and what is their purpose, first, we need to understand what is Programming languages and Database manipulation languages?


1. What is Programming language

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that specify the behavior of a machine or to express algorithms precisely.

The first high-level programming language was Plankalkül, created by Konrad Zuse in 1945, while he was developing the first stored-program computer.

The first commercially available language was FORTRAN (FORmula TRANslation) from 1957 for use on mainframe computers. More recently, Java and C++ have been popular for some application domains such as business applications and web pages.

In comparison with ordinary human languages, programming languages require precise syntax and semantics. They are purely written languages and they are often more abstract, but sometimes less flexible, than human languages. They have limited ability to express or handle certain kinds of complex relationships.

The language defined in a given implementation is often influenced by the intended domain and application of the program it describes, an example being Visual Basic for Application (VBA), which grew out of a desire to create macros for Microsoft Access.

Programming languages have only been around for about sixty years or so much experience has not been gathered yet from various implementations. As such, many programming languages are experimental and most new ones are created relatively quickly with little regard to backward compatibility (see also propagation of programming errors).

Let’s check how can we use javascript, PHP, Ruby, and Python?

A. JavaScript:

JavaScript is a high-level, dynamic, untyped, and interpreted programming language. It has been standardized in the ECMAScript language specification. Alongside HTML and CSS it is one of the three core technologies of World Wide Web content production. The majority of websites employ it and it is supported by all modern web browsers without plug-ins.

I. Basic Syntax:

In JavaScript “Hello World” can be written like this:

	alert( "Hello, world!" );

II.Declaration Of Variable:

	let f_no = 5;
	let s_no = 6;
	let result = f_no + s_no;

III. Loops and iteration:

  • do…while – Repeats until a specified condition evaluates to false.
  • while – executes its statements as long as a specified condition evaluates to true.
  • for – repeats until a specified condition evaluates to false.
  • for…in – iterates a specified variable over all the enumerable properties of an object
  • for…of – creates a loop Iterating over iterable objects (including Array, Map, Set, arguments object and so on)


PHP is a widely-used general-purpose scripting language that is especially suited for web development. Originally designed as a templating engine it has since evolved to include a vast number of tools, providing support for object-oriented programming, data manipulation, and SQL interfacing, among other things.

The language allows software developers to write dynamically generated pages quickly, but because of the loose typing often employed by PHP programmers errors can be common.

I. Basic Syntax:

In PHP “Hello World” can be written like this:

	echo "Hello World!";

II.Declaration Of Variable:

	$f_no = 5;
	$s_no = 6;
	$result = $f_no + $s_no;

III. Loops and iteration:

  • while – loops through a block of code as long as the specified condition is true.
  • do…while – loops through a block of code once, and then repeats the loop as long as the specified condition is true.
  • for – loops through a block of code a specified number of times.
  • foreach – loops through a block of code for each element in an array.

C. Ruby :

Ruby is a dynamic, reflective, object-oriented programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp. It supports multiple programming paradigms including functional, object-oriented, and imperative. It also has a dynamic type system and automatic memory management.

I. Basic Syntax:

In Ruby “Hello World” can be written like this:

puts "Hello World"

II.Declaration Of Variable:

a = 10
b = 20
c = 30
d = 40
#or use like this
a, b, c, d = 10, 20, 30, 40

III. Loops and iteration:

  • while loop
  • for loop
  • do..while loop
  • until loop

D. Python :

Python is an open-source, high-level programming language with dynamic semantics. The language provides constructs intended to enable writing clear programs on both a small and large scale.

Python supports multiple programming paradigms: object-oriented, imperative, and functional or procedural styles can be employed as appropriate. It features a fully dynamic type system and automatic memory management; it also has a large and comprehensive standard library.

I. Basic Syntax:

In Python “Hello World” can be written like this:

print('Hello, World!')

II.Declaration Of Variable:

a = 5
b = "Python"

III. Loops and iteration:

  • while loop – Repeats a statement or group of statements while a given condition is TRUE.
  • for loop – Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.
  • nested loops – You can use one or more loop inside any another while, for or do..while loop.

What is Database manipulation language?

A database manipulation language (DML) is a programming language designed to create, maintain and modify the contents of databases. DMLs are used both in application software such as accounting packages and web-based programs, and in database administration.

Database Programming Languages or Database Description Languages (or both) let users describe the structure of their databases either in text form or using graphical representations such as entity-relationship diagrams. They can serve many purposes, including prototyping, documentation, and design.

MySQL is an open-source relational database management system (RDBMS). Its name is a combination of “My”, the name of co-founder Michael Widenius‘ daughter, and “SQL” the abbreviation for Structured Query Language (the database query language SQL.) MySQL is a popular choice of database for use in web applications and is among the most popular open-source databases in use on the Internet.

About Ashis Biswas

A web developer who has a love for creativity and enjoys experimenting with the various techniques in both web designing and web development. If you would like to be kept up to date with his post, you can follow him.

Leave a Comment