News for hackers. Stuff that matters.

thomassharoon

Re:Htmx Is Composable? on Wednesday January 17, 2024 @10:24AM (#39028957)
> But honestly, torn towards htmx but undecided.

We are in the middle of migrating from our monster react application into server rendered pages (with jinja2). The velocity at which we are able to ship and the reduction of complexity has been great so far.

Managing client side state for simple things like (is the dropdown open/closed), listening to keyboard events and such can be done with something like alpine-js [1] without all the baggage that something like react brings.

It appears this is already the trend with JS frameworks too - with server side rendering being the new norm.

[1] https://alpinejs.dev/

Re:Htmx Is Composable? on Wednesday January 17, 2024 @10:21AM (#39028917)
Yep.

https://hypermedia.systems/hypermedia-components/

And to avoid entire page rewrites, there is alway the option to inject a server response (html) into the top (or end) of comments for example.

Re:Htmx Is Composable? on Wednesday January 17, 2024 @10:01AM (#39028612)
not everything needs the window url to be updated.

* Add a comment on the timeline and you don't need the url to be updated. * Open a new record and the url needs to be pushed to history

Re:Show HN: Automate complicated manual business processes on Thursday August 24, 2023 @06:58AM (#37247389)
From the GH repo:

> You can deploy ToolJet on Heroku for free using the one-click-deployment button only until 28th November 2022.

Why the limitation?

Re:GraphQL kinda sucks on Saturday August 06, 2022 @09:53AM (#32368091)
There are patterns that can get you the same benefits without having to use GraphQL.

Even on a REST API, you can achieve the same pros

> - It makes working with describing the data you want easy > - It can save you bandwidth. Get what you ask for and no more

You can describe the fields you need (and I assume that is what reduces the bandwidth)

GET /users?fields=name,addresses.street,addresses.zip

> - It makes documentation for data consumers easy

I don't think so in practice. You can see Shopify's GraphQL documentation [1]. If anything it is more complex than their REST API docs

> - It can make subscription easier for you to use

Not too different from using something like SSE or even websockets and every decent web framework seems to have a decent implementation

> - Can let you federate API calls

So many ways to achieve this at the application layer (which is what GraphQL federation does with a Router). In the python world this could be separate WSGI apps or racks in ruby? And makes no difference if done at the load balancer level.

[1] https://shopify.dev/api/admin-graphql/2022-07/enums/localiza...

Re:Why software engineers like woodworking on Friday June 10, 2022 @02:45PM (#31697937)
Yeah, buying all the tools can get expensive pretty quickly, not to mention how overwhelming the choices in tools are.

If you are just starting out, I'd recommend starting with just the core tools [1] and a block plane.

[1] https://www.lie-nielsen.com/nodes/4219/home-education-gettin...

Pull review comments and approvals as well
Re:New MacBook Air on Wednesday March 18, 2020 @11:32AM (#22617717)
Tried ditching OSX and moving to Ubuntu a 2020 Thinkpad X1 carbon G7. Gave up after I had to first update WiFi driver only to have sound break.

loved the hardware, but returned the box.

Re:Ask HN: Is S3 down? on Tuesday February 28, 2017 @03:25PM (#13757501)
Is S3 down outside of Us-East too? I can't seem to create a bucket in US-West or EU