I need to feel like I’m making progress. So tonight, I stayed in and started doing the Blogger Rails app with http://tutorials.jumpstartlab.com/projects/blogger.html
Also for building my habit: using the simple mechanism of “chaining” — http://chaincalendar.com/ Simply “don’t break the chain,” said Seinfield. Inspired by this article from Buffer:http://blog.bufferapp.com/stop-procrastinating-seinfeld-strategy
- I’m learning that defining the model first helps me structure/organize my code
- Next is to define the corresponding methods in the controller
- And finally, rendering it in views
- I tried learning Rails before and got this confused — and it was no different this time: there is a difference between <% and <%= in Rails (templating language, mixing ruby & html)
For example: <%= Article.each do |article| %> and showing the Article.title, would’ve showed the SQL output as well.
<% Article.each do |article %> would’ve hidden the SQL output.
I’m excited to finally put the pieces together with Ruby & Rails. My brain was craving it. Also, I look forward to pushing out 1 simple web app / day in the future. These simple web apps would just be simple solutions to mundane problems that I bump into.
Inspiration? Magritte, the painter, Eminem, the rapper, Kanye the producer (when he was pushing out 3 tracks per day over the summer), etc.
Email me when Learning to Code in RoR: Journey with non-techies publishes stories
