This is exactly why I don't like those projects:
From one day to the other, a group of developer decides to cleanup their API (it's their right and choice), yet what worked before stopped working.... And all other libs using what the first group did... doesn't work anymore.
- Express is what could be seen as a webserver for node.js (yes there is a lot more to it)
- Passport let you create login and use google to log you in or others
Too bad all the example works with express 3 and not anymore with express 4! Great work guys!
So can you rely on open source projects? well... yes and no, as you could end up with such shame all the time.
Express 4, Passport, Node.JS nightmares
- a_bertrand
- Posts: 1536
- Joined: Mon Feb 25, 2013 1:46 pm
Express 4, Passport, Node.JS nightmares
Creator of Dot World Maker
Mad programmer and annoying composer
Mad programmer and annoying composer
Re: Express 4, Passport, Node.JS nightmares
ouch. They should at least update there doc's first =]a_bertrand wrote:This is exactly why I don't like those projects:
From one day to the other, a group of developer decides to cleanup their API (it's their right and choice), yet what worked before stopped working.... And all other libs using what the first group did... doesn't work anymore.
- Express is what could be seen as a webserver for node.js (yes there is a lot more to it)
- Passport let you create login and use google to log you in or others
Too bad all the example works with express 3 and not anymore with express 4! Great work guys!
So can you rely on open source projects? well... yes and no, as you could end up with such shame all the time.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Express 4, Passport, Node.JS nightmares
Hmmm...yep...ouch! But this might actually be good news for you down the road. The core of the open source node team is upset that node still is not completely stable and just forked a new version the other day, presumably to make it so.
The indelible lord of tl;dr
- a_bertrand
- Posts: 1536
- Joined: Mon Feb 25, 2013 1:46 pm
Re: Express 4, Passport, Node.JS nightmares
Having a split of node.js can only make things worse... As you will end up with 2 different base "engines" which may very well end up in-compatible. Sure I do understand WHY we need a node.js version 1 (and stabilize it), yet it would not solve those issues with express and passport.
Creator of Dot World Maker
Mad programmer and annoying composer
Mad programmer and annoying composer
Re: Express 4, Passport, Node.JS nightmares
So let me get this straight... they changed how existing API calls behave? They did not depreciate the existing interfaces, while leaving them in place and adding new "recommended" ones? They actually went and changed how they behaved?
- a_bertrand
- Posts: 1536
- Joined: Mon Feb 25, 2013 1:46 pm
Re: Express 4, Passport, Node.JS nightmares
They dropped some API, changed how some acts, and cut the lib in pieces which now need to be added one by one. So yes... a pure pain
Creator of Dot World Maker
Mad programmer and annoying composer
Mad programmer and annoying composer
Re: Express 4, Passport, Node.JS nightmares
This is their first API, isn't it?a_bertrand wrote:They dropped some API, changed how some acts, and cut the lib in pieces which now need to be added one by one. So yes... a pure pain
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Express 4, Passport, Node.JS nightmares
Yeah, the more I have learned about this, the worse it kept getting. Joyent has the trademark (very important) and the open source has the core devs, and now they aren't on speaking terms. Not good.a_bertrand wrote:Having a split of node.js can only make things worse... As you will end up with 2 different base "engines" which may very well end up in-compatible. Sure I do understand WHY we need a node.js version 1 (and stabilize it), yet it would not solve those issues with express and passport.
As far as it solving issues with Express and Passport, I am not sure I agree. There is a "stability culture" in all open source projects. If the core or foundation is not stable, third-party projects also don't feel stability is important, and so they build for the now. There is a strong idea of flying by the seat of your pants. And beyond that, some of their instability comes directly from instabilities in the core. If node stabilized, that puts more pressure on important third-party projects to also stabilize. That would change the story for the project devs that it is their fault things are unstable.
People have been calling for a 1.0 and stable API for node almost since I first picked it up. I have no doubts that instability in popular modules is bubbling-up from the underlying instability in node itself.
The indelible lord of tl;dr