Live data from Hacker News

You probably don't need a single-page app

journal.plausible.io

521–522 of 522 posts

Re: You probably don't need a single-page app

#521
post #514

Earlier quoted context omitted.

It's not as productive. Anyone can create a REST API in any language in a few minutes, that's the easy part. Building a complex app is different though and much easier and faster in a proper environment that has strong typing, OOP, interfaces, reflection, dependency injection, a solid standard library, and more. Being able to use that same environment to create frontend views and code will greatly improve productivit…

Yeah sorry, I really don't buy it. Strong typing is admittedly great and there are solutions to introduce that in JavaScript. However, this is hardly a dealbreaker in complex apps written in JavaScript. OOP, interfaces: debatable and unnecessary fluff. There are plenty of productive languages without OOP. Example: Elixir. And there are plenty of productive languages without interfaces. Example: Go. Reflection is unne…

Correction: I recently learned that Go has interfaces. But my point still stands.

Re: You probably don't need a single-page app

#522
post #512

Earlier quoted context omitted.

I think this means you are sacrificing the component library requirement. There is not a sane way to intermix js,html,css as a single component with dependencies on other components with your approach. What you end up with is 3 very distinct/separate/unique/difficult to maintain solutions across css, js (probably 4 if you include js/html), html.

Vue.js and Aurelia offer examples of how UI components can be organized and composed, while allowing clean separation of structure, function, and presentation (divided along the lines of HTML, JavaScript, and CSS by design.) The main point is not to limit ourselves to a monotheistic worldview that convinces us, without substantive evidence, that "all other ways are wrong."

The main point is that I listed 3 requirements/wants. Your example of Vue.js or Aurelia sacrifices the requirement for server-rendering. > Server Side Rendering is a new feature of the Aurelia framework, intended for use by early adopters. https://aurelia.io/docs/ssr/introduction#how-it-works
Post reply on HN