The letter S in a light blue, stylized speech bubble followed by SpeakBits
SpeakBitsThe letter S in a light blue, stylized speech bubble followed by SpeakBits
Trending
Top
New
Controversial
Search
Groups

Enjoying SpeakBits?

Support the development of it by donating to Patreon or Ko-Fi.
About
Rules
Terms
Privacy
EULA
Cookies
Blog
Have feedback? We'd love to hear it!

On over-engineering; finding the right balance

16elt.com
submitted
10 mos ago
byboredgamertoprogramming

Summary

Specific-purpose code can quickly become messy. But overly general code can add unnecessary complexity. This post, obviously opinionated, argues for a middle ground.

Instead of being too specific or too generic, you build something flexible, simple, and clear. This approach is great because: You’re not adding extra methods for every possible removal condition. Instead, use one method (RemoveItems) Pass a condition that defines what to remove.

Vehicle Rental System – Predicting the Future Wrong with Bad Abstractions. It’s clear, clear, and doesn’t add complexity with external filters or rules.

In the world of business, it is not unusual to see a company or company that has a large number of employees. The company that makes the most money from its employees is often the one that has the most employees.

Find the balance. Create flexible, general-purpose code. It should allow for future changes but avoid over-engineering. Focus on the problem at hand. When it’s time to extend the system, your code will be ready for it.

11

7 Comments

2
justadev
10 mos ago
This is where determining requirements is important and to use them when designing a part of your code. You should be able to find just how generic you need to be that way.
2
boredgamerOP
10 mos ago
It's one of the tougher parts of app development that most devs don't care to figure out
2
justadev
10 mos ago
I think all good devs learn it the hard way
2
kaiserseahorse
10 mos ago
At the end of the day, pre-optimization is evil and dangerous
2
boredgamerOP
10 mos ago
Almost like the usual advice is based on reason
2
kaiserseahorse
9 mos ago
almost
0
deleted
a mo ago
This comment has been removed.