5 ms·
Architecture Antipatterns
- salmonfillet 3y agoI am very susceptible to the ‘Misapplied Genericity’ anti-pattern. When given a problem, my default approach seems to be building a solution which ends up looking more like a framework that allows you then to build the solution in it. For example - if I were creating a metrics dashboard, I would end up building a dashboard builder which I could then create my metrics dashboard in, rather than just ‘hardcoding’ the dashboard I need right now. Something I need to work on!
- luxurytent 3y agoYup. Early in my career I was susceptible to this as well. Partly immaturity and partly business pressure (we need this thing now, and when the business adapts, we don't want to spend more engineering resources on it! make it work for the future!) turns out that's nearly impossible, in most cases (businesses change) I definitely take a more iterative approach now. There's a short spike window to architect the rough plan, get buy in from other engineers, and as long as we feel like we're directionally going the right way and we're not digging ourselves into a corner, we ship it. Sometimes that has resulted in redoing things (we made a mistake in our thinking), but those redos are minimal compared to the weeks/months we may have spent over-architecting something
- samsquire 3y agoI feel that the framework for integration is the programming language itself, it's Turing complete. Getting things to glue together in the right way is a challenge though which is probably why you want it to be data driven. But inevitably you need some flexibility or logic in your data processing so you end up building an expression engine and we get into "creating a inner system/platform effect". https://en.wikipedia.org/wiki/Inner-platform_effect https://en.wikipedia.org/wiki/Inner-platform_effect
- tomashubelbauer 3y agoI do that as well, but I have eventually managed to train myself to do the hard-coded version first, find out I need to make it more generic anyway and thus validate the need for the genericity, but also at that point I have a much better understanding what exactly benefits from being flexible and where I can take some shortcuts compared to what in my mind is the perfect design. That way I end up building something in between which usually works quite well and I am pleased with.
- thom 3y agoYeah, it's often better to _extract_ abstractions rather than to try and predict them correctly on a blank screen.
- sitkack 3y agoThis is a great technique. But one also has to be cognizant of not over factoring the resulting program once it is “done”.
- tanseydavid 3y agoThe adage "Use before Re-Use" has been very helpful to me in dealing with this issue.
- _the_inflator 3y agoI cannot give a yes or no answer in this case. "Generic" is too generic a term, to use it in this argument. It depends on the whole project and circumstances. Usually I go with specifics and later refactor. The reason is simple: too often did I experience the case, that in order to change something in view, we had to alter the "generic layer". On the other hand, how can you build something generic, when you have not at least 2-3 use cases? "But we will never refactor" - I am one of the very few, who do just that. I worked my way up from dev to senior manager in order to give people the freedom I always missed.
- Kinrany 3y agoAlmost all of the listed "antipatterns" are things that are bad by definition. "Don't do the thing too much or too little, do the right amount" is not a useful recommendation.
- skybrian 3y agoYou might think of it like a checklist of possible problems, rather than a list of rules to follow blindly. It's true that it won't tell you which problems you have, but they may be useful hints, things to consider. Knowing what problems you actually have usually requires human judgement after seeing the situation.
- samsquire 3y agoMy favourite system to work on is one that I understand. And everyone refactors to their own understanding and intuition. And my intuition or understanding might not be identical or as advanced or as simple or insightful as yours. (EDIT: Your understanding that things are SIMPLE might be more advanced than mine, so I don't really understand it as much as you do.) So we have taste in software. I would rather not maintain a system that was built on quicksand, where dependencies cannot be upgraded without breaking anything. One person's super elegant architecture is Not Understandable™ to someone else.
- danwee 3y ago> I would rather not maintain a system that was built on quicksand, where dependencies cannot be upgraded without breaking anything. To each their own. I prefer to maintain a bad system because: - I can make it better - If something doesn't work as expected it's because of the current state of the system, not because of my lack of ability On the other hand, I don't really like to maintain very good systems (crafted by very intelligent people) because: - There's little I can do to make them better (I'm a regular Joe) - If something breaks it's because of my ability as a programmer (all the shame on me) So, it's like playing in two different leagues (but the paycheck is rather more or less the same, so that's nice).
- jon-wood 3y agoThis is an interesting perspective which I'm inclined to disagree with. There's little pleasure to be found in having to deal with a system that broke because it was badly designed or implemented, although I guess it means you've got a reasonably secure job for the time being. Being able to gradually refactor it can be fun sometimes I guess, but I'd still rather not have to. Your second category is more interesting to me - you're interpreting a system is hard to understand and work on as being made by super intelligent people. I would interpret that as a system that was badly designed, unless you're doing some new and revolutionary thing (you're probably not). A system that has been designed in such a way that only someone with deep knowledge of the thought process can work on it has been designed badly. I know this because I have in the past designed many such systems. Coming back to them a few years later even I hated myself for it, so I'm deeply sympathetic to the people who had to work on them who weren't me. Thankfully in most cases I got to task a few people with ripping out the system and replacing it with something better.
- bionhoward 3y agoSpotted an extremely minor typo: hirarchic => hierarchical
- DerekL 3y agoAlso, they wrote “sufficiant”. I guess they meant sufficient.
- weatherlite 3y agomicro services
- SkeuomorphicBee 3y agoAnyone knows a similar aggregated source for the opposite, for the good patterns?
- deleted 3y ago[deleted]
- playing_colours 3y agoApart from the patterns that are obviously good or bad by definition, most of the patterns and architecture decisions have their pros and cons, and the focus is on understanding, discussing those tradeoffs, and going with tradeoffs that a team / company prefers to deal with. Monolith vs. microservices, synchronous vs. asynchronous communications, small events vs. fat events - the list can go on, there are no silver bullets or clearly right choices.
- mattacular 3y agoThis reads like barely chatGPT-quality output and also appears to be an SEO ploy from the domain name on down. One of the anti patterns is "making the system too complicated" Insightful!
- pleoxy 3y agoFirst example is not clear cut at all. The project sounds successful overall to me. Yes, they had to do more than they thought going in. That describes most engineering efforts. Does the author think that operating system API churn just won't affect native somehow? Or be improved when even more of your application surface area is in the native space?
- barrysteve 3y agoA list of 'do-not' works for tasks that bottom out in science and the laws of physics. Like woodworking or fusion physics. Thinking about coding lacks a connection to a scientific terminus point. Under the hood it's all binary and devs use a performance mindset. Making a list of prohibitions doesn't fit.