| « A REALLY different solution to Isreal/Palestine | Day Off » |
Programming in ruby
Today I am delving into Yet Another Language, ruby version 1.8
Its not like I dont have all kinds available to me already, and some I have known for many years:
BASIC - since 1978
C - 1989
perl - 1992
html - 1994
php - 2003
python - 2003
But, I have been fighting against OOP since the days of my old Borland compiler because it made little sense to me, and I could see no advantage to it over procedural C. Actually, what I objected to was C++, not Objects in particular, and no good examples and documentation at the time (being self-taught in most things).
I have had to work on Visual basic 6 at work for some projects, and that experience has at least shown me properties and methods of existing routines in VB, I still had not written any classes on my own, nor did I need to.
While digging and wandering today, I happened upon some writings about ruby, and about how object oriented it is. The example code I saw showed just the kind of things I was used to seeing in VB, especially the methods for strings myvar.downcase and myvar.capitalize and myvar.reverse
"AHA!" I thought, now HERE is something I can use, its direct, to the point, and like perl, the syntax does not require pre-declaring of variables (one of the main reasons I use perl to throw code together quickly). So now, I have a simple way to learn the basics of Object programming. Once I understand it (by playing with it, as I have done in all other languages) - I can apply its use into all the languages I use (if a situation calls for it).
One possible application for this kind of technique is in my robotics programming, just as when I learned event-driven programming, and found many uses for it.
We never stop learning ![]()
Technorati Tags: Technology Programming
Trackback address for this post
No feedback yet
Comments are closed for this post.