3 ms·
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 b
by octodog 6y ago
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?
- pjmlp 6y agoHow 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.
- laumars 6y agoIt’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.
- pjmlp 6y agoThat is definitely not a feature that requires JavaScript, if you now want to pick on my example.
- laumars 6y ago> 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.
- hombre_fatal 6y agoThen 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?
- pjmlp 6y agoBy making use of APIs that deliver ready made HTML snippets via WebSockets, with on device caching.
- AnIdiotOnTheNet 6y ago> 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.