Click here to Skip to main content
15,072,989 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Where are you guys? Pin
CodeWraith8-Apr-21 21:56
MemberCodeWraith8-Apr-21 21:56 
GeneralRe: Where are you guys? Pin
OriginalGriff8-Apr-21 22:11
mveOriginalGriff8-Apr-21 22:11 
GeneralRe: Where are you guys? Pin
dandy729-Apr-21 4:28
Memberdandy729-Apr-21 4:28 
GeneralRe: Where are you guys? Pin
Slacker0078-Apr-21 22:22
professionalSlacker0078-Apr-21 22:22 
GeneralRe: Where are you guys? Pin
markrlondon8-Apr-21 23:21
Membermarkrlondon8-Apr-21 23:21 
GeneralRe: Where are you guys? Pin
Jörgen Andersson9-Apr-21 4:28
professionalJörgen Andersson9-Apr-21 4:28 
GeneralRe: Where are you guys? Pin
CodeWraith9-Apr-21 4:55
MemberCodeWraith9-Apr-21 4:55 
RantNode, npm, versions, duck typing... Pin
Marc Clifton8-Apr-21 4:39
mvaMarc Clifton8-Apr-21 4:39 
One of our services is using an archaic version of mkdirp[^] and worse, we apparently have to use a version of node that's 5 or major versions back -- 9.something rather than 14.something.

So our code is calling mkdirp with a callback function on success/fail. Besides the fact that I despise callback functions, this was probably the only way to deal with async calls before Promise became a thing (yes, I know, it's really just syntactical sugar for callback, IMO, but it is more elegant.)

Anyways, in whatever version of mkdirp "npm install" ended up using, it broke the code because the author of mkdirp stopped support a function for "opts".

1. The author didn't continue supporting a function in opts. Why the hell not?
2. Why did "npm install" not pay attention to the version specification in the dependencies file? Maybe we had specified it wrong.
3. In a "real" language, that does type checking, a change in the function signature would have been caught at compile time.
4. And really? I need to rely on an open source package to create a directory structure? Yeah yeah, cross platform compatibility and all that.
5. And relying on open source packages that the author can just change and break the world? (Yeah, I despise NuGet also, BTW, in fact, I'm beginning to despise open source packages and package versioning more and more every day. One day I'll tell you about the System.Net.Http package version hell I've been through.)

Using Node and pure Javascript is already pushing daisies as far as I'm concerned, never will use them, ever, ever, ever. All this experience did was get me to dig up the graves and drive wooden stakes through the rotting corpses of Node and Javascript, to make sure they are really dead.

I'm counting on my coworkers to continue to deal with those two demons. Laugh | :laugh:

GeneralRe: Node, npm, versions, duck typing... Pin
Daniel Pfeffer8-Apr-21 6:11
professionalDaniel Pfeffer8-Apr-21 6:11 
GeneralRe: Node, npm, versions, duck typing... Pin
OriginalGriff8-Apr-21 6:16
mveOriginalGriff8-Apr-21 6:16 
GeneralRe: Node, npm, versions, duck typing... Pin
Daniel Pfeffer8-Apr-21 20:37
professionalDaniel Pfeffer8-Apr-21 20:37 
GeneralRe: Node, npm, versions, duck typing... Pin
Sander Rossel8-Apr-21 10:40
professionalSander Rossel8-Apr-21 10:40 
GeneralRe: Node, npm, versions, duck typing... Pin
Marc Clifton8-Apr-21 14:49
mvaMarc Clifton8-Apr-21 14:49 
GeneralRe: Node, npm, versions, duck typing... Pin
Mycroft Holmes8-Apr-21 12:37
professionalMycroft Holmes8-Apr-21 12:37 
GeneralRe: Node, npm, versions, duck typing... PinPopular
Chris Maunder8-Apr-21 13:12
cofounderChris Maunder8-Apr-21 13:12 
GeneralRe: Node, npm, versions, duck typing... Pin
Dan Neely9-Apr-21 3:37
MemberDan Neely9-Apr-21 3:37 
GeneralRe: Node, npm, versions, duck typing... Pin
jkirkerx9-Apr-21 6:48
professionaljkirkerx9-Apr-21 6:48 
GeneralRe: Node, npm, versions, duck typing... Pin
sasadler9-Apr-21 7:17
Membersasadler9-Apr-21 7:17 
GeneralI have always had Paint on Win 10? Pin
glennPattonContracting28-Apr-21 4:39
professionalglennPattonContracting28-Apr-21 4:39 
GeneralRe: I have always had Paint on Win 10? Pin
OriginalGriff8-Apr-21 5:19
mveOriginalGriff8-Apr-21 5:19 
GeneralRe: I have always had Paint on Win 10? Pin
Kenneth Haugland8-Apr-21 5:49
professionalKenneth Haugland8-Apr-21 5:49 
GeneralRe: I have always had Paint on Win 10? Pin
Fueled By Decaff8-Apr-21 5:24
MemberFueled By Decaff8-Apr-21 5:24 
JokeRe: I have always had Paint on Win 10? Pin
Maximilien8-Apr-21 6:59
MemberMaximilien8-Apr-21 6:59 
GeneralRe: I have always had Paint on Win 10? Pin
Richard MacCutchan8-Apr-21 5:31
mveRichard MacCutchan8-Apr-21 5:31 
GeneralRe: I have always had Paint on Win 10? Pin
glennPattonContracting28-Apr-21 8:12
professionalglennPattonContracting28-Apr-21 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.