News for hackers. Stuff that matters.
Re:My 20 Year Career Is Technical Debt or Deprecated by Tade0 on Tuesday May 16, 2023 @08:09AM (#35960689)
I started doing the same thing out of impatience.

Recent example: I have a side project with Typescript on the backend and frontend which also uses an Audio Worklet, so it loads a JS file at runtime to be run in a separate process, isolated from anything else.

I also have a class which I need to use in all three mentioned pieces.

Three years ago I would spend hours trying to figure out how to make this work with the build system so as to not have duplicated code and maybe eventually arrive at a mostly working solution before the e.g. frontend framework maintainers update their build system version which may or may not break something.

This time I just copied the damn file everywhere - the Audio Worklet got the compiled JS output pasted at the start. It's a class, it works and I have maybe one idea what changes I could make there in the future at which point I'm just going to copy everything again.

There are no comments on this comment yet.