SANDCamp 2013         Beginning Drupal Development           Meghan Sweet (@meghsweet)          26 January 2013Saturday, J...
How do you learn                                Drupal?Saturday, January 26, 2013
Sometimes things are                   really easy.Saturday, January 26, 2013
Sometimes things are                   really hard.Saturday, January 26, 2013
Choosing Modules       Stand on the Shoulders of Giants        - Assess the project page        - Read the README file (be...
http://drupal.org/project/views/Saturday, January 26, 2013
Where does Contributed code live?      Put all contrib modules in        ../sites/all/modules/      OR      ../sites/all/m...
What do you need in your toolbox?       HTML / CSS / Javascript / PHP       A good code editor       Firebug or Chrome Ins...
Development Environment       Work locally!! No more FTPing       Use version control to push changes.       Drush is your...
Development Workflow       Development Environment- Dev > Test > Live       Where do your clients QA?       Use Version co...
The “Drupal Way”?Saturday, January 26, 2013
Site Development Plan                                  Typical Drupal SiteSaturday, January 26, 2013
A complex system that works is      invariably found to have      evolved from a simple system      that worked...       G...
Build features zoomed             in, then pull back and                see how it all fits                    together.Sa...
Write a development plan        Forces you to think through your architecture        and implications of decisions        ...
Structure Content        Break up your content into the pieces you want        control over.        Important in mobile th...
Feature Development         Its essentially three steps, rinse and repeat.         1) Build a content type         2) Buil...
Slow Site?Saturday, January 26, 2013
Common Client-side        Performance Pitfalls         Look for the obvious first:         -Are you caching?         -Are ...
Theming!                             Where everything can be overridden.                               Oh the power and th...
There is no "best"                                  theme.                                    -@ruplSaturday, January 26, ...
Where to start        Develop a theming strategy and find        a theme to match        - ‘Starter’ themes        - Base ...
Control your layout through         configuration           Panels, Panelizer, Panopoly           Context           Omega ...
Advancing Theming           Its all about Overriding           Configuration -> CSS -> PHP           Keep it clean and org...
You can give back to the               community.Saturday, January 26, 2013
Coding Standards         -Don’t Hack Core! It may seems like a good idea now, but its         not.         - Comment heavi...
GIT Standards         - Commit often, and do single-issue commits         - Write good commit messages, use real english a...
Pay it forward        - Participate in the issue queue and documentation.        - If you use a patch (regardless of wheth...
Learn More            Books                                 Camps and Cons            Training                            ...
Thank You!                             @meghsweet                              @chapter_threeSaturday, January 26, 2013
Upcoming SlideShare
Loading in...5
×

Sand camp beginner drupal development

347

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
347
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sand camp beginner drupal development

  1. 1. SANDCamp 2013 Beginning Drupal Development Meghan Sweet (@meghsweet) 26 January 2013Saturday, January 26, 2013
  2. 2. How do you learn Drupal?Saturday, January 26, 2013
  3. 3. Sometimes things are really easy.Saturday, January 26, 2013
  4. 4. Sometimes things are really hard.Saturday, January 26, 2013
  5. 5. Choosing Modules Stand on the Shoulders of Giants - Assess the project page - Read the README file (believe me) - Check the issue log - When in doubt, ask aroundSaturday, January 26, 2013
  6. 6. http://drupal.org/project/views/Saturday, January 26, 2013
  7. 7. Where does Contributed code live? Put all contrib modules in ../sites/all/modules/ OR ../sites/all/modules/contrib Put all custom modules in ../sites/all/modules/custom Put all themes in ../sites/all/themesSaturday, January 26, 2013
  8. 8. What do you need in your toolbox? HTML / CSS / Javascript / PHP A good code editor Firebug or Chrome Inspector Drush Drupal Community Willingness to break thingsSaturday, January 26, 2013
  9. 9. Development Environment Work locally!! No more FTPing Use version control to push changes. Drush is your friend You won’t regret learning command line tools Be equipped to browser testSaturday, January 26, 2013
  10. 10. Development Workflow Development Environment- Dev > Test > Live Where do your clients QA? Use Version control to push to production - great for rolling back changes - great for multi-developer environments Code vs Content, do smart migrations Set up a workflow to push to productionSaturday, January 26, 2013
  11. 11. The “Drupal Way”?Saturday, January 26, 2013
  12. 12. Site Development Plan Typical Drupal SiteSaturday, January 26, 2013
  13. 13. A complex system that works is invariably found to have evolved from a simple system that worked... Galls LawSaturday, January 26, 2013
  14. 14. Build features zoomed in, then pull back and see how it all fits together.Saturday, January 26, 2013
  15. 15. Write a development plan Forces you to think through your architecture and implications of decisions Makes it a lot easier to build quickly- ex: grab all your modules at once, understand content and layout dependencies Build, then theme 90% of the way there is often enough - Don’t be afraid to talk to your clients and get to the heart of business needsSaturday, January 26, 2013
  16. 16. Structure Content Break up your content into the pieces you want control over. Important in mobile theming- content first Consider your admins and your visitors. Good content is user-centered Adopt the cognitive frameworks of your users -ERIN KISSANESaturday, January 26, 2013
  17. 17. Feature Development Its essentially three steps, rinse and repeat. 1) Build a content type 2) Build a view 3) Build a layout (Theme)Saturday, January 26, 2013
  18. 18. Slow Site?Saturday, January 26, 2013
  19. 19. Common Client-side Performance Pitfalls Look for the obvious first: -Are you caching? -Are you aggregating your CSS? -Are the images huge? These are stupidly easy wins :)Saturday, January 26, 2013
  20. 20. Theming! Where everything can be overridden. Oh the power and the danger...Saturday, January 26, 2013
  21. 21. There is no "best" theme. -@ruplSaturday, January 26, 2013
  22. 22. Where to start Develop a theming strategy and find a theme to match - ‘Starter’ themes - Base Themes - Responsive Theming - Click-to-ConfigSaturday, January 26, 2013
  23. 23. Control your layout through configuration Panels, Panelizer, Panopoly Context Omega Display SuiteSaturday, January 26, 2013
  24. 24. Advancing Theming Its all about Overriding Configuration -> CSS -> PHP Keep it clean and organized Keep a custom module for small stuffSaturday, January 26, 2013
  25. 25. You can give back to the community.Saturday, January 26, 2013
  26. 26. Coding Standards -Don’t Hack Core! It may seems like a good idea now, but its not. - Comment heavily! You’ll thank yourself later. - Before you do something, consider if you can make it easier to understand. Writing code for yourself is a bad idea. - Use descriptive classes - http://drupal.org/coding-standards - http://drupal.org/project/coder will check for you - http://drupal.org/project/examplesSaturday, January 26, 2013
  27. 27. GIT Standards - Commit often, and do single-issue commits - Write good commit messages, use real english and reference outside information (ticket number, Drupal.org issues) - Remove things you don’t need with a proper commit, don’t just comment them outSaturday, January 26, 2013
  28. 28. Pay it forward - Participate in the issue queue and documentation. - If you use a patch (regardless of whether it works or fails), comment on the issue. - If you write a patch, post it. - Write documentation and blogSaturday, January 26, 2013
  29. 29. Learn More Books Camps and Cons Training IRC Documentation Spirit of willingness, giving Blogs back and helping each other Videos MeetupsSaturday, January 26, 2013
  30. 30. Thank You! @meghsweet @chapter_threeSaturday, January 26, 2013
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×