News for hackers. Stuff that matters.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by baq on Thursday November 01, 2018 @06:53AM (#18352657)
18 months is not what I call LTS. not even 30 months is LTS.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by the_duke on Thursday November 01, 2018 @07:38AM (#18352959)
A LTS version is maintained for 36 months total.

(6 months regular release support, 18 months active LTS, 12 months maintenance LTS)

For details, see https://nodesource.com/blog/understanding-how-node-js-releas....

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by franciscop on Thursday November 01, 2018 @07:37AM (#18352948)
But it's not you who are releasing this version... Node.js calls 18 months LTS, then 18 months is LTS for Node.js. I believe Node.js does not follow SemVer, and if they do it's very, very strictly (like, a tiny change that affects 0.1% will be a major version, but there won't be changes that affect 10% unfortunately). So upgrades are very safe and shorter LTS are okay.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by BillinghamJ on Thursday November 01, 2018 @07:53AM (#18353057)
It does strictly follow semver.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by franciscop on Thursday November 01, 2018 @08:15PM (#18359687)
I mean, mandatory major bumps every 6-12 months means that they would make a major bump even if there's no breaking change. Not sure if that has happened, but that would be NOT following semver AFAIK since major releases are supposed to be only for breaking changes, not for arbitrary time progress. But yeah, if anything I'd say they are very strictly following it.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by BillinghamJ on Friday November 02, 2018 @06:59AM (#18362068)
There are always breaking changes waiting to go in (https://github.com/nodejs/node/labels/semver-major). Often they’re edge cases or native extension things though. Although the choice on when is arbitrary timing, the major bump does mean there are breaking changes.

The nature of JS is that there are very few breaking changes allowed from an end-user perspective even between major versions.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by jannes on Thursday November 01, 2018 @07:04AM (#18352725)
JavaScript code is basically obsolete as soon as it is written... In that context 18 months might be a long time.

Edit: I probably wasn't clear enough that I was joking.

Edit 2: I also found out that the LTS release should receive 30 months of maintenance. They say that end of life for node 10 will be April 2021.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by tobyhinloopen on Thursday November 01, 2018 @07:15AM (#18352792)
I think you're confused with javascript frameworks. Just vanilla NodeJS & "BrowserJS" is mostly backwards compatible. Old stuff that worked 10 years ago still mostly works fine.

2008 BrowserJS still works in today's browsers.

2012 NodeJS code still works today (look at this v0.10.48 NodeJS docs for example: https://nodejs.org/docs/latest-v0.10.x/api/http.html )

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by tannhaeuser on Thursday November 01, 2018 @08:12AM (#18353177)
To the contrary, JavaScript is one of the most portable and backward-compatible languages of all time. Portability and long-term maintenance on node.js is excellent if you stick to long-term development practices (commonjs, es5) and few core packages such as express.js. The only weak spot I encountered were subtle changes in error handling such as removal of auto-cleaning of resources with domain.dispose() back in v0.12 or v4 or so, and the somewhat unclear deprecation status of exception domains or the error handling/cleanup story in general, resp.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by qaq on Thursday November 01, 2018 @07:13AM (#18352780)
? I work on large enterprise app in node there is code that was written 5 years ago and still works fine with 0 changes so not sure "JavaScript code is basically obsolete as soon as it is written" is applicable on the server side.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by koolba on Thursday November 01, 2018 @07:31AM (#18352903)
I’m a huge fan of Node.js, particularly in the enterprise, but I question your “0 changes...” claim. At the very least you’ll have to update dependencies to deal with breaks on their part due to upgrades.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by nevi-me on Thursday November 01, 2018 @07:41AM (#18352976)
As someone who has a fairly large codebase that's been largely untouched for 3-4 years, I'd disagree. Nothing has stopped me from updating some ancient dependencies. Perhaps we should make a difference between Node and semver-major library changes
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by Klathmon on Thursday November 01, 2018 @11:00AM (#18354497)
it depends on how well engineered the application is, like anything.

I've been working on react-native recently, and this is by far the most difficult "framework" (or system, or library, or whatever else you want to call it) i've ever had to work with regarding dependencies.

Every. single. change. breaks. And it seems to have deep dependencies on exact versions of many other tools, and changing them causes all kinds of hell. It's awful, and it's what I see as "dependency hell". We are like 5 patch versions behind latest right now, but every other patch version between ours and current either won't build on one platform, won't start due to mismatched dependencies, requires an alpha version of react proper, or breaks all of our tests.

But before that i've worked on at least a dozen mid-sized+ node and browser based projects, and i've never had major issues with upgrades. For the most part they work if you stay within patch or minor versions, and even major upgrades only really hurt if you are impacted by the breakage, which in my experience is pretty rare (just looking at one monorepo-style project that has about 150 direct dependencies, i would probably spend about 2 hours a month on keeping them up to date, and just for fun, i went back to a commit from 3 years ago just now, and it still installs and runs fine.

If you stick to documented features, don't try to abuse or be clever with interfaces that aren't well defined, wrap any "iffy" libraries in your own interfaces to make switching or re-implementing them easier, and overall vet your deps a bit before installing them, it's pretty smooth sailing.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by qaq on Thursday November 01, 2018 @10:55AM (#18354444)
Honestly I am not a big fan of Node but we do have huge subsystems written in node that have not been touched literally for that long.
Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by scandox on Thursday November 01, 2018 @07:09AM (#18352759)
Well I have JS code that was written in 2005 that I know is still running in production.

Even with Nodejs I have code running that is more than 6 years old happily doing useful stuff.

So I'm not sure I understand your comment.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by jannes on Thursday November 01, 2018 @07:22AM (#18352842)
I wasn't entirely serious.

There is just a lot of churn in the library/framework space for JS. There are constantly people trying to invent "like X but better", where X can be absolutely anything in your JS workflow.

If you don't use npm and only rely on the builtin node APIs this would not apply to you as much, though.

On top of that there are always new language features being introduced to EcmaScript and implemented in V8. This means that if you're not using those latest features, some might say your code is outdated.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by fenomas on Thursday November 01, 2018 @09:06AM (#18353494)
> There are constantly people trying to invent "like X but better", where X can be absolutely anything in your JS workflow.

Complaints like this always mystify me. Would things be better if what you describe wasn't the case?

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by adrianhel on Thursday November 01, 2018 @02:50PM (#18357155)
There was a lot of churn in JS. Things have gotten pretty damn stable.

I usually use Express(2010), Socket.io(2014) and React(2013) for new projects.

The libraries that break with new versions are the ones that rely on exotic features.

Re:October Brings Node.js 10.x to LTS and Node.js 11 to Current by scandox on Thursday November 01, 2018 @07:54AM (#18353062)
Yeah sorry sense of humour failure on my part