So I was working on my daily job yesterday.
I decided our PDF Generation code needs refactoring (a single Laravel service class)
Half way through the refactoring I realized we are using a deprecated library so I decided to upgrade the whole system to start using s more modern pdf Generation system
Half an hour of coding later I realized it's probably better, before I do all the work, pdf Generation should probably be handled by a microservice
You can't do all that without the existing pdf templates. They need to move to the Microservice too.
I might as well refactor these to make things easier
PDF templates with blade files is so tedious to work with. I can't test what I am doing. We need a preview function but you can't have that in an API. Let's move this to the CMS
I might as develop a PDF management tool in CMS with preview function
I need seeders, factories, migrations
Templates need to be translated into 4 languages but user might not know what language keys exist
I need a template editor with variables and language keys auto fill.
You can't be a good programmer and claim you don't have ADHD...
Top comments (1)
I completely agree. The problem is other people don't realize how much better this approach is in building stuff, it's like the best way for an overthinker to contribute to society. And yet they try to suppress it and tell you you're slow, not being productive, "just do the thing".