The other day I visited a site that stores a lot of code snippets. It is a site called Snipplr. Snipplr, as its pronunciation, Snippler, that writes the code snippets, and if you’re looking for a particular code snippet, then this is a place for you. It is also a repository of thousands of code snippets that intends to make your software, or Web development projects much easier and more productive. You can browse through the site according to the recently added code snippets, most popular code snippets, as well as according to the programming language. For the code snippets you like, you can favorite them by logging to this site and save it to your account for future references.

If the above programming language browsing isn’t enough for you, you still can conduct code search on the site. For example, I can search Drupal, one of the favorite open source content management systems even though it was not listed as one of the categories on the site, and Snipplr will still generate a list of search results, each of them contains the code snippet that relevant to the Drupal environment.

However, not every code snippet has been likened to a tested and correct code snippet, some users might just want to submit a code snippet to this site for their very own reasons. You can see this code snippet that submitted by a user, with a remark, i.e. “This might work in Drupal 6, but I haven’t tried it.” And hence, you must at least familiar with programming in general before you put any code snippet you found on this site and use it in your project, as Snipplr is not so much a tutorial site or reference site at my first glance.

For any code snippet page, you’ll see a book that recommended by Snipplr in the sidebar, it is its main business model at this moment. If you make up your mind to buy one of the books recommended on the site, you’ll be redirected to Amazon, and Snipplr presumably makes the affiliate revenue if you complete the buy.