Skip to content

"Doing it wrong" – Larva Code Smells

Lara Schenck edited this page Apr 23, 2020 · 1 revision
  • Writing new CSS (excepting algorithms that are for specific purposes and named according to functionality)
  • Writing HTML in PHP files (excluding template-level wrapping markup)
  • Modules including modules
  • Components including components or objects
  • Variants extending more than one variant (e.g. o-tease.special extending o-tease.secondary that extends o-tease.primary that extends o-tease.prototype)
  • String and any array manipulation JS in prototypes e.g. .replace, .push, .pop, or bracket syntax
  • Any JS in prototypes that is fancier than replacing a value in the pattern object