5 Best Code Snippet Directories
I use mostly PHP to create my websites. I often have a need for a simple piece of code that would make my life so much easier, but I don’t know how to write it easily or efficiently. This is when I turn to the code snippet directories. These directories list all sorts of code snippets for many different topics/categories in many different programming languages.
- byteMyCode – byteMyCode is a great website for code snippets because of the way they have designed and laid out their site. They make it very easy to find what you are looking for. They also offer easy category browsing, as well as a powerful search function.
- Snipplr -Snipplr calls itself Snipplr Code 2.0. They provide a lot of snippets for many different programming languages in an easy to search and browse web 2.0 style website.
- PHP Builder – This website contains not only a vast amount of code snippets, but also articles, full applications, and news pertaining to PHP.
- </Dream.In.Code> – Another list of quality code snippets which contains a large range of topics and programming languages is </Dream.In.Code>.
- DZone Snippets – This website has good quality snippets, but is by far the hardest website to navigate. The navigation style doesn’t seem very intuitive to me, so I often check this site last. There are good snippets here if you have the patience to navigate the site.
Code snippets are a great time saver and a great way to learn some new tricks. Once you use some of the snippets, be sure to give some snippets back and save another webmaster/programmer some very precious time. Where do you get/post your snippets? Post them in the comments!