HACKER Q&A
📣 ern

Why do developers still write in-house frameworks?


I've taken over maintenance of a collection of apps written by a well-regarded team. It mostly works well, but I've encountered a few really painful, confusing and constraining custom frameworks written by an enthusiastic solo maintenance developer (in fact, if I see something weird on one of the projects, the source control history will invariably show it was done by this particular developer).

Looking back on my career this isn't an isolated incident: many of my most frustrating moments in line-of-business development have come when I've had to fight against an in-house framework developed by well-meaning developers who were out of their depth, but looking for a challenge. I myself produced a couple early in my career, and I cringe at the complexity I subjected the hapless developers who came after me to.

I'm sure there are successful in-house frameworks out there, but IMO the world would be better off without the vast majority.

None of this is particularly novel, but I have to wonder why every cohort of new developers have to learn these lessons anew? Should "don't write a framework" become an aphorism, alongside others like "avoid premature optimization"?


  👤 debarshri Accepted Answer ✓
It depends upon the organisation's character. It comes down to whether the org has not invented here syndrome or not. Conforming new developers, trying to portray an org is tech driven are few egs. In my opinion is it a bad idea to do it as you end up building accidental complexity in an organisation. A org should focus on creating business value and building frameworks and tools from get-go is an anti-pattern in general.