Skip to main content

Ruby, Easy Development.

Hi guys,
Everything under this article (here i have mentioned very few things) is absolutely true and exercised..... because I am new to this language and I learned it very fast that I learned other languages and there are more to cover too....

If you are having basic theoretical knowledge on 'Object Oriented' concepts you are most welcome to Ruby..., You won't take more than 2 days to learn basic of the Ruby language. You will realise it once you are there......

Have fun with Ruby.....,


Ruby;

Ruby is a Object Oriented Programming language which is created by Yukihiro Matsumoto (Matz). He has often said that he is “trying to make Ruby natural, not simple,” in a way that mirrors life. It was first released on 1995. Since that growth of the Ruby language was unstoppable.

This marvelous, handy and artful language is absolutely free, not only free of charge but its free to use. You will feel like flying on the free sky when you develop applications with Ruby.

In Ruby, everything is an object. Even a primitive types like numbers in other languages. You have lots of methods on a number which you don't have in most of other OOP languages. Take a look at this;

5.times {print "We *love* Ruby -- it's outrageous!"}

In many languages, numbers and other primitive types are not objects. Ruby follows the influence of the Smalltalk language by giving methods and instance variables to all of its types.

Beyond the Basics;
Ruby has a wealth of other features, among which are the following:

  • Ruby has exception handling features, like Java or Python, to make it easy to handle errors.
  • Ruby features a true mark-and-sweep garbage collector for all Ruby objects. No need to maintain reference counts in extension libraries. As Matz says, “This is better for your health.”
  • Writing C extensions in Ruby is easier than in Perl or Python, with a very elegant API for calling Ruby from C. This includes calls for embedding Ruby in software, for use as a scripting language. A SWIG interface is also available.
  • Ruby can load extension libraries dynamically if an OS allows.
  • Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multi threading, regardless of if the OS supports it or not, even on MS-DOS!
  • Ruby is highly portable: it is developed mostly on GNU/Linux, but works on many types of UNIX, Mac OS X, Windows 95/98/Me/NT/2000/XP, DOS, BeOS, OS/2, etc.

Comments

Nalin De Zoysa said…
great work buddy i appreciate your work.
Nalin De Zoysa said…
can u update it further
Anonymous said…
Edit the intro...where "articel" MUST BE "article"

gud attempt anyway

Popular posts from this blog

Graphical Grub/Boot Screen Not Coming Up?

If you are a Fedora user you might have experienced that the nice and cool graphical grub menu we had in Fedora 18 is missing in Fedora 19. Wanna get it back? OK. Follow these steps as root user. Check if the /boot/brug2/themes/system/theme.txt is available. If not issue the following command yum install grub2-starfield-theme Open /etc/defaults/grub Add/Change the value of GRUB_TERMINAL_OUTPUT  to "gfxterm" Add/Change the value of GRUB_THEME to "/boot/grub2/themes/system/theme.txt" So the final out put would be something like this. Note the highlighted lines. GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="gfxterm" GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 vconsole.keymap=us $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lv...

BandLuxe Dongle is not Working on Fedora Linux?

Isn't your 3G USB Dongle/Modem is not working on Fedora Linux? Don't worry there is a simple solution for this. But remember BandLuxe is supported by Fedora 13 onwards. Issue is sometimes it can't identify the proper mode for your dongle. Your dongle has 2 interfaces. CD-ROM 3G Modem On a windows operating system these modes are switched easily with the shipped driver. Early days on Fedora 13 it perfectly identified my USB dongle as a 3G Modem. Right after I plugged in the device the NetworkManger Applet started showing the 3G network. For some reason this functionality isn't there now. The usb_modswitch  (for those who don't know about this. This is the tool that do the mode switch for your device. Apparently this works as the driver) is still there though, and all the configurations are seems to be ok. Somehow its not doing what its expected to do anymore. So I had to find a solution for this. Finally I've found one. The trick is done using sd...

Capturing echo Output into a Variable in PHP

Hi Guys, This is cool stuff. Did you ever know that you can capture the echo output in your PHP code? Since the echo function is void (which means returns nothing) you might have thought that is not possible on this Earth right? I thought that too. But guess what, this as easy as 4 lines.. :O Code:    ob_start();    echo 'Hello World!';    $hello_str   = ob_get_contents();    ob_end_clean(); That will store your "Hello World!" string into the $hello_str variable without actually echoing it on the browser. Give it a try fellas! ;-) Cheers.