Why i hate frameworks

Original author: BenjiSmith
  • Transfer
I'm going to make a Java web application (yes, it will be Java, for some reason, which I don’t want to voice right now). In the process, I evaluate a bunch of J2EE portlet-enabled JSR-compliant MVC role-based CMS web service application container frameworks.

After a lot of time spent reading the documentation, I'm ready to gouge out my eyes.

Let's imagine that I decided to make a spice cabinet.

I have already made small wood crafts and I think I know what I need: a few tablets and some basic tools: tape measure, saw, level and hammer.

If I were building a whole house, and not just a spice cabinet, I would still need a tape measure, a saw, a level and a hammer (not counting the rest).

So, I go to the tool store and ask the seller where I can find a hammer.

- Hammer? - he asked. - Nobody has been buying hammers for a long time. This is old fashioned.

I was very surprised and asked why.

- Well, the problem with hammers is that there are a lot of them. Sledge hammers, joiner's hammers, with a round brisk, etc. What if you buy one type of hammer, and then you realize that you need another? You will have to buy a separate hammer for the next task. As it turned out, most people want to have one hammer that can cope with all types of tasks that you may encounter.

- Hmmmmm. Well, that sounds reasonable. Can you show me such a Universal Hammer?

- Not. We do not sell them anymore. They are out of date.

- Seriously? From your words, I realized that the Universal Hammer is the technology of the future.

- As it turned out, if you make only one type of hammer that can perform the same tasks as all types of hammers, then it will not be very good for each of them. Hammering nails with a sledgehammer is not very effective. And if you want to kill your ex-girlfriend, then nothing can replace a hammer with a round brisk.

- Right. But if nobody else buys Universal Hammers and if you no longer sell all the old-fashioned types of hammers, then what kind of hammers do you sell?

“Actually, we don't sell any hammers.”

- But ...

- Our studies have shown that people do not need a Universal Hammer at all. It is always better to use the right type of hammer for the job. Therefore, we started selling hammer factories capable of creating any hammer that you need. All you need is to equip the factory with workers, start the mechanism, buy raw materials, pay expenses and - BAC - you have exactly the hammer you need.

“But somehow I don’t want to buy a hammer factory ...

” “That's good. Because we no longer sell them.

“But you just said ...”

- We found that most people do not need a whole factory. Some people, for example, will never need a hammer with a round striker. (Maybe they don’t have ex-girls. Or they killed them with an ice ax.) Therefore, it makes no sense to anyone to buy a hammer factory that can produce any type of hammer.

“Yes, it seems.”

“Instead, we started selling drawings of hammer factories, allowing our customers to build their own hammer factories, specially designed to produce only the types of hammers they need.

- Let me guess. You do not sell them anymore.

- Not. Of course not. As it turned out, people do not want to build a whole factory, just in order to produce a pair of hammers. Leave the construction to professionals, that's what I always say.

“And here I agree with you.”

- Yeah. Therefore, we stopped selling these blueprints and started selling hammer factories. Each factory of hammer factories is built for you by experts in their field, and you do not need to worry about the details of the construction of the factory. You get all the benefits of owning your own hammer factory to produce hammers for your needs.

- Well, it’s kind of, not really ...

- I know what you will say! We no longer sell them. For some reason, quite a few people bought hammer factories, so we came up with a new solution to the problem.

- Yeah.

- When we took a step back and looked globally at the tool infrastructure, we found that people are disappointed, because they need to manage a hammer factory and a hammer factory. This is quite burdensome if you still need to manage a factory of roulette factories, a factory of saw factories, a factory of level factories, not to mention the production of lumber. Looking at the situation, we realized that it is too difficult for those who just want to make a spice cabinet.

- Yes. That's for sure.

- Therefore, this week we will present a single factory of tool factory factories so that you can produce each factory of tool factories with the help of one united factory. A factory of factory factories will produce only those factories of tool factories that you need, and each of these factory factories will produce a factory based on your requirements for the tool. The final set of tools resulting from this process will be ideal for your specific project. You will have exactly the hammer that you need, and a roulette suitable just for this task, and all this at the touch of a button (of course you will have to work a little with the configuration to make it all work just the way you need).

“So you have no hammers?” Not at all?

- Not. If you really want a high-quality, industrial-designed spice cabinet, you need something more advanced than a regular hammer from the store.

- And what, everyone is doing it now? Does everyone use a single factory of tool factories, whenever they need a hammer?

- Yes.

“Okay ... I seem to understand what I need to do.” If this is now being done in this way, it will probably be better for me to learn how to do it.

- Very well!

- This thing comes with documentation, right?

Also popular now: