This is a simple prototype of an idea put forward by David Neary over coffee after the FOSSa conference in Grenoble. The idea is to provide a code snippet, review, rating and commenting system. This is not intended to be complete, it's just a quick prototype system, maybe it will go somewhere, maybe not. It is expected that a full version of this will not be built on Drupal, but will be custom built using appropriate technologies. However, as a proof of concept this does it's job.
Supported Features
Release 0.2
- Addition of "programming concept" taxonomy for grouping snippets
- Index of all "programming concept" taxonomy terms (which have entries)
- List of all snippets in a given "programming concept"
- Sortable list of top rated snippets
- Sortable list of snippets current user or another user has voted on
- Sortable list of own snippets or another users snippets
- Added a Codepedia theme
- RSS feed of all items appearing on the home page
Release 0.1
- Registered users can create code snippets
- Snippets in many languages are supported
- Syntax highlighting is done on the client to lesson the load on the server
- Changes to the code snippets are versioned
- Registered users can leave comments
- Registered users can rate snippets
- Average ratings are displayed, along with current user rating (if registered)
Adding a code snippet
- Log in
- Click "Create Content"
- Select "Code Snippet"
- Click "Input Format"
- Select "Code"
- Type your introductory text in the editor
- click the highlighter icon (far right of editor menu bar)
- Select the programming language for your code
- Click insert
- click save
Note, if you edit this document in the future a new revision will be saved.
Potential features
- search
- simplify the code editing process
- per line commenting
- RSS feeds of new snippets
- RSS feeds of new snippets in a given taxonomy
- RSS feed of new ratings of own snippets
- RSS feed of new comments on snippets
- Move comments to a "talk" page