You ain't gonna need to include that library. Go back. Take it out. Do without it. Think harder.
Could you define how Harder is harder? When you offer some advice, I wonder which type of people you were talking to.
I'm talking aloud to myself, mostly. If I see something frustrating or do something stupid, I formulate a rule, to remind myself of that moment. I also include too many libraries because the libraries include libraries include libraries. But when you look to see what the bottom libraries are doing, it's hardly anything.
I like writing (or typing in this case) to remind myself things. Not everything is meant to get a reaction and thus I get little engagement. A journal would be not as fun as exposing my crazy thoughts in to the void
i personally hate it when i see that my imports repeat themselves, like literally 3 different versions of one library, i'm obsessive about that... the shorter my go.mod the happier i am
Yeah. Just had a LaTeX document that used three different libraries to do the same thing (color in a cell in a table). I pointed it out to the others and they were like, Who cares?
who cares? such privilege to talk about resource waste like this
They had repeats or even conflicts a few times and refused to correct them. And deprecated functions that actually did nothing because the compiler ignored them. This is how most modern code is. Bizarre.
Took forever to build and they were like LaTeX is just slow. Bros, the header is longer than the program and most of it is junk.
👏 seriously, not enough programmers even think about this stuff i had to contend with resource burning software most of my life and even now i have 64gb of DDR4 3200mhz memory and some shit just turns my CPU into a space heater i watch my young colleague with his 7th gen mobile intel processor waiting for rust shit to build and even Go stuff to build and it's like *fingers tapping*... meanwhile, my favourite computer at the age of 15, the Amiga, was able to do tear-free 2d graphics at 50hz, and still these ninnies write code that layers abstraction upon abstraction and they don't even notice because they buy the latest... i bet they all have 256gb memory and dual raid NVMes now and EPYC processors or something i mean, seriously guys, performance, and resource use matters what's even more hilarious is seeing this kind of compilation and runtime resource squandering with "green" blockchain shit, now that is the utter height of hypocrisy and stupidity
Agree, this is awful, code hardly ever gets simpler. Same for legislation. A rewrite is an awful amount of work/pain, hence rare. And cleanly simplifying something complicated is much more work than just throwing an ugly patch on top, so technical debt accumulation is almost inevitable without a strong quality culture
willing rewriter at your service: 🫡 almost finished a full rewrite of nostr event and filter codecs and associated functions... i scored a full 5-10x boost and my JSON codec is now officially almost as fast as a binary codec
Yeah, refactoring and rewriting is amazing. Now go and look at your architecture, again. Bet you could streamline it.
Yeah I mean sometimes it's nice to not repeat yourself. In the C world it can be such a plain to include a new library, most people just rewrite everything themselves. Take Damus for example: it includes it's own C implementation of sha25...
Will writes in C? 👀 I don't have an iPhone, so I can't use Damus (yet).
Yeah he's kind of a grey-beard C-freak. I'm not sure until Damus he even used git, he did mailing lists...
Interesting.
double interesting how such hard core low level guys and some even antiques are in this wait, i might be approaching vintage tho
Although, this is just our scene. Most devs on here are just hackers, I think. They grew up anon on GitHub, and never had to personally face scrutiny, so they don't actually care if their stuff works because they just ghost, if too many people complain.