Live data from Hacker News

Htmx Is a Erlang

matt.sh

31–40 of 80 posts

Re: Htmx Is a Erlang

#31

> ah yes, the famous XSS coming from your own backend API calls… Author does not seem to understand the concept of XSS. Of course your own API could return user-provided data to trigger XSS attacks. Entering alert(1); in a messenger to see whether its rendered value is escaped correctly is a famous example.

If that’s the case, and your backend doesn’t sanitize inputs, you’ve already been owned, regardless of your front end framework.

Re: Htmx Is a Erlang

#32

Reading that entire thing was a struggle. Really feels like _everyone_ is wrong here. Yes the current state of FE development is overly dogmatic and cultish. But it always has been. On the other hand the frameworks and build systems are solving actual problems, they're not there for looks. 5-7 second skeleton loaders are there because backend systems are slow, not because of the front end application. You can say "oh…

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

I cannot fathom how you arrived at that conclusion - there are so many systems that need to display the results of complex data queries where caching or precomputing the results does not make sense - waiting several seconds for results would be normal in those cases.

Re: Htmx Is a Erlang

#33

Earlier quoted context omitted.

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

I cannot fathom how you arrived at that conclusion - there are so many systems that need to display the results of complex data queries where caching or precomputing the results does not make sense - waiting several seconds for results would be normal in those cases.

I've been building backend systems for over 35 years across many industries.

Re: Htmx Is a Erlang

#34

Earlier quoted context omitted.

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

If you serve data from a DC in California to the west coast of Australia it will take 10 seconds of just network transfer time. Sometimes data has a high degree of cardinality and cannot be cached. Some companies cannot afford to, or for other reasons cannot, have regional instances of their compute surfaces. This is just one common scenario, there are many others. > A middling back end system with median complexity…

> If you serve data from a DC in California to the west coast of Australia it will take 10 seconds of just network transfer time.

What? Is this a typo or do you think that’s true?

Re: Htmx Is a Erlang

#35

Earlier quoted context omitted.

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

If you serve data from a DC in California to the west coast of Australia it will take 10 seconds of just network transfer time. Sometimes data has a high degree of cardinality and cannot be cached. Some companies cannot afford to, or for other reasons cannot, have regional instances of their compute surfaces. This is just one common scenario, there are many others. > A middling back end system with median complexity…

> If you serve data from a DC in California to the west coast of Australia it will take 10 seconds of just network transfer time

Where did you get that calculation? Looks way way off

Re: Htmx Is a Erlang

#36

Earlier quoted context omitted.

> The problem with FE is that they seem to be wannabe nodejs BE devs instead of the W3C experts they should be What are the best resources for someone interested in being a W3C expert? (Aside from just slogging through https://www.w3.org/TR/ )

MDN is one of the best resources imo https://developer.mozilla.org/ Generally more practical than W3C.

Thank you!

Re: Htmx Is a Erlang

#37

Reading that entire thing was a struggle. Really feels like _everyone_ is wrong here. Yes the current state of FE development is overly dogmatic and cultish. But it always has been. On the other hand the frameworks and build systems are solving actual problems, they're not there for looks. 5-7 second skeleton loaders are there because backend systems are slow, not because of the front end application. You can say "oh…

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

It's not 1 request. It's a request waterfall in almost all cases. See the remix homepage for a great demo and pitch on why remix is awesome

https://remix.run/

Re: Htmx Is a Erlang

#38

Earlier quoted context omitted.

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

If you serve data from a DC in California to the west coast of Australia it will take 10 seconds of just network transfer time. Sometimes data has a high degree of cardinality and cannot be cached. Some companies cannot afford to, or for other reasons cannot, have regional instances of their compute surfaces. This is just one common scenario, there are many others. > A middling back end system with median complexity…

You have no idea what you're talking about. Perth is about a third of a second away from Los Angeles. There is no data that cannot be cached owing to 'high cardinality'. There does not exist a company that is trying to serve Perth traffic from a US CA DC that cannot afford a server that can do 100k RPS.

Re: Htmx Is a Erlang

#39

Earlier quoted context omitted.

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

Not everyone has the luxury to work with competently written backend systems.

There was a time where a request taking even 500ms was considered to be slow, and then all of a sudden it just became normal to see API traces where requests would take over a second, or multiple seconds, and people would just shrug at it.

Even a backend roughly cobbled together in PHP4 with Varnish running on top of it would considerably outperform some of the stuff that is accepted as 'good enough' today.

Re: Htmx Is a Erlang

#40

Reading that entire thing was a struggle. Really feels like _everyone_ is wrong here. Yes the current state of FE development is overly dogmatic and cultish. But it always has been. On the other hand the frameworks and build systems are solving actual problems, they're not there for looks. 5-7 second skeleton loaders are there because backend systems are slow, not because of the front end application. You can say "oh…

there is no way any competently written back end system takes 5-7 seconds for any reason whatsoever. A middling back end system with median complexity is doing 10-100K requests per second per server and is near-perfectly horizontally scalable.

10-100k RPS is throughput, not latency. There is a well-known latency-throughput tradeoff. For example, Erlang’s BEAM VM is optimized for low latency, while JVM is optimized for high throughput.
Post reply on HN