Over the years I've often thought to myself "This function must have been written before by someone" This often comes up when writing sorting or searching algorithms. While Wikipedia and Google Code often have great snippets in many different languages for common problems, are there any sites where people can openly share useful blocks of code?
Tell me more
×
Programmers Stack Exchange is a question and answer site for
professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.
|
|
|
||||
|
|
Check out Pastebin. It's kind of a dumping grounds for all sorts of algorithm implementations and random bits of code, but it's designed for helping programmers specifically and will probably have what you need on it somewhere. And yes, searching works well. |
|||
|
|
|
GitHub has Gists. They are public, searchable, and can be forked. (You can make private ones, too.) |
|||||
|
|
Microsoft offers an All-in-One code framework if you're interested in that kind of thing. It's certainly not the "best place" (you can't share your own, which is what you want to do) but the option is there. |
|||
|
|
