It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, extensible, and portable
The Integer class and its subclasses Fixnum and Bignum now have a reverse method. This is an important part of Ruby, as less object oriented languages will often make you use more standard procedural style within a class, e.g. a custom method I want to operate on strings would typically be a static method that takes a string as an explicit method in Java or C#, while in Ruby you would add it to the string class and continue calling it OOP style. Ruby even lets you add a method to a single specific instance of a class.
--------------------
Smitha
I have used ROR for web development successfully. It is object oriented making development easier. ROR makes it easy to access data models with limited amount of coding. You also can scale the project or scale the web design. To grab ROR information go on google or go to Rubyonrails.org. These were very useful.
PHP does what most programming languages do. I mean they functionally do all the same things, the ROR framework isn't half bad though, but then again there's many PHP frameworks that copy Rails. The advantage of PHP is it can be done procedural, and OO, and it's straightforward. A intermediate PHP user can do the same as an advanced PHP user using procedural instead of OO, so it's an attractive language.
you know why php is good, because ppl actually type php code..
now, does anyone here know how to type ruby code.
no.
i thought so
Win.
Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
you know why php is good, because ppl actually type php code..
now, does anyone here know how to type ruby code.
no.
i thought so
Code:
def f(name)
puts "#{name} can codz the rubz"
end
f("Fou-Lu")
// Fou-Lu can codz the rubz
Mind you, I only know it because it was a requirement for school...
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php