Showcase - building and     contributing a module      Nagailic Sergiu | Nikrohttp://nikro.me | http://wearepropeople.com
Content:         1.    Inception.         2.    Thinking through the concept.         3.    Working locally.         4.   ...
Inception          ●    Research if this can be done via one contrib module.          ●    Research if this can be done vi...
Thinking through     the concept          ●    Think of most various use cases, that your module could               handl...
First work locally.   Define the architecture.          ●    Use a clean Drupal instance (sandbox) with some basic        ...
Working with the   Drupal Git Repo.          ●    When youre ready (judgement call), switch from local to Git.          ● ...
Testing, testing,   testing.          ●    Make sure you test all of the main cases (scenarios).          ●    Also think ...
PAReview / Promotion          ●    If you think (of course its a judgement call) that your module is               ready t...
Thanks.http://nikro.me | http://wearepropeople.com
Questions?http://nikro.me | http://wearepropeople.com
Web:     http://nikro.me/    Twitter: nikro_mdhttp://nikro.me | http://wearepropeople.com
Upcoming SlideShare
Loading in …5
×

Showcase building and contributing a module

1,292 views
1,244 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,292
On SlideShare
0
From Embeds
0
Number of Embeds
950
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Showcase building and contributing a module

  1. 1. Showcase - building and contributing a module Nagailic Sergiu | Nikrohttp://nikro.me | http://wearepropeople.com
  2. 2. Content: 1. Inception. 2. Thinking through the concept. 3. Working locally. 4. Working with the Drupal Git Repo. 5. Testing main cases and side cases. 6. Making a PAReview or promoting to a full project. 7. Questions?http://nikro.me | http://wearepropeople.com
  3. 3. Inception ● Research if this can be done via one contrib module. ● Research if this can be done via a bunch of contrib modules. ● Research if there is a clever way of doing that via a small custom module / hack / theming layer. ● Do you think others might use this functionality? Think of possible use cases. ● All aboard, lets start a new generic module.http://nikro.me | http://wearepropeople.com
  4. 4. Thinking through the concept ● Think of most various use cases, that your module could handle. ● Find an elegant way to solve of those cases. ● Be elegant in your approach both for the end-user and from the developers perspective as well. ● Talk to your workmates, check your vision with them, ask them if they agree with you or maybe they have a better vision or just some tips.http://nikro.me | http://wearepropeople.com
  5. 5. First work locally. Define the architecture. ● Use a clean Drupal instance (sandbox) with some basic modules. ● Make sure your basic scenario works as expected. ● Focus on the functionality.http://nikro.me | http://wearepropeople.com
  6. 6. Working with the Drupal Git Repo. ● When youre ready (judgement call), switch from local to Git. ● Prepare the Project page, README.txt file, follow the coding standards (run through the PAReview.sh), etc. ● Put yourself in other developers place, that might want to use your module. Make it easy to use and easy to understand. ● Drupal Git Repo also helps you to contribute from anywhere, if you have some spare time (bar, home, office).http://nikro.me | http://wearepropeople.com
  7. 7. Testing, testing, testing. ● Make sure you test all of the main cases (scenarios). ● Also think of some other ways people might use your module (secondary test cases). ● If you know that your module wont support some cases, write those down as ToDos. Inform your future users that some cases arent yet supported (maybe someone else will help you with those).http://nikro.me | http://wearepropeople.com
  8. 8. PAReview / Promotion ● If you think (of course its a judgement call) that your module is ready to be used by others, either make a Project Application or if you have sufficient permissions, promote it to full drupal project.http://nikro.me | http://wearepropeople.com
  9. 9. Thanks.http://nikro.me | http://wearepropeople.com
  10. 10. Questions?http://nikro.me | http://wearepropeople.com
  11. 11. Web: http://nikro.me/ Twitter: nikro_mdhttp://nikro.me | http://wearepropeople.com

×