How to deal with internal company frameworks and SW factories?

前端 未结 3 1540
半阙折子戏
半阙折子戏 2020-12-31 12:27

Based on my own experience and on experience of my friends I see that many companies have some strange ideas to develop their own frameworks and SW factories (builds skeleto

相关标签:
3条回答
  • 2020-12-31 12:35

    In my experience the most common cause of excess frameworks is... bored developers! Uninspired developers find that developing frameworks to solve their problems is much more fun than actually solving those problems - the end result is frameworks that suffer from all of the above (because of course the developer only did the fun bits), and possibly don't even solve the actual problem (because the goal was to have fun, not to solve the problem).

    The solution is tricky - its difficult to know what it is that motivates developers as everyone is motivated by different things, however motivated developers who are busy doing things that they enjoy don't see to suffer from this ailment!

    That said, well thought out frameworks when properly used are definitely a good thing - However if its only going to be used internally then it might be better to instead think of it as an extension to re factoring and code re-use rather than as a framework.

    A classic sign that someone is suffering from bored developer framework syndrome is when a framework is being developed to solve the general case when there isn't yet a solution for the specific case:

    • How can you know how to solve the general case until you have solved at least one specific case?
    • Until you've had to solve the general case a few times you are only guessing that a framework is even needed.

    The second case of course leads to the worst sort of framework - the mammoth generic framework that is only ever used once, to solve a problem which is far simpler than the framework itself.

    Instead consider these sorts of frameworks more as an exercise in "extensive refactoring" - if the framework is produced as a way of grouping and tidying common code on an as-needed basis then the framework will grow in size and complexity dynamically - having already solved the problem before you start producing frameworks is nice too as it means you are already experts in whatever it is the framework needs to do.

    Finally, try to keep developers from being bored (they get up to all sorts of mischief otherwise!)

    0 讨论(0)
  • 2020-12-31 12:44

    I would add some other reasons these things evolve, and I have seen this in more than one place: - Developer lock-in. Once you have the devs coding in a non-transferable skill set, it's harder for them to leave. - Author lock-in. Once you have several apps under maintenance dependent on the framework, you have the organisation dependent on the administrative group. - Political control. The centralisation allows the framework to become a channel for political control.

    0 讨论(0)
  • 2020-12-31 12:46

    Generalization is bad, but here is what I've noticed, especially in large enterprise projects:

    • Such behavior is generally driven by one of few more software engineers (they usually name themselve software architect) that fall into the descriptions you wrote in your question. Everybody needs to be proud of something to have the courage to wake up in the morning. I will add that they are usually CV driven for that reason and try to apply the latest design patterns without thinking about business implications and ROI. The key is NOT to hire that kind of person (or try to coach him/her to understand business consequences of his/her choices). Trying to make them proud of working for the company instead of working on their framework may help too.

    • Missed deadlines, bugs, high turn-over tend to be solved by applying fancy methodologies (usually badly implemented) like scrum or hired highly priced consultants that will make things worse,... instead of removing (or coaching) the persons that shouldn't have been hired at the first place.

    • Removing the person in question is in most case a bad thing since he OWN the thing. So teach him/her to understand consequences of his/her choices is probably the most appropriate way to solve the problem. But to do that, you need a good manager.

    So my only advice would be:

    Hire better managers that understand very well both business and software development. They won't hire that kind of person or will try to teach them how to consider business in addition of pure software development. They will also understands that the most powerful motivation fuel for employees is making them proud of working for that company.

    0 讨论(0)
提交回复
热议问题