Barebone models to use with ActionPack in Rails 4.0 | Plataformatec Blog

Barebone models to use with ActionPack in Rails 4.0 | Plataformatec Blog:

Rails 4.0 – current master branch at the time of this writing – has recently got a small – yet very useful – addition: ActiveModel::Model. The implementation is really simple, as you can see

[Nice.]

Advertisements

European vs American cooking habits and why it matters for programming

European vs American cooking habits and why it matters for programming:

It doesn’t matter if it’s cooking or programming or doing whatever, really—you can learn from other people and how they do things differently from you. Don’t dismiss them outright. Hear what they have to say. Here’s one concrete example for myself that I’ve stumbled upon: I dismissed the meaningful indentation in Python, but later I’ve come to like it in CoffeeScript.

However, if something doesn’t hold up to the claims, or is doing things objectively wrong—it’s OK to be dismissive. It’s good to be opinionated. Just think about it for a second first, and better yet try it out. You might be surprised about what you fall in love with that at first seemed outlandish or stupid to you.

[It feels like we all learn this lesson one at a time. Keep an open mind people, you never know what you might discover.]