Author Archives: khelll

Ruby symbols

I keep seeing many programmers from different backgrounds are unable to get what Ruby symbols are, and though I do know that there are many great posts regarding this topic, and actually my intent is not to increase them by … Continue reading

Posted in Ruby | Tagged , | 76 Comments

Ruby and Metaprogramming

According to wikipedia, Metaprogramming: is the writing of computer programs that write or manipulate other programs (or themselves) as their data, or that do part of the work at runtime that would otherwise be done at compile time. Well, nice … Continue reading

Posted in Ruby | 5 Comments

Ruby and Internal DSLs

A Domain-specific language(DSL) is a computer language that’s targeted to a particular kind of problem, rather than a general purpose language that’s aimed at any kind of software problem. Domain specific languages have been talked about, and used for almost … Continue reading

Posted in Ruby | Tagged , , | 8 Comments

Ruby callbacks

This blog post is about ruby’s callbacks(hooks): what are the available ones,and how practically we can use them? method_missing obj.method_missing(symbol [, *args] ) => result might be the most famous hook in ruby, and is being used a lot by … Continue reading

Posted in Ruby | 10 Comments

Ruby reflection 2

This is the second post related to ruby’s reflection API, the previous post was an extensive intro to this topic. While the current one will be lighter somehow, it would require you to focus a bit more on the content. … Continue reading

Posted in Ruby | Tagged , , | 3 Comments

Ruby reflection

If you are here, then most probably you want to know more about ruby reflection interface. Well that’s true, but I always find myself in need to explain few things before I get started with my posts, and this time … Continue reading

Posted in Ruby | Tagged , | 17 Comments

Arabs who are interested in Merb and Merb-book

So many developers from various countries had corresponded to Matt Aimonetti’s article on open merb book, and an early version of the book is out there. However lot’s of work is still needed in both directions: contribution and translation ,so: … Continue reading

Posted in Merb | Tagged , | 2 Comments

What i liked most about rails 2.2

Well, finally it’s there, many important improvements were added to rails 2.2, and yet new things are on the way, you can check this blog post to check what’s new, while i’m gonna list here what i really liked about … Continue reading

Posted in Merb + RoR3 | Tagged , , | 1 Comment

Ruby introspection 2

I wanted to start blogging on ruby reflection api, but i just realized that i have to give a second part of my previous article on ruby introspection . So here we go: s = ” # s.is_a? String, this … Continue reading

Posted in metaprogramming, Ruby | Tagged , , | Leave a comment

Changing database encoding from latin1 to UTF8

Now a days, UTF-8 is the most used data encoding format, and the fact that your database is not using UTF8 encoding is really annoying, specially additionally when it comes to integrating different systems, that has no one unified encoding … Continue reading

Posted in mysql | Tagged , , | 18 Comments