Michael Kevin U. Quijano
Kathleen Capalac
RUBY
I. Readability
-Readability is
important enough to make Ruby’s method/block a better way to iterate than
anything else I’ve seen anywhere.
-The readability of Ruby code also makes it easy to make changes later. No matter how trivial the function you write, it is likely to be read and re-read by many people who do not know you before it is retired or otherwise fallen from use.
Example code:
-Printing “Hello World”
In Ruby: print “Hello World”
In Java: import java.io.*;
public class Hello
{
public static void main ( String[] args)
{
System.out.println ("Hello Ruby!\n");
}
}
II. Writability
- Ruby is a
very concise programming notation, so you can write program quickly.
- Any user who will be using Ruby even if he’s new to it wont have any problems programming with it because of its flexibility when coding. The syntax and the semantics or Ruby is intuitive and very clean.
Example code:
Declaring a variable and assigning it:
In Ruby: comguessHigh = 100
(variable_name) ( value)
In C++: int comguessHigh = 100;
data_type (variable_name) ( value)
For Loop (1-9) & (1-10)
In Ruby: for ss in 1…10
for ss in 1..10
---There are actually two versions of the elipses operator, the three period versions as shown previously, and the two period versions. The two period versions are inclusive. In other words, 1...3 means 1 up to but not including 3, while 1..3 means one through 3.
In C++: for(int x=1;x<10;x++){
}
for(int x=1; x<=10; x++){
}
III. Reliability
- As a modern language, Ruby
supports exception. All methods in the class library raise exceptions for
unusual status. Ruby allows the programmer to omit most error detecting code,
and it frees the programmer from worrying about execution under unsatisfied
preconditions.
IV. Cost
-
Ruby is open source and freely available for both development and deployment.
Unlike some other new languages, Ruby does not restrict you to a single
platform or vendor.
V. Portability
-
You can run Ruby under UNIX or Linux, Microsoft Windows, or specialized systems
such as BeOS and others.
EIFFEL LANGUAGE EVALUATION Jeryll Englatera Hans Guenter C. Magadan Readability: Eiffel programming language readability is simple and good. With simple and easy to read syntax, Eiffel is user friendly and has capability of knowing without reasoning. It is almost the same with human language that makes it easy to understand even at first glance. Example code: Printing “Hello World” class HELLO_WORLD create make feature make do print (“Hello World!%N”) end end
Writability: Eiffel programming language writability is poor. It is language developer that writes software in a specific structure. It is written in detailed form.
Cost: Eiffel has dual licensing model for EiffelStudio. Users can choose either commercial or Open Source licensing. If you choose commercial then you must purchase the commercial licenses, after you purchase the licenses then you are free to use your application the way you want. If you choose Open source then you must support the open source community by releasing your application for the benefit of the community. License cost from 2,700-8,999 dollars depends on the operating system platform.
Portability: Eiffel is very portable, it is a multi-platform. It runs in every operating system including Windows (98, NT, Me, 2003, XP, .NET), UNIX, Linux, VMS and Mac OS X.
Generality: Eiffel is simple, elegant and powerful. It has a readable syntax. It has a wonderful structure. And it has powerful environment, EiffelStudio is the most robust, reusable and secure integrated multiplatform development environment on the market.
Well-definedness: Eiffel is short for “The Eiffel Development Framework” which means a comprehensive approach to software development. This supports the methodology and Eiffel Studio, which contains the Eiffel compiler and the complete set of productivity tools which make the development environment. With the mission of developing compilers and tools based on the power of pure object-oriented concepts to improve programmers' productivity, lifecycle efficiency and quality of the resulting applications.
|
Group: German, Daygam,
Rojas
I. Readability
PHP- is a high readability.
PHP- is a server-side scripting.
Example:
After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a variable.
String variables in PHP:
<?php
$txt=“Hello World”;
echo $txt;
?>
II. Writability
PHP – is a high writability. A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code.
Example:
<htlml>
<body>
<?php
echo “Hello World”;
?>
</body>
</htlml>
III. Reliability
- any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content. It can also be used for command-line scripting and client-side GUI applications.
IV. Cost
PHP is open source software.
PHP is free to download and use.
V. Portability
PHP is a cross-platform.
PHP is can be run of any Operating System (OS).
PHP is scripts are executed on the server.
Example:
Microsoft Windows, Linux, Unix, etc.
VI. Generality
- PHP is a general-purpose scripting language that is especially suited to server-side web development where PHP generally runs on a web server.