Dropbucket.org - Drupal Snippets Repository is Launched!

25 Feb · by Tim Kamanin · 4 min read

Dropbucket - Drupal snippets storage

I've been doing Drupal for last six or seven years and tried lots of ways of storing snippets. I used internal capabilities of IDE's (like snippets in Eclipse or code templates in Netbeans), I stored them in notepad, evernote, used lots of different downloadable snippet managers and stuff.

But there always were two needs which I couldn't satisfy with these approaches: I wanted snippets to be stored online (so I didn't lost them when I format my HDD or uninstall IDE) and I wanted to share my drupal snippets in a dedicated place, where drupalers gather.

We Drupal people, we love to share, this is in our blood and this is an underlying power which drives Drupal community, do something and share with others! So why not to share with our snippets? I believe every of us has loads of different chunks of code which we use on a daily basis, we need to store them, we need to share them. That's why I created dropbucket.org - Drupal snippets repository, a place where you can put your little drops of drupal code and fill the snippet bucket.

Feel free to go and register now to start storing and sharing your snippets. Below I will tell you about some cool features which are waiting for every drupaler at Dropbucket:

1. Brandable profile address

Upon your registration, you get a profile url like http://dropbucket.org/your_username , so hurry up to take up your name :)

2. Snippet add form

After registering, you can start to add snippets via "Snippets add form" which has only two mandatory fields to fill: title and code. Hovewever, I do encourage you to add some description to your code and assign category/drupal version to it, so this is convenient to browse your snippets in the future.

You can add as many code chunks per snippet as you want by using "Add another source code" button.

There are situations, when we don't want others to see our snippets, so every snippet can be marked as "private" and will be visible only for you.

3. Snippet browsing and discovery

Browsing snippets is flexible. You can search snippets by keyword, filter results by categories and drupal versions. There are two flavours of snippet browsing: sitewide, when you browse all snippets submitted to dropbucket.org and personal, when you browse your own snippets via "My snippets" page.

There is also a nice feature suggested by one of early beta testers: you can subscribe to rss feed of any snippet search result, so for example, you can filter "Form API" snippets for "Drupal 7" and get a feed link like: http://dropbucket.org/rss.xml?keys=&field_category_tid=58&field_drupal_version_tid=4. Now you can add this link to your rss reader and get updates every time something appears in this category!

4. Snippet page

On a snippet page you can get a raw version of a snippet or you can copy a snippet to your clipboard by clicking "Copy" button.

Also there is a possibility to "clone" a snippet. So this way you can create your own version of a snippet and place it under your account.

Another possibility to put a snippet under "My snippets" is to bookmark a snippet. Once you bookmarked it, you can find a snippet on "My snippets" page:

Every time you edit a snippet you automatically create a version of it. So all snippet changes are revisioned and you can see differences between revisions and revert your code to any of revisions:

In the end, you can leave a comment for every snippet just to thank author of the snippet, ask a question or suggest a correction.

5. Drupal karma

For every action you do on dropbucket you get a Karma points which are visible on your public profile:

This is a some kind of reward for activity and a way to find out who is the MVDSS (the most valuable Drupal snippets submitter :)) So this was an overview of the initial version of dropbucket.org. There are more features I plan to add in the future like a public API and exporting of snippets to elcipse/sublime/other IDEs. Feel free to leave your suggestions, this way you will help me to introduce needed by a community features.

I need your help to spread a word

If you like the idea of dropbucket.org and you have a blog/twitter/facebook/google+ account or have an access to other media sources, please don't hesitate to share info about dropbucket.org. This way we'll let more drupal developers to find out about this service, which means we'll have more cool snippets to share and discover.

Thank you in advance,
Tim Kamanin

Comments

Required for comment verification



Gg

Hi bro, No Twitter account yet ? Could be Nice to follow dropbucket and get notified of new content! Btw very usefull site, you have my like !

Reply · 4 years, 9 months ago
Dalin

Who is the MVDSS? You no doubt.

Reply · 4 years, 9 months ago
Brian Wood

Interesting resource. Thanks for creating it. Features that occur to me: * download all of my snippets (what if this site disappears) * tag a snippet with arbitrary auto-complete tag (e.g. Panopoly, Open Atrium) * user profile field: drupal.org username. (If you can't get the user name you have on d.o and you want to be found by that name.) * search/browse for users (by d.o username) * follow a user

Reply · 4 years, 9 months ago
fndtn357

very much looking forward to an API for this one. Let's make it rock all the way. Thanks for this great idea!

Reply · 4 years, 9 months ago
Rudie Dirkx

You should add up/down votes, because there's some really horrible snippets.

Reply · 4 years, 9 months ago
Valdas

Thank You Tim, nice and useful idea.

Reply · 4 years, 9 months ago
nicodv

Great!!!

Reply · 4 years, 9 months ago
Sinan

Nice and simple user interface. Very useful...

Reply · 4 years, 9 months ago
svnindia

This is really a cool idea to share the drupal related code....

Reply · 4 years, 9 months ago
Pavithra Raman

This is a wonderful initiative.. I have often had this dilemma and always end up searching for my code online or in some old code repository I might have.

Reply · 4 years, 9 months ago
Kevin Davison

This is great, and nice work, Tim! 'Would be great if this catches momentum to become a strong resource. However, what's your motivation behind DIY vs. working with Drupal.org's site?

Reply · 4 years, 9 months ago
Kevin Davison

Great idea, and nice work, Tim! I registered and tweeting. 'Would be great to gain some momentum to make this an exhaustive resource.

Reply · 4 years, 9 months ago
Craig

That's awesome! I've been using gist.github for all of my snippets. Anyway to import those? **

Reply · 4 years, 9 months ago
carlos

This is simply great :D I love the design

Reply · 4 years, 9 months ago
Media Crumb

This is quite amazing. I really hope it catches on! **

Reply · 4 years, 9 months ago