News for hackers. Stuff that matters.
Re:Stepping Away from Sass by yawaramin on Thursday April 25, 2019 @11:35PM (#19754638)
> I can assume that it's not injecting malicious code into my application.

You don't need to assume, npm has an audit command that helps figure out if any of your package dependencies have reported vulnerabilities: https://docs.npmjs.com/cli/audit

Does Go?

Re:Stepping Away from Sass by marcus_holmes on Friday April 26, 2019 @01:18AM (#19755029)
useful, I didn't know about this. Thanks. How does the reporting of vulnerabilities work for npm?

No, Golang doesn't, but then it doesn't have a registry like npm in the first place. Gophers tend not to use third-party libraries if at all possible.

Re:Stepping Away from Sass by justinclift on Friday April 26, 2019 @03:29AM (#19755473)
> Gophers tend not to use third-party libraries if at all possible.

That sounds weird to me. It's pretty rare (almost never?) for applications to do useful things without third party libraries. eg any database access, input validation, making sure HTML output isn't malicious, etc.

Maybe that's just me though?

Re:Stepping Away from Sass by marcus_holmes on Friday April 26, 2019 @06:25AM (#19756078)
Go has an awesome standard library that does most stuff.

There's also a set of "semi-official" libraries for things like crypto that can't be written by amateurs ;)

There are some other libraries that are commonly used, but you can count them on one hand.

I'm a massive convert to this. Instead of spending my time working out how to get two 3rd-party libraries to talk to each other, I spend my time writing domain-specific code. and my debugging time is spent in repo's that I have a hope of understanding because I wrote them ;)

It doesn't suit everyone, and there are frequent rants on golang forums about people not importing dependencies. But every gopher seems to go through the same journey, and end up at a place where they just write their own code rather than importing it.

Re:Stepping Away from Sass by jcr1488 on Saturday April 27, 2019 @11:17PM (#19769112)
What's even more weird is making every 10 line function a "library" and the average program having 500+ dependencies. JS people are so hung up on "re-usability" that they completely miss the concept of dependency hygiene.
Re:Stepping Away from Sass by yawaramin on Friday April 26, 2019 @06:40PM (#19762372)
Re:Stepping Away from Sass by thecatspaw on Friday April 26, 2019 @03:01AM (#19755377)
isnt it very common to use github repositories as a library? I seem to recall that this was the way to get libraries, though it has been a few years since I looked into go
Re:Stepping Away from Sass by marcus_holmes on Friday April 26, 2019 @06:20AM (#19756064)
yes, but there's not an actual "registry" as such. Just a bunch of sites that have "useful go library" links.