Duration : 01:37:11
In this text, the speaker reflects on their approach to writing CSS in the past and how it led to unmaintainable code. They describe how they started consuming content on writing CSS and came across an article by Nicholas Gallagher. Gallagher argued that reusable components should have class names independent of the content, focusing on visual patterns rather than descriptive block names. This idea challenged the speakers belief that putting presentational information in HTML was wrong and led them to start treating CSS as a separate entity, sacrificing purity in HTML and focusing on making CSS maintainable. They began using more generic class names and breaking up classes to make components more reusable.