otl

joined 2 years ago
[–] otl@lemmy.srcbeat.com 0 points 2 years ago

Let’s say a function, about 20 lines. Something too small to warrant an external dependency but tricky enough that you don’t want to keep rewriting it.

I have things like a function to read through a file of newline delimited text of key-value pairs separated by whitespace. It skips comments (lines beginning with “#”), and returns the pairs. I’m happy to do a little copying instead of having a little dependency.

[–] otl@lemmy.srcbeat.com 3 points 2 years ago

Alpine Linux might be good, too. It’s different. But that makes it a great exercise. See https://drewdevault.com/2021/05/06/Praise-for-Alpine-Linux.html

[–] otl@lemmy.srcbeat.com 2 points 2 years ago

Same. And for me it’s not just the security enhancements. You can find race conditions, poor assumptions about the underlying system, poor documentation… Software portability is more than just getting software to run on loads of systems (if that makes sense!)

[–] otl@lemmy.srcbeat.com 4 points 2 years ago (2 children)

I mean, I get it. But... damn.. can you imagine the relative computing power required to read a text file versus asking a LLM to generate that same text?

view more: ‹ prev next ›