34
Is it true that my slide template is best? Monday, July 15, 13

Drupal Problem-Solving Techniques

  • View
    1.383

  • Download
    3

Embed Size (px)

DESCRIPTION

http://www.nyccamp.org/problem-solving-drupal-sites

Citation preview

Page 1: Drupal Problem-Solving Techniques

Is it true that my slide template is

best?

Monday, July 15, 13

Page 2: Drupal Problem-Solving Techniques

Co-founder / CTO

Drupal Genie

Jody Hamilton

Monday, July 15, 13

Page 3: Drupal Problem-Solving Techniques

Have you ever played 20

questions?

Monday, July 15, 13

Page 4: Drupal Problem-Solving Techniques

ReproducingScopingArticulatingResearchingExperimentingHackingRefiningShippingBilling

Steps to Solve a Problem

Monday, July 15, 13

Page 5: Drupal Problem-Solving Techniques

I can reproduce the problem.

Reproducing

Monday, July 15, 13

Page 6: Drupal Problem-Solving Techniques

I have tried to narrow the problem.

I have tried to broaden the problem.

I know the scope of the problem.

Scoping

Monday, July 15, 13

Page 7: Drupal Problem-Solving Techniques

Is your problem visual in nature?

Monday, July 15, 13

Page 8: Drupal Problem-Solving Techniques

Can you reproduce your

problem in a different browser?

Monday, July 15, 13

Page 9: Drupal Problem-Solving Techniques

Does your problem relate

to data?

Monday, July 15, 13

Page 10: Drupal Problem-Solving Techniques

Does your problem interact

with caching?

Monday, July 15, 13

Page 11: Drupal Problem-Solving Techniques

Is your problem new?

Monday, July 15, 13

Page 12: Drupal Problem-Solving Techniques

Can you reproduce the problem with

javascript disabled?

Monday, July 15, 13

Page 13: Drupal Problem-Solving Techniques

Can you reproduce the problem in a

different theme?

Monday, July 15, 13

Page 14: Drupal Problem-Solving Techniques

Can you reproduce the

problem with a different user

role?

Monday, July 15, 13

Page 15: Drupal Problem-Solving Techniques

Can you reproduce the

problem on another page?

Monday, July 15, 13

Page 16: Drupal Problem-Solving Techniques

Can you reproduce the

problem on last week’s codebase?

Monday, July 15, 13

Page 17: Drupal Problem-Solving Techniques

Can you reproduce the

problem locally?

Monday, July 15, 13

Page 18: Drupal Problem-Solving Techniques

Can you reproduce the

problem if you turn off a module?

Monday, July 15, 13

Page 19: Drupal Problem-Solving Techniques

Can you reproduce the

problem if you turn off

aggregation?

Monday, July 15, 13

Page 20: Drupal Problem-Solving Techniques

Can you reproduce the

problem on the dev version of the module?

Monday, July 15, 13

Page 21: Drupal Problem-Solving Techniques

Can you reproduce the problem when

you bypass Varnish?

Monday, July 15, 13

Page 22: Drupal Problem-Solving Techniques

Is the problem possibly related

to input formats?

Monday, July 15, 13

Page 23: Drupal Problem-Solving Techniques

Does the problem have a human shape?

Monday, July 15, 13

Page 24: Drupal Problem-Solving Techniques

I have rephrased the problem IN WRITING.

I have a timebox for looking into the issue.

Articulating

Problem: Users with the Editor role do not see fields for Title and Alt Text after uploading an image to the Media library in WYSIWYG. Admins do see the fields currently.

Goal: Both Editors and Admins should see the fields.

Monday, July 15, 13

Page 25: Drupal Problem-Solving Techniques

Monday, July 15, 13

Page 27: Drupal Problem-Solving Techniques

I have proven or disproven hypotheses .

I have determined the cause of the problem and written it down.

Experimenting

The problem is due to the og_moderation module not being compatible with the diff module.

Monday, July 15, 13

Page 28: Drupal Problem-Solving Techniques

I have a rough fix.

I have recorded the hack.

Hacking

By hacking the diff module I can eliminate the problem.

Monday, July 15, 13

Page 29: Drupal Problem-Solving Techniques

I have fixed the problem responsibly.

I’ll never have this problem again.

Refining

Monday, July 15, 13

Page 30: Drupal Problem-Solving Techniques

The fix is deployed.

Shipping

Monday, July 15, 13

Page 31: Drupal Problem-Solving Techniques

All interested parties have been informed.

Billing

Monday, July 15, 13

Page 32: Drupal Problem-Solving Techniques

LinuxApacheMySQLPHP

The Stack of Problems

Drupal code: core, contrib, custom, config

HTMLCSSJSBrowserPEBKAC

Monday, July 15, 13

Page 33: Drupal Problem-Solving Techniques

Write down everything.

Bad assumptions are costly.

Watch out for rabbit holes.

Isolate issues.

Take breaks.

Take Aways

Monday, July 15, 13

Page 34: Drupal Problem-Solving Techniques

Peer review & manual testingAutomated testingZero toleranceLog gardeningGitConsistent environmentsPractice Safe Contrib

How to Have Fewer Bugs

Monday, July 15, 13