Live data from Hacker News

Show HN: Algorithm Cookbook in Rust

github.com

11–20 of 73 posts

Re: Show HN: Algorithm Cookbook in Rust

#14
post #13
post #12

"My other goal is to show developers that C++ and Java kinda suck" -- really?!

Yeah, it's a pretty poor way to represent Rust to an audience that is ostensibly it's target audience.

Any developer who can't name something that "kinda sucks" about their language probably isn't ready to learn a new language.

Re: Show HN: Algorithm Cookbook in Rust

#15
post #3

MIT license is good, but I always wish that sample code was available under CC0 -- and presented with explicit permission to copy and paste without preservation of notices. (A request to link back optionally when practical is fine.) That makes it easier for sample code to achieve the ends of maximum code reuse and popularization of the underlying technology.

Agreed. I once tried to submit a small snippet I found on stackoverflow to an open source project. Stackoverflow user content is licensed under creative commons, cc-by-sa (see https://stackoverflow.blog/2009/06/25/attribution-required/ ). I included attribution, but it was rejected. I totally understand why. CC0 is much preferred in this case.

FYI, newer Stack Overflow code is licensed under an MIT license with a link in code comments serving as attribution. See https://meta.stackexchange.com/questions/272956/a-new-code-l...

Re: Show HN: Algorithm Cookbook in Rust

#16
post #13

Earlier quoted context omitted.

Yeah, it's a pretty poor way to represent Rust to an audience that is ostensibly it's target audience.

Any developer who can't name something that "kinda sucks" about their language probably isn't ready to learn a new language.

The quoted comment isn't about particular shortcomings in a language, it's a blanket pejorative, and it doesn't reflect well on the author's credibility.

Re: Show HN: Algorithm Cookbook in Rust

#17
post #4

This is great. I am curious if anyone else knows of a similar cookbook for Golang.

I have implemented quite a few algorithms and data structures for fun here [1]. It's not authoritarive by any means, and not everything is in Go (there's also some Rust, Swift, TS and JS), but maybe a few things could turn up useful.

[1] https://github.com/peferron/algo

Re: Show HN: Algorithm Cookbook in Rust

#18
post #15

Earlier quoted context omitted.

Agreed. I once tried to submit a small snippet I found on stackoverflow to an open source project. Stackoverflow user content is licensed under creative commons, cc-by-sa (see https://stackoverflow.blog/2009/06/25/attribution-required/ ). I included attribution, but it was rejected. I totally understand why. CC0 is much preferred in this case.

FYI, newer Stack Overflow code is licensed under an MIT license with a link in code comments serving as attribution. See https://meta.stackexchange.com/questions/272956/a-new-code-l...

Looking at that link I don't think it was implemented. The footers on stack overflow pages still indicate cc-by-sa.
Post reply on HN