A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 9.3KB

4 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. title: Making sense of atomic design: molecules and organisms
  2. url: https://about.futurelearn.com/blog/atomic-design-molecules-organisms/
  3. hash_url: 9c971ab7925db6c5d563c1669861a24d
  4. <p><b>Our Interaction Designer, Alla Kholmatova, reflects on some of the aspects of using atomic design at FutureLearn.</b></p>
  5. <p><img class="alignnone size-full wp-image-62411" src="https://ugc-about.futurelearn.com/wp-content/uploads/01_small.jpg" alt="An atomic design workshop"/></p>
  6. <p><span>A year ago we wrote about </span><a href="https://about.futurelearn.com/blog/pattern-library/"><span>building our first pattern library</span></a> <span>at FutureLearn and why we decided to use </span><a href="http://bradfrost.com/blog/post/atomic-web-design/"><span>atomic design</span></a><span> methodology. Overall, atomic design has worked out well for our team. It has helped us to build a shared understanding of the interface, make a transition towards a more modular system, and evolve our </span><a href="http://alistapart.com/article/language-of-modular-design"><span>design language</span></a><span>.</span></p>
  7. <p><span>While some concepts in atomic design were clear from the start, others felt a bit foggy. For example, one area that we’re still trying to improve our understanding of, is the difference between molecules and organisms.</span></p>
  8. <h2><b>Molecules and organisms</b></h2>
  9. <p><span>Brad Frost defines </span><a href="http://bradfrost.com/blog/post/atomic-web-design/#molecules"><span>molecules</span></a><span> as “groups of atoms bonded together, the smallest fundamental units of a compound”, and </span><a href="http://bradfrost.com/blog/post/atomic-web-design/#organisms"><span>organisms</span></a><span> as “groups of molecules joined together to form a relatively complex, distinct section of an interface”. </span></p>
  10. <p><span>While these definitions may sound simple in theory, we’ve been struggling to understand exactly when a molecule is complex enough to become an organism, the defining difference between the two types, and even why we need both types in the first place. (The CSS part of organisms and molecules are quite similar, wouldn’t it be simpler to just have smaller and larger molecules?)</span></p>
  11. <h2><b>Why have both types</b><b> in the first place?</b></h2>
  12. <p><span>We felt that a separation between molecules and organisms brings (or could potentially bring) three main advantages.</span></p>
  13. <ol>
  14. <li><span>From the </span><i><span>front-end</span></i><span> perspective, organisms are good candidates for separating their HTML parts into partials (molecules are probably too simple for this).</span></li>
  15. <li><span>From the</span><i><span> design</span></i><span> perspective, it helps to understand the design, and see what parts it consists of. It also helps to find the right element quicker to use in your design (for example, “I need a supporting element here to enable sharing of this content, let’s see what we have…”)</span></li>
  16. <li><span>From the </span><i><span>Pattern Library</span></i><span> perspective, it helps to organise the elements and makes them easier to find (at least easier than the one long list we used to have).</span></li>
  17. </ol>
  18. <h2><b>The problem we were trying to address</b></h2>
  19. <p><span>However, there was no shared understanding in the team about what the distinction is exactly. Is it about the visual presentation – for example, size or visual complexity? Is it about the complexity or importance of the content? Is it about the function? What if the content alters the function? And what if the function is relative, depending on the context in which an element appears?</span></p>
  20. <p><span>As a result, we used to spend a long time debating whether something is a molecule or an organism. The debates weren’t always productive, and we couldn’t afford to continue having them.</span></p>
  21. <p><span>So we decided to run a workshop with designers and front-end developers, to see how we could become more efficient in classifying the elements.</span></p>
  22. <h2><b>The workshop</b></h2>
  23. <p><span>As always, we cut the interface elements out on paper (pictured above). We split into small teams and asked each group to sort the interface elements into groups (similar to a card sort), in the way that made sense to </span><i><span>them</span></i><span>, rather than the way they were already organised in the pattern library. The idea was just to see what groupings people would come up with.</span></p>
  24. <h2><b>The results</b></h2>
  25. <p><span>The results of the workshop were fairly inconclusive. The teams classified the modules in a variety of ways and ultimately ended up with different groupings.</span></p>
  26. <p><span>However, there were clearly two distinct types. We all picked up that some modules could be used on their own, while others could only work only as part of another module. For example, these two components are quite different, both on the functional and presentation levels:</span></p>
  27. <p><img class="alignnone wp-image-62421 size-full" src="https://ugc-about.futurelearn.com/wp-content/uploads/02_small.jpg" alt="Two different types of interface element"/></p>
  28. <p><span>The elements in the first group (which the top component represents) have more of a supporting function – let’s call them “helpers”. The elements in the second group are more independent – let’s call them “standalone”.</span></p>
  29. <p><strong>Helpers</strong></p>
  30. <p><span>Helpers don’t make sense on their own. Here are just a few typical representatives of this group. </span><span>In our interface molecules are typically “helpers”.</span></p>
  31. <p><img class="alignnone size-full wp-image-62431" src="https://ugc-about.futurelearn.com/wp-content/uploads/03_small.jpg" alt="Examples of &quot;helper&quot; interface elements"/></p>
  32. <p><strong>Standalones</strong></p>
  33. <p><span>The “standalone” elements can “survive” on their own – they can be viewed as their own self-contained units of content and functionality. Typical representatives of standalone modules on FutureLearn are:</span></p>
  34. <p><img class="alignnone size-full wp-image-62441" src="https://ugc-about.futurelearn.com/wp-content/uploads/04_small.jpg" alt="Examples of &quot;standalone&quot; interface elements"/></p>
  35. <p><span>In our interface, organisms are typically “standalone”.</span></p>
  36. <p><span>So far it makes sense. Molecules primarily support other interface elements. Organisms are primarily self contained and can stand on their own.</span></p>
  37. <p><strong>Helper or standalone?</strong></p>
  38. <p><span>However, many elements fall somewhere in between. The ones that fall in between can in theory belong to either group, depending on two main factors – content and context. Content and context are of course subject to change, which makes it difficult to classify those elements. Here is a  typical example of such module:</span></p>
  39. <p><img class="alignnone wp-image-62451 size-full" src="https://ugc-about.futurelearn.com/wp-content/uploads/05_small.jpg" alt="An example of an element that falls between helpers and standalones"/></p>
  40. <p><span>On the surface this looks like an organism (it’s a fairly complex element which contains a fair bit of content). However, it can’t really stand on its own. It’s not clear what exactly you’re sharing, and which course will start in 2 days. But imagine that we changed the content, gave it a more meaningful title, and referenced the title of the course. Suddenly this module </span><i><span>can</span></i><span> stand on its own.</span></p>
  41. <p><span>Our interface abounds with elements like those, that don’t fall clearly in one of those two buckets. Here’re just a few of them:</span></p>
  42. <p><img class="alignnone size-full wp-image-62461" src="https://ugc-about.futurelearn.com/wp-content/uploads/06_small.jpg" alt="More examples of elements that fall between helpers and standalones"/></p>
  43. <h2><b>The takeaways</b></h2>
  44. <p>Even after a year of working with atomic design there is still no clarity and shared understanding in our team about how interface elements should be classified. But maybe it’s OK. There isn’t always the “right” way to classify and organise things.</p>
  45. <p><span>One thing we learned is that we should be more flexible in deciding which group a module belongs to. Rather than involving the whole team in the debate, the designer and developer who introduce a new module ultimately should decide whether it is a molecule or an organism. The rest of the team should accept their decision, unless they have strong, well-grounded objections.</span></p>
  46. <p><span>When thinking about complexity of elements, it helps viewing molecules as “helpers” and organisms as “standalone” modules. If an element doesn’t clearly fall into either group, asking these questions may help:</span></p>
  47. <ul>
  48. <li><span>Is this </span><i><span>more</span></i><span> of a supporting element or a standalone one?<br/>
  49. </span></li>
  50. <li><span>Would it normally be part of something else and be reused within various components? (probably molecule)<br/>
  51. </span></li>
  52. <li><span>Is</span> it a well defined and relatively independent part or section of a page? (probably organism)</li>
  53. </ul>
  54. <p><b>If you work with atomic design, we’d love to hear </b><b><i>your</i></b><b> thoughts. Do you see the value in separating molecules from organisms? If so, how do you distinguish the two? Tell us in the comments below.</b></p>