News for hackers. Stuff that matters.
Re:You probably don't need a single-page app by a_wild_dandan on Sunday February 17, 2019 @02:20PM (#19186277)
Yeah, I start with an SPA and adapt to the use-case. It either needs to be a SPA, or SPA -> SSR is easy (via Gatsby/Next.js). The other direction though, seeing projects grow from SSR -> interactivity/SPA is usually a horrifying display of highly-coupled code spaghettification.
Re:You probably don't need a single-page app by virtualwhys on Sunday February 17, 2019 @11:02PM (#19188543)
> Yeah, I start with an SPA and adapt to the use-case. It either needs to be a SPA

Aha, by mistake you corrected your grammar! HNers cargo cult everything, including grammatical mistakes like "an SPA" ( see literally everywhere in this thread). Just say it out loud, "I start with an SPA", does that roll off the tongue? No, neither does, "I'm going to buy an sailboat". However, "It either needs to be a SPA, ..." is totally natural.

While this comment may not seem on topic/useful, it's a useful meta comment -- please don't take offense.

Re:You probably don't need a single-page app by edwardhusarcik on Monday February 18, 2019 @01:25AM (#19188958)
SPA isn't pronounced "spa" but S-P-A thus an SPA is more likely correct. See "an FBI agent" for an example.
Re:You probably don't need a single-page app by virtualwhys on Monday February 18, 2019 @03:54AM (#19189407)
Hah, the relief! That was driving me crazy, thank you for clarifying the usage. I've only seen it written and blindly assumed "spa", not S-P-A.

Now I can read SPA posts without cringing...

Re:You probably don't need a single-page app by edwardhusarcik on Monday February 18, 2019 @05:36PM (#19195130)
Lol keep in mind I could be completely wrong! It seems like there isn't a definitive rule. :(
Re:You probably don't need a single-page app by virtualwhys on Monday February 18, 2019 @07:31PM (#19195768)
No, it makes sense, although as you say there's no rule, so some will use "SPA" and others "S-P-A".

I'm reading it as "an S-P-A" now and it feels so, so much better :)