News for hackers. Stuff that matters.
Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @04:55AM (#431867)
Rails: Here's a kick-ass hammer, a kick-ass saw, a kick-ass measure tape, etc...

Oh, and if you need them to be different from the default, you can modify them as you want, but we think the default works for most people.

Re:Why I Hate Frameworks by statictype on Tuesday January 13, 2009 @05:36AM (#431887)
But don't bother checking for the spring mechanism that retracts the measure tape in case it breaks or the power supply connection point on the saw if it stops working.

Those bits just magically work!

:)

Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @06:18AM (#431912)
They don't magically work. You'll understand the mechanism when you know a bit more about how to build a measure tape and a saw. Also, all the so-called magic is extensively and automatically tested, and so an order of magnitude more reliable than your own custom-rolled spring mechanisms.
Re:Why I Hate Frameworks by nailer on Tuesday January 13, 2009 @08:18AM (#431986)
Exactly. This is why the article is such a bad analogy - frameworks makes things simpler by handling things you'd already do without them.

If you're making a spice rack:

Without framework: DIY shed filled with tools

Framework: IKEA

Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @08:35AM (#432005)
Well, not quite... that's a bad analogy too, actually... Rails isn't IKEA - and most java frameworks are definitely not IKEA.

Frameworks are tools, not end products.

Re:Why I Hate Frameworks by parenthesis on Tuesday January 13, 2009 @09:45AM (#432068)
Have you tried assembling an Ikea flat-pack?
Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @11:09AM (#432167)
Many times, and I can't for the life of me understand why anyone would struggle at it.

IKEA provides flat-packed products. You never buy a wardrobe at IKEA and then turn it into a couch instead. It will always be a wardrobe, and nothing else.

On the other hand, if you buy a set of tools and environment (aka framework) to build furniture, you can use it to build whatever furniture you want/can.

Re:Why I Hate Frameworks by nailer on Tuesday January 13, 2009 @11:05AM (#432161)
Things from IKEA are not end products. However all the cutting, planing, and much of the other work has already been done, in the same way that the method of talking to the database and the webserver have been done in the framework.
Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @11:07AM (#432164)
Things from IKEA are flat-packed end-products.
Re:Why I Hate Frameworks by nailer on Tuesday January 13, 2009 @02:25PM (#432536)
End products are finished. If something requires assembly, it is not an end product.
Re:Why I Hate Frameworks by alex_c on Tuesday January 13, 2009 @03:51PM (#432674)
LEGO is an end product.
Re:Why I Hate Frameworks by nailer on Wednesday January 14, 2009 @03:24AM (#433396)
Yes, but that's because Lego is sold on the experience of building. IKEA products, like Frameworks, are sold on the purpose of having something finished and useful at once you've put in a little work.
Re:Why I Hate Frameworks by axod on Tuesday January 13, 2009 @10:50AM (#432144)
I think the issue is, a spice rack from IKEA may work, but it's not going to look great, or last long.

Any flat pack spice rack, will be shoddy quality, and probably break.

You don't get good furniture by mass producing it like that. Same with software.

What if I want a custom spice rack, with some secret compartment, in solid oak.

Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @12:32PM (#432302)
The idea that using well tested, widely spread open source software is somehow less reliable than writing your own is the kind of baseless FUD I wouldn't expect from you, axod.

Next, you'll be suggesting that people write their own web server instead of using Apache? Or perhaps they can trust other people's code so long as they pay for it, so you'll send them towards IIS?

Come on, now.

Re:Why I Hate Frameworks by axod on Tuesday January 13, 2009 @12:45PM (#432330)
"Next, you'll be suggesting that people write their own web server instead of using Apache?"

If the webserver is a key component in your success, then definitely. Write a webserver. It was for me, which is why I wrote my own (After I found others lacking).

If it really matters, and the existing stuff isn't good enough for your use-case, write it yourself.

Re:Why I Hate Frameworks by blasdel on Tuesday January 13, 2009 @07:51PM (#432980)
That's a bad example to bring up, considering how Apache httpd is such a massive pile of shit.
Re:Why I Hate Frameworks by vesan on Tuesday January 13, 2009 @05:45AM (#431895)
There must be hole in the spring mechanism testing procedure
Re:Why I Hate Frameworks by thomasmallen on Tuesday January 13, 2009 @10:09AM (#432088)
If Rails were a toolbox, all of its tools would break under duress. Regarding Ruby:

"And furthermore, for me, programming languages and their runtimes are tools. I think they are for a lot of us. You wouldn’t continue to use a hammer whose head keeps flying off when you take a swift backswing, would you?"

Good read: http://cbcg.net/2007/04/22/python-up-ruby-down-if-that-runti...

Re:Why I Hate Frameworks by sofal on Tuesday January 13, 2009 @11:51AM (#432237)
He also goes on to say:

I am discounting Rails here: I think Rails is great for what it is and I’ve had nothing but good experiences with it precisely because it is so “opinionated”. Its a very productive environment and manages to successfully avoid the runtime problems that I’ve personally hit in the past.

So... are you trying to make a point about Ruby or about Rails? Dare I give out the clichéd "Rails != Ruby" response here?

Re:Why I Hate Frameworks by thomasmallen on Tuesday January 13, 2009 @12:22PM (#432287)
No, that mistake typically is a result of somebody faulting Ruby for Rails' problems. As the parent to my comment said,

Rails: Here's a kick-ass hammer, a kick-ass saw, a kick-ass measure tape, etc...

My point is that those kick-ass tools may be made of balsa. The editorial that I linked immediately came to mind because it too used tools as an analogy.

Re:Why I Hate Frameworks by dasil003 on Tuesday January 13, 2009 @03:52PM (#432683)
I'm starting to see why a lot of people say all software development analogies suck. What does it mean to say its tools would break under duress, or they're made of balsa wood? You can interpret those analogies any way you want.

The bottom line is the Ruby runtime has some serious flaws, but they are not so pervasive as to make everything in Ruby total crap. There's a good chance you could write an application in half the time it would take in Java and experience no problems ever. It's also possible you'll hit a memory leak and have to face an ugly workaround, partial rewrite or even scrap the whole Ruby project. Finally, you may have a memory leak and find an easy workaround, and then one day the problem is magically solved by Rubinius.

Those are concrete scenarios to consider. I don't see how a physical materials analogy has any value in analyzing your options. The pros and cons of languages don't align AT ALL with physical properties. Thoughts like, "Java is more like cast iron, and Python is more like hardwood" is just one-dimensional mental masturbation. In the end the reason to choose a language like Java because you are willing to tolerate more overhead for less risk.

Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @12:33PM (#432305)
Re:Why I Hate Frameworks by thomasmallen on Tuesday January 13, 2009 @12:40PM (#432317)
About?
Re:Why I Hate Frameworks by swombat on Tuesday January 13, 2009 @12:43PM (#432323)
Suggesting that rails is a kick-ass tool made of balsa.
Re:Why I Hate Frameworks by thomasmallen on Tuesday January 13, 2009 @12:47PM (#432334)
Not "is a," but rather, "may be." This is because I never personally experienced the problems noted in the link I posted, but they are coming from what appears to be a credible source. You mistook a suggestion of problems for a personal conviction.
Re:Why I Hate Frameworks by Nwallins on Tuesday January 13, 2009 @03:12PM (#432607)
> If Rails were a toolbox, all of its tools would break under duress.

That sure sounds like personal conviction to me.