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

help-circle



  • 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.




  • I’m not. Universities aren’t places of open or free learning. They’re deeply invested in capitalism and benefit greatly from intellectual property laws. In fact, most universities function largely as state subsidized pipelines that take people without a viable, real world skill set and turn them into people who still don’t have a viable real world skill set, but who do have a piece of paper telling corporations that they’re able and willing to put up with complete bullshit, general mistreatment, and dull, grueling labor for years without incident. Which is good enough for your typical middle-class wage slave and whatever they might want to do.




  • I don’t know if the “general public,” which as a concept sort of conceives society as a monolithic entity, when it very much is not, should necessarily condemn or not condemn any specific artistic theme in a piece of media, but I do think that the art a society produces reflects the ethos of large segments of that society and, to some extent, reinforces that ethos. To borrow from your example, I don’t think someone is going to play Call of Duty and become a knife wielding maniac, but I do think they might play a video game where, for example, a bunch of terrorists have taken over a hospital in some unnamed middle-Eastern nation where American forces are engaged in a “peacekeeping operation” and the only way to get through a particular part of the game is to call in an airstrike on the hospital. A younger person playing the game might see this and then later on hear about military strikes against civilian targets (like hospitals) on the news and think “well, maybe there were bad guys in that hospital, like in my game.” In other words, it has the potential to shift what a person perceives as a legitimate target of state violence. And I know that specific example itself is overly simplistic, but the point is that there are multiple avenues by which political ideologies and their component beliefs are reinforced and reproduced, and the media you consume is one of them.

    I understand my own criticism of video games is unpopular with large segments of the internet. Especially places like Lemmy or Reddit where people reduce criticisms of the content of games to strawmen comparisons to delinquent parents and politicians trying to legislate video games into oblivion because they think they cause school shootings. But I think it’s a valid and worthwhile contribution to most discussions of the medium.