News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by octodog on Tuesday August 04, 2020 @10:50PM (#24056816)
I find this comment a bit odd. It seems clear to me that code that is easier to write, reuse, test and maintain saves time and money that can then be spent on building a better product. Do you disagree?
Re:In spite of an increase in Internet speed, webpage speeds... by pjmlp on Wednesday August 05, 2020 @01:46AM (#24057621)
How does that help sell more pizzas per day?

Blunt example, however that is what matters to a customer that just commissioned a web site for pizza delivery.

Re:In spite of an increase in Internet speed, webpage speeds... by hombre_fatal on Wednesday August 05, 2020 @08:07AM (#24059901)
Then again, my decision to order a pizza doesn't hinge on whether I have to wait an extra 5 seconds for the initial payload.

But it does hinge on how good the delivery website is though. If you haven't been to a pizza website in the past 10 years, let me point out they are complex with interactive drag-and-drop build-your-own-pizza wizards. Better client-side tech helps build those features to sell more pizzas.

How does your envisioned alternative help sell more pizzas than the heavy-client approach that pizza corporations have decided on?

Re:In spite of an increase in Internet speed, webpage speeds... by AnIdiotOnTheNet on Wednesday August 05, 2020 @09:54AM (#24060747)
> Then again, my decision to order a pizza doesn't hinge on whether I have to wait an extra 5 seconds for the initial payload.

Really? Because personally I find I tend to do more business with places that have interfaces that don't make me want to beat the developer with a wrench.

Re:In spite of an increase in Internet speed, webpage speeds... by pjmlp on Wednesday August 05, 2020 @08:29AM (#24060057)
By making use of APIs that deliver ready made HTML snippets via WebSockets, with on device caching.
Re:In spite of an increase in Internet speed, webpage speeds... by laumars on Wednesday August 05, 2020 @03:14AM (#24058080)
It’s even more important in that case because writing a pizza delivery website isn’t a complex nor new problem so doesn’t need a complex solution.

But to answer your question, if you write clean code then when that company expands it’s operations it is easier for you (or whoever next gets commissioned) to later expand on that site to add more restaurants, thus then allowing your customer to sell more pizzas.

Re:In spite of an increase in Internet speed, webpage speeds... by pjmlp on Wednesday August 05, 2020 @04:07AM (#24058364)
That is definitely not a feature that requires JavaScript, if you now want to pick on my example.
Re:In spite of an increase in Internet speed, webpage speeds... by laumars on Wednesday August 05, 2020 @02:20PM (#24063880)
> That is definitely not a feature that requires JavaScript

You’re right it doesn’t but I thought the context had drifted from that topic and onto code quality.

If we’re talking strictly about JS heavy sites then I’m definitely in favour of the less is more approach. There’s times when it makes sense having JavaScript trigger restful APIs rather than have the entire site rendered on the server side. The problem is JavaScript often gets overused these days.

I could write an essay on where I think modern tech has gone off the rails though.

> if you now want to pick on my example.

That’s a strange comment to make considering you presented the example for discussion. Of course people will then “pick on” the example, in fact you’d be the first to moan about a straw man argument if people cited a different example.