Live data from Hacker News

Ask HN: Why does front-end development change so often?

news.ycombinator.com

1–10 of 83 posts

Re: Ask HN: Why does front-end development change so often?

#2
Unlike backend frontend isn't built on a solid foundation.

So someone people don't learn the stuff in use (or find it difficult to achieve the current trend in preexisting technology) in use and find easier tricks/concepts then base their whole framework on that.

Now newbies, who want to quickly achieve something gravitate towards the new shiny things which makes the current Trend easy but makes rest of the things difficult.

You can optimize technology along any axis, but if you optimize it along one axis it will be deoptimized along some other axis.

For example, think of interactivity. When people wanted to build interactive website, they brought stuff like websockets/single page application but now websockets can't be cached like a http API and SPA throws monkey wrench into SEO.

Now, you made current trending thing (interactivity) easier for newbies but made other things like initial page load time, SEO difficult.

These are my noob level observations, as you gain more experience you'll find many examples of this happening in wild.

Similarly, to achieve scalability people brought in JWT instead of Session cookies and lost ability to revoke the token without maintaing a blacklist or using short lived tokens which you've to refresh every few minutes increasing RPS load for the server.

So the moral of the story is that you need to understand what a particular technology makes easy and what it makes difficult then you select the appropriate technology without chasing the hype.

Re: Ask HN: Why does front-end development change so often?

#3
A UI framework has to accommodate a huge range of projects of massively varying complexity, from barebones text layout to global enterprise across hundreds of types of devices. But people also want it to be simple enough to learn easily, prototype quickly, and maintain long-term without significant headaches. There ain't no such thing as a free lunch when it comes to simplifying complexity, so one framework cannot rule them all. So we get new ways to do stuff, constantly.

Re: Ask HN: Why does front-end development change so often?

#4
I think there are a few reasons for that.

1- back-end frameworks tend to follow either the Rails or Sinatra models. We may get new frameworks in new languages but their structures are fairly similar. Datastores have been changing but usually get abstracted into a supporting library. GraphQL a bigger change than we've seen in a while.

2- front-end requirements are changing faster with a greater number of developers solving more varied problems.

3- front-end is at the top of the stack so is less constrained. Making changes in the back-end can have consequences to all developers of a product. Front-end changes only affect the front-end devs who likely do both the app along with new frameworks being built.

Re: Ask HN: Why does front-end development change so often?

#5
it evolves quickly because the whole field is based on a couple of hacks, and the possibility manifold is being constantly dilated via the tiny hole they opened.

ES5 plus XHR rent a hole to a bizarre parallel world where the whole page was an applet. We are still working out what that means.

Unlike every other development context, this whole world is an accident.

I made my first website in 1996. Youth, listen to me.

Re: Ask HN: Why does front-end development change so often?

#6
post #5

it evolves quickly because the whole field is based on a couple of hacks, and the possibility manifold is being constantly dilated via the tiny hole they opened. ES5 plus XHR rent a hole to a bizarre parallel world where the whole page was an applet. We are still working out what that means. Unlike every other development context, this whole world is an accident. I made my first website in 1996. Youth, listen to me.

> it evolves quickly because the whole field is based on a couple of hacks

What are the two hacks the whole field is based on?

Re: Ask HN: Why does front-end development change so often?

#7
I think it's because all the relevant dimensions are so vast:

- devices: desktops/laptops, smart phones/dumbphones, lynx, curl, uncountable browsers

- programming languages / paradigms: in the end it's all HTML/CSS/JS, but there's lots of ways to generate these

- in whatever PL you selected, a bewildering array of libraries

- open source and commercial offerings

- small single site pages to things like MSDN

- public facing pages to large internal legacy intranets

- use-cases, from wikipedia to youtube

- running in a browser vs in a container like the spotify app

- languages (like english vs german), so unicode etc. issues

- vast amount of developers doing the work, with very different backgrounds

To the degree things works, it's small wonder really :)

Re: Ask HN: Why does front-end development change so often?

#8
I think there are a few different factors at play:

1. Javascript has a massive and diverse community. Developers that would otherwise avoid the language must learn to use it. So, where other languages would rally around one framework (because of the self-selection), Javascript rallies into sub-communities around methodologies and architectures.

2. Javascript is gaining new developers at a very high rate. All these new minds bring new ideas, new combinations of ideas, and lots of re-invented ideas too. All of it, even revisiting old ideas, pushes the collective industry in new directions.

3. Frontend developers have had to layer on top of a set of tools barely adequate for what we're trying to accomplish. For example, jQuery should never have been necessary, but was revolutionary when it came out. Today there's still not great solutions around storage, security, performance, etc. Solving these problems improve the abstraction and allow higher-level frameworks to appear.

4. Based on what I've seen there appear to be very few UI toolkits that aren't kind of garbage. Human interaction and rendering pretty bits is hard. Generally I think the industry (even outside webdev) is still looking for the "right answer" to the problem.

Re: Ask HN: Why does front-end development change so often?

#9
There are some excellent answers here. An additional (if not unpleasant) one is that there are a lot trendy devs who like to treat new technology like fashion. If you're not up on the latest, you're not one of the cool kids. It's a kind of ingroup/outgroup thing.

Re: Ask HN: Why does front-end development change so often?

#10
Related to this topic:

What are the minimum technologies needed to get a solid front-end stack, with a nice balance between modern features without framework/library/build tool/transpiling hell?

For example, I don’t want to learn TypeScript when vanilla JavaScript will suffice. I’m wary of picking up the “hot” new frameworks because they haven’t stood the test of time and may get deprecated/irrelevant.

Basically, I want to have a flexible and minimalist stack, but also with a good balance of features (i.e. not just a static HTML site).

Any ideas?

Post reply on HN