turnings :: daniel berlinger

passions :: perfections :: peoples :: stuffs

Archive for December 2011

More on pattern mismatches (MVC etc.)

leave a comment »

ActiveRecord (and Rails) Considered Harmful – Literate Programming:

If you’ll notice, I basically have said that models are a problem. Controllers are a problem. Views are a problem. MVC has served the web well, even if it isn’t the GUI style MVC that named the pattern. But I think we’re reaching its limits; the impedance mismatch between HTTP and MVC, for example, is pretty huge. There are other ways to build web applications; I’m particularly excited about WebMachine. I don’t have a constructive alternative to offer here, I just know there’s a problem. I’m still mulling this one over.

[Some interesting thinking here. It feels like it makes certain things easier but is not fleshed out. Maybe because it’s new, but maybe it just doesn’t feel quite right. I’m fairly convinced that part of the problem is the amount of functionality we often cram into one application.]

Written by Daniel

December 30, 2011 at 3:15 pm

Posted in code, tech

Overend in Switchback Issue 01, Rusch in 02

leave a comment »

Switchback interviews Ned Overend:

Next it starts to rain forty-five minutes into it, it turns to freezing rain, the mud is splashing up into my face, I’m still trying to stick with these guys that are chasing all the while my body temperature is dropping. Then I’m miserable, I start to get hypothermic and then I’m not thinking about racing anymore— I’m just trying to get to the finish line. It becomes survival. After two and half hours of riding in the rain, I hate mountain biking. Then the sun comes out and I start to feel better, I finished totally shattered. It’s just the whole thing—the suffering, the exhilaration.

[Everyone who does this writes about it the same way. Beautiful.]

Rusch:

The way I’ve always treated sponsorship is as a personal relationship. With Red Bull it was, ‘We’ll give you water bottles and a couple of cases of Red Bull.’ Great! That’s awesome and I was happy with that. Same with Specialized, we got a pro deal and that’s it. And they have grown into my main sponsors and it’s all been really slow. Giving them feedback, giving them photos, saying thank you. I mean all the stuff your grandmother teaches you! Write a thank you note. It’s really simple. I didn’t ask for money initially, and I felt like I gave them a good return on their investment and each year it slowly grew and now I’ve been with Red Bull now 10 years and Specialized eight. It’s just an honest working relationship, there is no magic to
it. You over deliver and then it usually works out in the end.

[It’s all about relationships.]

Written by Daniel

December 30, 2011 at 9:13 am

Posted in cycling

Your Rails Application is Missing a Domain Controller

leave a comment »

Your Rails Application is Missing a Domain Controller:

When an application has multiple Domain Controllers I place them in a dedicated directory under app called services to keep them separate from the Model entities in app/models. This helps communicate that Rails Action Controllers should delegate to the Domain Controllers, not directly to Model Entities. The Domain Controllers and Model Entities together, represent the domain layer of the system. I have also discussed extracting the entire domain layer from the Rails framework, but that’s another discussion. Let’s keep this blog post civil for now!

[I’ve also refactored in this direction a bit lately. I’m beginning to wonder of MVC needs to be replaced in these cases with “MDCV” to begin with…]

Written by Daniel

December 30, 2011 at 8:35 am

Posted in code

Ohm: Object-hash mapping library for Redis

leave a comment »

Ohm looks interesting. On my short list to dive into next week.

Written by Daniel

December 30, 2011 at 8:27 am

Posted in code, tech

The art/craft/commodity continuum

leave a comment »

The art/craft/commodity continuum:

When we create an item for another person, we have to consider whether that person is looking for art, craft, or commodity. We may wish to always be creating art. Or craft. But sometimes our customers want commodity. Not only is commodity cheaper but it’s what they prefer.

[Well said. I live for art and craft. If ever it as a question, it isn’t any longer.]

Source: ChadFowler.com

Written by Daniel

December 30, 2011 at 8:27 am

Posted in commentary

Redis in the NoSQL ecosystem – Blog : Siyelo

leave a comment »

Redis in the NoSQL ecosystem – Blog : Siyelo:

All these different options place Redis in the NoSQL ecosystem somewhere between simple caching systems like memcache and feature-heavy document databases like MongoDB and CouchDB. The question is: when do you pick Redis over other NoSQL systems?

[I wouldn’t limit my thinking to the use cases listed here, but th post does give a quick, if limited, overview. It does not mention all the datatypes or the scripting for example, so make sure you explore Redis from the documentation on outward.]

Written by Daniel

December 30, 2011 at 8:04 am

Posted in tech

Mallory Myths – Gear Timezone

leave a comment »

Mallory Myths – Gear Timezone:

Their layers of wool, silk and cotton was lighter than modern clothing and extremely comfortable to wear
Mallory’s boot was the lightest ever used on Everest.

The 1924 Everesters were lightweight specialists who understood their clothing better than most modern climbers
The complete set of garments was field tested on Everest, by Graham Hoyland, the great nephew of Howard Somervell, in April 2006. He confirmed that the replicated garments indeed formed a sophisticated, effective and comfortable clothing system which ‘was perfectly adequate for a summit bid’. Graham Hoyland, Everest, April 2006

[Unsurprising considering that we’ve all “rediscovered” wool and silk in the last few years, and who doesn’t love cotton? You just have to be more careful about getting them wet. Cotton, because it takes a long time to dry, wool because it absorbs so much water that it weighs a ton until it dries, and loses it’s shape along the way. etc. But still, awesome.]

Written by Daniel

December 30, 2011 at 7:58 am

Posted in chronicles, houndstooth

Follow

Get every new post delivered to your Inbox.

Join 537 other followers