I have described my tasks then added as first of my subtasks: “check for existing solutions first!!!”, and it’s for sure the best what I wrote and what reduced about 5 more subtasks to use one tool.
The problem was to write an extension which will take some webpage data and send it to my tool for further processing. I was sure that someone already solved it, but didn’t know what it can be. OpenAI suggested few Firefox extensions, one of them was Tampermonkey which exactly did what I wanted – copy page data and some meta and send to my backend.
It’s obvious for me to search for programming libraries, but recently I learned to use whole solutions first – ComfyUI, a very good software, but before of it I used pure Python! Now instead of using ComfyUI, I’m using DrawThings which is more than enough for my purposes. KISS in programming, become for me KISS in system architecture.
Another example: in CloudFront I had to support 404 errors with user’s browser language for static html files. I knew that I can use Lambda@Edge there, and even started with it, but the amount of things and which need to be done, turned me back to CloudFront functions which implementation was easier a lot and significantly faster.
So conclusion of today: always and in every area search for existing solution, even if you are able to implement it by yourself, do it your own solution only if you find something you cannot adapt or is not good enough for your needs.