by sacnoradhq · 3y ago · 0 comments
- Multiple inheritance
- Over-abstraction
- Excessive identifier prefixing and suffixing
- Use of friend
- Use of bit fields instead of bools
- Inconsistent mixture of custom and built-in int types
- Direct storage of pointers instead of reference-counted containers
- Custom (and likely broken) _smart_ptr
- Cancerous coding style that adds too many lines
- Functions with 7+ arguments
- Lots and lots of duplicated code
- Inadequate use of const
- Inconsistent coding styles
- class name and base classes at the same indentation level
- Redundant prefixing of directories ~~and namespaces~~ with the name of the project
Edit: My bad, they don't use namespacing at all. It's a flat namespace. At least they don't using namespace std.
There is a reason perfectionist devs do not run big projects. They focus on minutiae rather than the big picture.
Even in my own experiences, one of my most successful projects (eventually acquired by Amazon) was a quickly written hacked together project that solved a big issue well. Over time it became better engineered but it taught me successful projects are about market fit, not code quality, especially super minor things like antipatterns.
Naah, it must simply be those 'perfection vs practicality' dichotomy again.
...Not to mention that your point is the definition of survivor ship bias. Maybe the devs actually were super mad at themselves how the codebase looked cause it slowed down their development. Maybe they initially had 3 more times the ammount of anti-patterns, but they reduced them. Or maybe that's how their roll, but the fact that this code shipped is almost insignificant when it comes to judging its quality. We could spin infinite ammount of examples where bad code works, where good code fails, where bad code fails and were good code works. How about we actually talk about arguments instead, though?
Overuse of reference counting is an anti-pattern and a performance killer.
Actually not just UE, but almost everything you mentioned was in every single engine i worked on (to be clear these were all engines that started long before i worked on them and designed by completely different people). With a single exception they were all used to release well received AAA games.
None of that stuff actually matter at all in practice.
I always have a feeling this type of comment must be necessarily written by someone who hasn't shipped anything of substance in the industry. It's trivial to point out irrelevant minutiae like this as opposed to having an in-depth discussion about the merits of the terrain rendering system or, you know, literally any of the hard problems the game is solving and that actually contribute to making it a technical success.
Only pontificating armchair field marshals giving their take of 'anti-patterns' in game engines built decades ago.
That game made millions. Went on to release multiple sequels after the first and still made millions.
Is your game engine making millions?