• 0 Posts
  • 99 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle



  • As someone who has done a lot of distro hopping in the past, I’ve found that going for a stable release that is widely used as a daily driver is superior for gaming than “gaming specific” linux distros, largely on the basis that the gaming distros have routinely had buggy UIs, driver issues, and a variety of unexpected and undesired behavioral problems tied to the array of “gaming adjacent” software installed, most of which you can install yourself with little to no effort and most of which you probably don’t want or need in the first place.






  • I’ve heard nothing but good things about HTMX

    I’ve only ever heard anything “bad” about HTMX and it was here on Lemmy, actually. I ran into someone who was absolutely certain that HTMX was unsafe by design because it leveraged HTML over the wire and was therefore susceptible to HTML injection attacks, specifically by injecting malicious scripts that could be ran from domains you didn’t control. I tried explaining that proper utilization of access-control headers innately prevented this because they worked on the browser level and couldn’t be intercepted or interfered with by HTML injection by design, but he kept insisting it was unsafe while refusing to elaborate. He was very wrong, of course, but also very confident.






  • I’ve heard similar from the worst first year CS students you could ever meet. People talk out their ass without the experience to back up their observations constantly. The indentation thing is a reasonable heuristic that states you are adding too much complexity at specific points in your code that suggests you should isolate core pieces of logic into discrete functions. And while that’s broadly reasonable, this often has the downside of you producing code that has a lot of very small, very specific functions that are only ever invoked by other very small, very specific functions. It doesn’t make your code easier to read or understand and it arguably leads to scenarios in which your code becomes very disorganized and needlessly opaque purely because you didn’t want additional indentation in order to meet some kind of arbitrary formatting guideline you set for yourself. This is something that happens in any language but some languages are more susceptible to it than others. PEP8’s line length limit is treated like biblical edict by your more insufferable python developers.



  • Yeah, but it’s still a Ship of Theseus problem. If you have a ship and replace every single board or plank with a different one, piece by piece, is it still the same ship or a completely different one, albeit an exact replica of the original. It’s important because of philosophical ideas around the existence of the soul and authenticity of the individual and a bunch of other thought-experimenty stuff.





  • If there’s one thing I learned working in IT it’s that devs actively half-ass their error messages, routinely misspell critical words you’re gonna grep for in logs, and never even consider having someone in Product read over customer-facing error messages like this. All they see is a Jira ticket that says “include the following verbiage in the VPN rejection message” that was typed up by a mostly plastered PM one afternoon after they downed 3 margaritas at “lunch” at the taqueria next to their office. And then they just copy and paste that shit into whatever bullshit HTML template took the least effort to find.