Nzubechukwu.
← All posts
Software engineering5 min read

CSS taught me more about engineering than I expected

Specificity, inheritance, and the cascade are systems thinking in disguise. Understanding CSS made my other code better.

By Nzubechukwu Cyprian · Pharmacy student at UNN, full-stack developer

Generative cover art for the post “CSS taught me more about engineering than I expected”

CSS has a reputation as the joke of the stack, and I bought it for years — until building real interfaces forced me to actually understand it. Now I think it's one of the better teachers of systems thinking available to a developer.

What CSS quietly teaches

Global effects of local decisions. One rule can cascade through a whole page. So can one dependency, one schema change, one renamed field. CSS is where you first feel that nothing in a system is local.

Specificity as a cost model. Every !important is borrowed clarity from the future. That's true of hacks in any language. The cascade taught me to ask: who wins when two rules disagree, and is that answer designed or accidental?

Constraints breed architecture. Utilities, components, layers — every serious CSS methodology exists because someone lost a week to stylesheet chaos. Same story with code architecture, same lesson.

The practical payoff

When I stopped fighting CSS and started reading it as a system — inheritance, stacking contexts, containment — my interfaces got better and my frustration died. The same shift happened later with state management, caching, and databases.

The lesson generalises: any system you don't respect will punish you on its own terms. CSS just punishes faster.

Nzubechukwu Cyprian studies Pharmacy at the University of Nigeria, Nsukka and builds software, products, and AI experiments in between.