News for hackers. Stuff that matters.
Re:Curating my corner of the Internet with a freehand web ed... by robinsonb5 on Saturday June 22, 2024 @02:04PM (#40760879)
Very much this. Please stop building Jenga towers.

It's always alarming to encounter build instructions that start with "you need this specific version of this particular compiler for this particular obscure language..."

Bonus points if your build process fetches modules from online endpoints that may or may not be there in five years' time.

[And yes, I'm as guilty as anyone of creating over-engineered but ultimately fragile scripts to automate a build. My favourite is a bash script which parses a text file for filenames, matches against the file extension and processes them accordingly. If you edit the text file with a Windows-style editor so it acquires CR/LF line endings, the bash script can no longer parse it. Fun times.]

Re:Curating my corner of the Internet with a freehand web ed... by shrimp_emoji on Saturday June 22, 2024 @02:09PM (#40760926)
Are you saying dependencies are bad?

Are you saying all new languages are bad because they encourage you to pull in half the program via some language package manager, injecting problems from simple networking availability to supply chain attacks into what was otherwise a simple program?

Are you saying we should only code everything in C and C++ and Bash with as few dependencies as possible?

https://youtu.be/fDq_8y_drE8&t=85

Re:Curating my corner of the Internet with a freehand web ed... by lukan on Saturday June 22, 2024 @02:34PM (#40761107)
I think he or she is just saying, try not to build overly complicated things. To which I very much agree.
Re:Curating my corner of the Internet with a freehand web ed... by robinsonb5 on Sunday June 30, 2024 @03:31AM (#40835669)
Overly complicated things, but also things that are so fragile that the slightest disturbance (such as a minor version change) in the foundations will make them collapse.
Re:Curating my corner of the Internet with a freehand web ed... by musicale on Monday June 24, 2024 @12:08AM (#40772594)
> Are you saying we should only code everything in C and C++ and Bash with as few dependencies as possible?

Every so often I encounter a package with very few (or no external) dependencies that just works, and it's wonderful.

There is something to be said for going with a mature, stable, non-bleeding-edge platform and minimizing dependencies.

On the other hand, classic C/C++ code tends to facilitate memory errors, but memory-safe languages and compilers all seem to come with various down sides.

Re:Curating my corner of the Internet with a freehand web ed... by robinsonb5 on Sunday June 30, 2024 @03:21AM (#40835642)
Sorry for the late reply: what I'm saying is that build-process fragility is bad. Ill-considered or slapdash dependencies can be part of that, as can runaway complexity. So can the choice of language, but so can the hackish bash-script example I confessed to from my own project.