• 1 Post
  • 57 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle
  • Isn’t it obvious? More code to skim, scroll over and maintain if something changes. If you add a struct field, your manual EQ implementation still compiles and seems to work but is wrong and will lead to bugs. Yes, solving this for 99,999% of cases with an attribute is just far superior and does make a difference (while keeping it easy to manually implement it if needed). Hash and Ord and some other traits can be implemented in a similar fashion btw…





  • I’d say at 1000 lines it usually makes sense to extract some parts into other files. But sure, I guess most obscurities have positive aspects. On the other hand, nothing is stopping you from writing a separate file with only function signatures next to your python scripts. It’s just not required, because why would it ;)















  • 20% is a LOT. That’s probably because of the random shit that nobody ever asked for but windows is always doing in the background anyway. Building a search index, windows update (which consumes an insane amount of CPU for a completely unreasonable amount of time sometimes), other individual updater services (because there can’t be one program that updates everything because every vendor does their own proprietary bullshit to handle updates), compressing and sending all you personal data to microsoft and of course the pre-installed McAffee (on trial license) that works hard to make your system less secure (that HP probably installed for you because apperently you haven’t paid enough money for the computer, so you must pay with your patience and your privacy as well). Depending on the benchmark, the pathetic legacy file system windows uses might also play a role.