11

Contex: Working on a c++ frankenstein code (mixture of legacy and new stuff whith things depending on the client using it)

User Story: Migration from oracle to SQLite for half of the DB data

Summoner: One client wants to keep using legacy for now, therefore we need an strategy chooser templated singleton...

Satan 666 = Singletons + Static methods + Different compilation units

Result: 3/4 of the files of the full backend being modified for the migration.

Conclusion: When will be loaded on production company will probably lose many clients due to unspected bugs everywhere.

Insert potato here

Comments
  • 0
    Ouch, that's what maintaining legacy code without the appropriate abstractions sounds like. 75% of the system affected.
  • 0
    Search for "principles of clean-architecture" from uncle bob on YouTube
Add Comment