Subjective Blog | Useful. The New Black.

Archive for the ‘Useful’ Category

Getting Started with Ruby on Rails

Saturday, December 6th, 2008

I recently piqued the interest of a friend of mine into taking a look at Ruby on Rails, and I wanted to pass on some useful resources to help him get started.

Your First 3 Stops

If you’re looking for a quick introduction, any of these three links will provide you with what you need, in different ways.

Learn Ruby on Rails: the Ultimate Beginner’s Tutorial

If you’re feeling Super N00bular you’ll want to check out this article. Even though it’s based on Rails 1, it’s a good overview of the Ruby language, as well as how MVC is implemented in rails. The finer points that make the difference between Rails 1 & 2 appear to be glossed over and ignored, so, you should be fine.

Creating a weblog in 15 minutes with Rails 2

If you want to spin your head with the awesomeness that is Rails, then take a look at this.

Guides

The Guide is technical. It’s for showing you how things work. But if you want to go at your own pace and RTFM, then this is the way to go.

Official Resources

Creating a weblog in 15 minutes with Rails 2

In 15 minutes, Ryan Bates of Railscasts shows you how to make a blog, with comments, and Atom Feed, an Admin and more. I was genuinely impressed with this.

Guides

These are a friendly bunch of guides that explain the ins and outs of Rails very thoroughly without getting overly technical. A very easy read, and they’ve helped me out a lot.

API Reference

I’ve checked this out a few times to see just how a particular function works, and while the explanations are slightly cryptic, as these things go, it’s been invaluable so far.

Screencasts

Railscasts

I download these through in iTunes, which is really convenient. I’ve found Railscasts to be exceptionaly useful to help me learn the Ruby syntax, and the Rails way of doing things. The episodes are free, and usually fairly short, covering only one small aspect of the framework at a time, but it makes the pieces very digestable and easy to follow. Highly recommended.

You can also find links to more Screencasts and Presentations on the Official Ruby on Rails site.

Peepcode

I haven’t checked these out beyond the previews because they cost money, but they seem to have a good rap around the community.

Blogs & Sites

The Buck Blogs Here

Jamis Buck of 37signals provides insights into RoR best practices, such as this MVC gem on the Fat Model, Skinny Controller. Beats the pants off of CakePHP any day.

Jamis also wrote Capistrano, a deployment tool that seems cool, but I haven’t gotten in-depth with it yet.

Ryan Daigle / Edge Rails

Ryan publishes articles related to the latest and greatest in Rails that hasn’t quite hit ’stable.’

Rail Spikes

These guys are cool because they’re local Minnesotans.

Rails for PHP Developers

Coming from a PHP background myself, I’ve found this site to be helpful when old habits just don’t work the way they used to.

Articles

Learn Ruby on Rails: the Ultimate Beginner’s Tutorial

The first couple pages are MVC theory, but the rest is a good intro to the syntax of the Ruby language, which is delicious.

There are a few other Ruby on Rails articles on SitePoint, but I haven’t read them yet.

Rapid RESTful Rails Apps — No, Really!

This one looks good, and I’m thinking it’ll come in handy for a publishing project I’d like to tackle in the near future.

Books

Just to let you know, I will get a kick back from Amazon if you buy these books through these links. That said, they’re still great books.

Simply Rails 2

Some of the articles on SitePoint are really just sample chapters from this book, which isn’t a bad thing. I’m about half way through reading it and it’s been really helpful to learn how all the little pieces fit together. Rails really is an elegant framework that makes coding fun again.

Advanced Rails Recipes

I’ve enjoyed reading the free chapters they have at The Pragmatic Bookshelf and I’m looking forward to picking up the whole thing.

Head First Rails: A learner’s companion to Ruby on Rails

I’ll give this an Honorable Mention because it’s not out yet, but I’ve liked what I’ve read in other Head First books, so I’ll probably give it a shot.

How to be a Better Writer: Attitude

Friday, September 19th, 2008

Your disposition is of penultimate importance.

Writing is a craft, like any other. Simply because you can read and write does not in fact make you a writer. Practice, diligence, and respect for the craft will. I’m not suggesting that you need to be as stuffy as the English professors in your head, rather, I’m suggesting that you care about what you say and not spill words upon a page for the sake of it.

Attitude is your most powerful tool. After all, you’re aiming to elicit an attitude adjustment in your readers, so you must set your own attitude accordingly.

“Play it again. This time with feeling!

Balance

The most important thing to remember though is that you are not your writing. This is a lesson I picked up from Writing Down the Bones, a great resource that my wife introduced me to. It’s easy to become attached to your writing because you put so much care into your words. This is sadly the cause of most creative blocks as well. You’re so hell bent on creating a work of art that you’re incapable of producing anything less, and thus create nothing at all. The truth is, 99% of what you write is going to be worth throwing out, as evidenced by the following quotes:

“Genius is one percent inspiration, and ninety-nine per cent perspiration.”
Thomas Alva Edison

“I would have written a shorter letter, but I did not have the time.”
Blaise Pascal

Brilliant men of staggering accomplishment agree. Write it, then rewrite it and throw out what you don’t need. If you find yourself in one of those unfortunate blocks, write the shittiest piece of prose you’ve ever conceived. The only cure for constipation is diarrhea.

Overcoming Creative Blocks

One of my friends suffered a enormous creative block that lasted for a long and painful year. He had written a poem that resonated with him in a way that none of his work had before — I read it, it’s that good — and he became crippled any time he tried to write after that. I listened to him tell me his tale of woe, and I told him exactly what I thought: “You’re afraid that you’re not going to live up to your own work.” He agreed, and I suggested that he not try to, and instead, he ought to write terribly on purpose. When I saw him again a while later, he told me that he wrote three poems that week after I gave him my advice.

In the end, what saved him was realizing that he was above his work, his work was not above him. This is true of all creative disciplines, and I’ve used that tactic — create terrible work — to overcome many blocks whether I’m writing or designing.

As a writer your attitude has to be one of diligence in order to persevere through the trials, and tyranny to cull the herd — there is no other way to care about your words.