expr

joined 1 year ago
[–] expr 2 points 1 month ago (1 children)

I was replying to someone talking about GraphQL and Ruby on rails, not the OP of this post.

[–] expr 1 points 1 month ago (4 children)

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.

[–] expr 3 points 1 month ago

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.

[–] expr 10 points 1 month ago

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.

[–] expr 5 points 1 month ago

Yeah our corporate machines won't run any external media. I assumed that was standard practice.

[–] expr 2 points 1 month ago (9 children)

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

[–] expr 8 points 1 month ago

The typical "30% on income" advice is based on gross, not net. Which is about 93,000 a year for the median mortgage payment right now.

[–] expr 5 points 1 month ago

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.

[–] expr 1 points 1 month ago

It's developers like you (and corporate greed) that's the made the web so cancerous. Javascript should be the exception, not the rule.

[–] expr 1 points 1 month ago

Maybe that was my issue with condoms when I was younger in retrospect. Always felt like it was choking my dick.

[–] expr 3 points 1 month ago

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.

[–] expr 1 points 2 months ago

I can't even find showings in my state.

view more: ‹ prev next ›