If the HMR works the same on both client and server (why not? correct me if I'm wrong), your page won't reload, it'll just received a "hot" swap on the code (that's the reason why it's so great, better debugging!)
@GloriousUnicorn
Freelance Software Developer specialized in Angular and NodeJS (Typescript)
Nothing here yet.
Work as a freelance
No blogs yet.
If the HMR works the same on both client and server (why not? correct me if I'm wrong), your page won't reload, it'll just received a "hot" swap on the code (that's the reason why it's so great, better debugging!)
I think something that showed up after some years of coding is to think about what could go wrong before it goes wrong, like, stupid example, if I'm ordering a pizza for a friend I always ask him "and if there is no piece left?." It could sound stupid and obvious, but the reason about why I say this is because now I don't think anymore like "well, if it goes wrong we will see what to do," now I like to have a flow chart that describes every possibility :D
Well I dunno how start to coding without any knowledge would work for him :-/ it's different from someone that has done is way through some years learning one thing at time, he has to understand what he has around, and the reason why I've suggested him to start with a framework (ng2 isn't even that, it's a platform) was because it should have simplified coding things, but what we got, obviously, it was that he needs to use code that he knows what is doing under the hood (this because as already mentioned, for some reason he can't learn while playing around with a seed if he doesn't know what every party does).
That isn't how JavaScript development looked like 7 years ago. For that matter, it was precisely in 2010 that npm and the some of the biggest frameworks still in use were released. Oh well, back in the days (disclaimer: I wasn't into programming like today) I don't remember there were so many things around JS like transpiling, a new builder every few weeks and so on, the point was that if you today would want to start learning how web-apps are made you need to know many more things! Well yes, suggesting him to learn from ng2 has been overwhelming, as @200ok has said, you don't learn to drive to drive in a racecar :)
Yes it works pretty good indeed, or at least it works for me because when I later look at the whole product I actually don't look at it as a whole because it's like if you're creating uhm.. a clock: you can appreciate a masterwork clock because (if you know how it's done) you know every piece of it had a meticulous craft process that could be appreciated alone. So when I'm building something, I make myself sure that every part could make me proud of it, rather than have placed a piece into a puzzle built just because :)
My favourite thing about programming is that when I do it I'm feeling like an artisan that is bringing his creation to life, but it isn't the finished product itself that gives me joy of programming, it's the process: deciding how it should look like and why, which tools would be more appropriate, and see if my ideas would solve perfectly the purpose of the product, otherwise I'll enjoy spending some more time in the process of refining it.