• 0 Posts
  • 26 Comments
Joined 4 months ago
cake
Cake day: July 22nd, 2024

help-circle
  • Because you don’t know what you’ll need that wrapper beforehand, that’s my entire point.

    Unless you’re only doing trivial changes, the chances are very high that you won’t be able to design the class structure. Or, you end up essentially writing the code to be able to write the tests, which kind of defeats the purpose.




  • Tests first is only good in theory.

    Unit tests typically test rather fine grained, but coming up with the structure of the grain is 80% of the work. Often enough you end up with code that’s structured differently than initially thought, because it turns out that this one class needs to be wrapped, and this annotation doesn’t play nice with the other one when used on the same class, etc etc.




  • I find it extremely frustrating how weirdly wrong-density much documentation is. It’s extremely detailed in all the wrong places and often lacks examples for common use cases.

    I learned a while ago that news articles are supposed to have increasing levels of detail from top to bottom. Each paragraph adds a bit more context, but the general picture should be contained in the first one. Hardly any documentation follows that pattern.






  • Oh come on, are you really that boneheaded not to understand that you’re not the norm?

    I literally had not a single power surge in my entire life. The only power outages I had were for a few minutes maybe three times in the last 15 years.

    The larping refers to you. Either you are truly an outlier who actually runs a small DC, or you just like the feeling you can get pretending to do so.

    Your attitude is roughly the “only gold plated cables made from solid silver” equivalent in audiophiles. Technically maybe correct, practically a self-important waste of money.


  • But not for us.

    That’s what I meant by larping. The vast vast majority of us here would probably not even notice if their systems went down for an hour. Yes, battery backup has its purpose. In a datacenter.

    I mean, what’s on the line here in the worst case? 15min without jellyfin and home assistant? Does that warrant taking risks with old batteries or investing in new ones?

    That equation might change if you’re in a place with truly unreliable electricity, but I guess those places have solutions in place already.







  • And there are some truly magic tools.

    XSDs are far from perfect, but waaay more powerful than json schema.

    XSLT has its problems, but completely transforming a document to a completely different structure with just a bit of text is awesome. I had to rewrite a relatively simple XSLT in Java and it was something like 10 times more lines.


  • And DBAs. I’m currently working on a project where I said from the very start, I can set up this DB in k8s and I can get it to work decently, but I have neither the knowledge nor the time to get it right. Please give me someone who knows how this works.

    No, don’t worry, it’ll be fine, we don’t need that, this kuverneles thing I keep hearing about handles that!!!

    Six months of hard contact with the enemy on production later:

    Well, we’re currently looking for someone who actually knows how DBs work, because we have one of those issues that would cost a proper DBA 5min and me 5 months.