Live data from Hacker News

Things engineers believe about Web development

birtles.blog

91–100 of 254 posts

Re: Things engineers believe about Web development

#91
post #74

Earlier quoted context omitted.

Their experience shouldn’t be much different on an SPA vs an MPA. If they can do an MPA round trip involving a medium-size image, then they should be able to load an SPA.

SPAs often require an uninterrupted internet connection even if it’s not technically necessary.

I mean to be fair, MPAs are by definition unusable without a consistent internet connection. By design every meaningful interaction needs to communicate with a server.

Re: Things engineers believe about Web development

#92
post #80

Earlier quoted context omitted.

That's not how anything in the world works though

Most professions do work like that, actually.

- Hammer, screwdriver, who cares, fix it.

- Scalpel, forceps, who cares, do surgery.

- Reinforced concrete, 2x4s, who cares, build a bridge.

No, pretty much every profession that uses tools cares about using the correct tools for the job.

Re: Things engineers believe about Web development

#93
post #20
post #7

> As an example, the Eleventy documentation seems to avoid using client-side JavaScript for the most part. As Eleventy supports various templating languages it provides code samples in each of the different languages. Unfortunately, it doesn’t record which language you’ve selected so if your chosen language is not the default one, you are forced to change tabs on every single code sample. A little client-side JavaScr…

My understanding of ePrivacy (mostly GDPR) is that this kind of feature does not require consent. It's only features that would allow you for tracking of the user that require consent. Storing some setting in a local storage, never sending it to the server is fine. Things get a bit muddy when sending to server but even then you may not need a consent if it is a feature that is required for correct working of the webs…

GDPR and ePrivacy are different regulations. Under the latter even purely local data storage still requires consent unless it's "strictly necessary" to implement something the user has requested.

For example, see the discussion the sibling commenter linked around storing UI customization choices for only the duration of the current session: https://ec.europa.eu/justice/article-29/documentation/opinio...

Re: Things engineers believe about Web development

#94

Earlier quoted context omitted.

Without a study of some sort, we’re just exchanging anecdotes. I’ve seen resume-driven development a handful of times in my 20-year career. You may be right, but we won’t know until we come up with some way to measure it. Most developers I’ve worked with have just been interested in solving problems.

Physicists work on interesting problems. Developers work on profitable problems, mostly manufactured, for huge piles of money, from home, and with yoga over lunch.

I didn’t say “interesting” problems. Just problems. Anyway, sometimes they are interesting. I think Rich Hickey worked on some interesting problems. Clojure and Datomic are pretty neat, and Electric looks like an interesting problem, too :)

Re: Things engineers believe about Web development

#95
post #7

> As an example, the Eleventy documentation seems to avoid using client-side JavaScript for the most part. As Eleventy supports various templating languages it provides code samples in each of the different languages. Unfortunately, it doesn’t record which language you’ve selected so if your chosen language is not the default one, you are forced to change tabs on every single code sample. A little client-side JavaScr…

As long as it’s implemented as a session cookie (or local storage as IIRC it also behaves as a session cookie) it should not need consent (as per 3.6 “UI customisation cookies” of https://ec.europa.eu/justice/article-29/documentation/opinio... )

I agree for something that's clearly customizing the UI of the whole site, but if it looks like you're choosing a language only for the currently displayed snippet then I think that wouldn't qualify?

Re: Things engineers believe about Web development

#97
post #63

Earlier quoted context omitted.

> The problem isn't so much those but how most developers lump themselves in with the incredibly interactive sites It is not only Figma or Photoshop. Any site with multiple steps of interactions or complex filters over search result etc. benefit from SPA and declarative code. The experience is smoother and development of anything, but simple forms is much faster. People disabling JS or working on satellite internet f…

> People disabling JS or working on satellite internet from a remote island are fringe cases and are not relevant for the business. How about people working on a train?

For most scenarios, the experience should be better with a well-designed SPA as while first load may be slow, and person may have to wait a min. Once loaded data transfer per interaction is much smaller. For a use-case of just loading a page reading it and submitting few fields on it, will be worse. But for complex things like multiple filtering, searching for different dates, seat selection it will be faster.

Re: Things engineers believe about Web development

#98
post #47

> “Web development shouldn’t need a build step” Everything running in a browser is interpreted. There is no reason for webdev to require a build step, and it largely does so because JS standards haven't delivered anything around static typing. Even a "this syntax is valid but ignored" would enable IDEs to provide checks via LSPs, but for no-build running. Build steps and development iteration overhead is something to…

>Everything running in a browser is interpreted. That's exactly the reason for a build step. In a build step the code can be optimized to reduce and/or accelerate the code that needs to be interpreted.

JS builds today do not appreciably accelerate code, and minimization is of marginal benefit when served assets are appropriately compressed using technologies browsers already support.

Re: Things engineers believe about Web development

#100
post #74

Earlier quoted context omitted.

SPAs often require an uninterrupted internet connection even if it’s not technically necessary.

I mean to be fair, MPAs are by definition unusable without a consistent internet connection. By design every meaningful interaction needs to communicate with a server.

MPAs only need connection when navigating to a new page. It is not needed when reading a page.
Post reply on HN