
I’ve been working with Drupal for a long time and for many years of practice I have accumulated a lot of snippets for solving various tasks. During this time, where I just did not store these pieces of code: in a notebook, in an evernote, in a gist, in an IDE (which took turns like gloves). Whenever I needed to find this or that piece of code in order to reuse, I either started a tedious search among all this digital bale or simply wrote the code first.
In the end, I got tired of all this and after a long and lengthy search for convenient online storage for my snippets, and I went through oh how many decisions, it was decided to create my own, and strictly Drupal-oriented storage. Such a narrow focus is a tribute to the Drupal community, which has never had such a project for itself.
')
This is how the site
Dropbucket.org appeared, which was launched a month ago and received quite a good press in the western part of the Drupal community. To date, 800 Drupal developers have registered on the site from various corners of our planet (including, of course, Russia and Ukraine).
Next, I will briefly talk about the main features of the project and that he eventually gives Drupal to the developer.
So, the main idea of
Dropbucket 'a is to create a place where you can save your own snippets, categorizing them by themes and versions of Drupal, and if you wish, share your work with other developers.
Adding Snippets
My main desire was to make the snippets adding scheme as simple as possible. The form for adding a snippet looks like this:
Here, only two fields are required: the header and the code itself, the remaining fields are optional.
Each snippet can consist of several functional pieces added using the “Add another source code” button:

In case you don’t want others to see your snippet, you can easily make it private:

Snippet page
On the snippet page, you can get the "raw" version of the code or immediately copy it to the clipboard:

One of the most popular features is the snippet cloning, when you can clone any snippet posted on the service and edit it for yourself:

But that's not all, a snippet can be added to favorites, you can vote for it, leave comments and add snippets to your personal lists.
Each code revision creates a separate revision, as a result, you can view previous revisions of the code:


Personal Snippets Lists
A week ago, a new feature “Personal Snippets Lists” was added, which makes it possible to create lists from any snippets:

By clicking on the button "Add to list":

A menu appears with the help of which all necessary operations of adding to lists and creating lists take place:

Such a function is convenient for creating knowledge bases on a particular topic of Drupal programming and distributing it, for example, among team members. Imagine a "list of snippets for working with a database."
Snippets search
Finding a suitable snippet among code blockages is an important task. To solve this problem, a flexible filter was created that allows you to filter snippets by keywords, drupal versions, categories, and even by user names:

Each filter can be monitored by subscribing to it through the RSS reader. For example, the “Ajax”
snippet feed for Drupal 7 would look like this:
dropbucket.org/rss.xml?keys=&field_category_tid=29&field_drupal_version_tid=4&name= . A handy feature for those who want to follow a certain category of codes.
Social profile
Each user receives the address of the
dropbucket.org/user profile type, where you can see information about the developer, statistics, activity history and his Drupal Karma (well, what about without karma, eh?). For each correct and incorrect movement on the site you are charged Drupal Karma, which in the future will serve for the distribution of all sorts of buns.
Future
For the future, the plans are just a lot, after the release of the service, I received a ton of ideas and suggestions, among which it is necessary to filter out the necessary, prioritize and move forward. Among the most likely improvements:
- Redesigning the snippet categories interface, I'm not very happy with how it looks now;
- Introduction API for integration with various IDE;
- The ability to export your own snippets;
- Great socialization and user involvement.
But the most important thing is that minimum viable product is already there, it works, it solves its main task and people really like it.
Thank you for your attention and I hope that the project will appeal to the Russian-speaking Drupal community, despite the fact that the interface is not in our native language.
Suggestions and comments please leave in the comments, your opinion is valuable to me.