Ruby
Using HAML for Rails or Sinatra For Readability and For Sanity
admin — Wed, 10/21/2009 - 01:33
Two popular templating formats in Rails are HAML and ERB. I did not use HAML initially because it was too DRY. That was my initial reaction to the new language. Or it was for people who put too much emphasis on "Don't Repeat Yourself" philosophy. But Jesse Crockett and his project forced me to learn HAML and somehow I don't regret that. I use HAML for all Ruby projects. But I also use ERB and I will explain why a bit later.
HAML is great and I was wrong. I realized I have an aversion towards unreadable code. I did not see myself reading and writing CFML tags for a long time that is why I gave up my job to be a bum (not really). Seriously I also hate Dreamweaver. Why do they create these products? There are always better open source alternatives.
Indenting and Outdenting
How to Learn Rails 2
admin — Tue, 10/20/2009 - 23:50
How did they learn Rails?
"They" are the core team. Click here to check out their interesting answers.
How did I learn Rails?
I learned as I got new projects. I found myself grappling with e-commerce application issues (not just Rails applications, those monolithic PHP apps too). I really love reinventing the e-commerce wheel so I am building my own platform.
Did I start with the language or did I start with the framework?
Simultaneously learned both.
I am new to Rails. Do I need to read a book?
Highly suggest doing so and start reading the DHH book. The Agile Web Development With Rails book written by David. I knew someone who said he knew Rails without reading ANY book, but naturally he googled the concepts behind Rails because I don't think he's a genius at all.
The most important concepts behind Rails are MVC, REST, DRY, ORM (ActiveRecord).
Ruby is for Linux and Mac Users
admin — Mon, 10/19/2009 - 02:51
This is an important post, friends. You cannot use Windows if you want to be a cool Ruby programmer. Someone said it is an "exercise in futility" to even try. He is seriously right.
Please consider reading the Free Ubuntu ebook if you are new to Linux. Don't worry it's been over 2 years and I am still newbie to Linux. LOL.
Ubuntu Jaunty is a stable release but in 10 days, Karmic Koala will be released. I always choose 32-bit option because I really don't have too many resources to run 64-bit.
Check this out:
We nearly have the same setup except that I use Songbird as my music player and I still use Adobe products via Windows XP on VirtualBox for designing. Google has funded the effort to make Adobe products work with Wine (for running Windows apps on Linux) but I personally feel that is best to go with what already works at the moment.
RUBYISTS GUIDE TO LINUX DEVELOPMENT ENVIRONMENT
sudo apt-get install git-core gitk
This will install GIT and the GUI tool for Git. He had a typo on his post.