Before we learn what we’re learning, let’s learn it first.
If you google “Perl 6 Logo”, you get this picture.
Ruby is so awesome that people once think that we don’t need Perl 6 anymore.
I want to start by telling you my learnings from the language aspect
by Simon Cozens.
After seeing rubyisms, I asked my self a question:
Can Perl programs have the same look and feel of Ruby programs?
There are several good parts of Ruby that I like...
The self keyword – It doesn’t always mean “the current object” like in java.
Those baz in there refers to different baz method.
The ‘yield’ there means to invoke call the given block as a method.
One good use: Markaby
Another one Hot cocoa.
Ruby primitive data types are all Objects
It requires the statements to be written nicely, but it’s nice not having to write semicolons sometimes.
Now you can define a class with keyword “class”
and define instance methods with keyword “def”
plus function prototype
See also that module
Export “Array” method as the constructor of Rubyish::Array.
boolean keywords returns the singleton object of their classes
Ruby hash has a lovely way to lazily initialize its content.
We have Memoize instead of being Lazy. But it doesn’t read nicely.
And it doesn’t happen automagically.
You might notice that the “Hash” returns a hash ref but not a hash.
This is required because the it’s a reference to a tied hash. So the magic
under the table, is to use tie.
Let’s write more crazy stuffs for this namespace.
Hey! It’s a Web-two-point-o-ey resource allocation exchange website!
Volunteer added good styles
Being a website that helps people in such a tragedy, the website should...
The whole points for such website
Now it’s over and the website basically shutdown...
I looked back and thought..
They see a problem/requirement and they uses the technologies they familiar with.
Heroku is so convenient and cheap for RoR deployment. This makes me, as a Perl programmer for year, really jealous.