Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)EX
expr @programming.dev
Posts 0
Comments 374
What's your prediction for the 2024 US election?
  • Anarchism is not chaos, which is what it seems like you think it means. Anarchism is the opposition to hierarchy and is thus directly opposed to fascism and therefore Trump. No anarchist wants to see Trump win because it means fascism has won.

  • why is this race so close?
  • It makes a lot of sense for very rural living: you need a defense against the wild, and possibly hunting for food. I fully support that.

    The general desire among Democrats is stricter regulation, which is a very reasonable thing. People should be required to prove that they can be a responsible gun owner and are mentally fit to own one. I shouldn't be able to pick one up from the sporting goods store like it's a bag of potato chips. It is an incredibly powerful tool and can easily kill others. It should be treated as such.

  • How to ensure my web app has backward compatibility with importing JSON based user data?
  • I wasn't suggesting making JSON "REST" APIs (not actually REST, more accurately you might call them JSON data APIs or something). I meant protocols that are specifically meant for RPC, like gRPC, JSON-RPC, etc. Or message queues like RabbitMQ.

  • Discussion
  • Exactly, heavy taxation on the ultra wealthy and wealth caps are incredibly popular topics in liberal circles. I swear some people have never actually talked to a liberal and just attack some strawman they've lumped in together with conservatives.

    I'm leftist and anti-capitalist, but I also recognize that most liberals are people who want the same things leftists do, but simply haven't thought deeply enough about what the true root causes of society's issues are. It's an issue of tactics rather than a fundamental disconnect in core principles and values. Ultimately they want a more equitable, less stratified society where society helps and supports the disenfranchised. The same thing leftists want. They just don't understand that capitalism has to go in order to achieve it.

    Liberals, unlike conservatives, are actually generally quite reasonable people since they aren't motivated by hatred. As leftists, we should be doing everything we can to educate them and bring them into the fold, rather than tearing them down.

  • How to ensure my web app has backward compatibility with importing JSON based user data?
  • Ah I see, my bad. You mentioned Ruby on rails and GraphQL so I assumed you were talking about some kind of MPA situation.

    Yeah htmx doesn't replace data APIs for sure. Still not a fan of GraphQL for that purpose for the reasons above. There's a lot of good options for RPC stuff, or even better, you can use message queues. GraphQL is just a bad idea for production systems, IMO.

  • How to ensure my web app has backward compatibility with importing JSON based user data?
  • I don't know what you mean by an API standard, but yes, it is technically a JavaScript library. But that's only an implementation detail and the spirit of htmx is that you write very little JavaScript. Javascript is simply used to extend the HTML standard to support the full concept of hypermedia for interactive applications. An htmx-driven application embraces hypertext as the engine of application state, rather than the common thick client SPAs hitting data APIs. In such a model, clients are truly thin clients and very little logic of their own. Instead, view logic is driven by the server. It has been around for quite a long time and is very mature.

    It's fundamentally different than most JavaScript libraries out there, which are focused on thick clients by and large.

  • OOP is not that bad
  • This is something often repeated by OOP people but that doesn't actually hold up in practice. Maintainability comes from true separation of concerns, which OOP is really bad at because it encourages implicit, invisible, stateful manipulation across disparate parts of a codebase.

    I work on a Haskell codebase in production of half a million lines of Haskell supported by 11 developers including myself, and the codebase is rapidly expanding with new features. This would be incredibly difficult in an OOP language. It's very challenging to read unfamiliar code in an OOP language and quickly understand what it's doing; there's so much implicit behavior that you have to track down before any of it makes sense. It is far, far easier to reason about a program when the bulk of it is comprised of pure functions taking in some input and producing some output. There's a reason that pure functions are the textbook example of testable code, and that reason is because they are much easier to understand. Code that's easier to understand is code that's easier to maintain.

  • Why am I seeing "plan your voting day strategy" so often?
  • In Nebraska, I get my ballot by mail way in advance. I fill it out at my leisure, doing research on candidates as needed. I can then either mail the ballot back or drop it off at one of several locations around town (including any of the public libraries). I haven't voted in person in years. This method is so much better.

  • How to ensure my web app has backward compatibility with importing JSON based user data?
  • Obligatory "JSON APIs are not REST because JSON is not hypermedia".

    GraphQL is a mess too as you throw out any ability to reason about query performance and it still requires thick clients with complicated/duplicated business logic.

    If you're doing RoR anyway, then go for https://htmx.org/. It's much, much simpler and closer to how the web was originally designed. Highly recommend this book the author wrote on the subject (also provides tutorials walking through building an app): https://hypermedia.systems/book/contents/.

  • Nearly half of US renters spend more than 30% of their income on housing costs
  • Just to point out, with the median mortgage at $2349 a month, it's more like you need a household income of $93,000 a year (probably closer to $100k with utilities and other expenses) for your housing costs to equal 30% of your income. That is steep for a lot of people, but still much more attainable than 7 figures. A quick Google says that makes up around 37% of US households as of 2022. Still doesn't quite add up to their figures, admittedly, unless "nearly half" is doing a lot of work in that sentence.

  • Salesforce invites a horse into the hospital
  • Usually it's the part of the org that is directly interacting with big, corporate customers. Those customers can and often do directly shape how a product works. It's like a sales team, but focused on existing customers with big contracts (that might be expanded), rather than acquiring new customers.

    But admittedly, this has just been my experience. I'm sure it's probably not universally true.