Victor Ayomipo saw our post about using container units for everything. He was more optimistic than I that our result was good. My thinking is that there are plenty of things you straight up don’t want to use container units for. Victor did a similar exercise with (over?)-using min()
and viewport units. Turns out there are lots of niceties, and I agree that min()
is underused, but that you still can’t dogmatically say one particular sizing approach is always best. Personally, I’m rocking min()
for container “width”, like .wrapper { inline-size: min(300px, 100dvw);
on the regular now.
Java Optionals
The post discusses the drawbacks of null references in programming and introduces the Optional type as a solution, particularly in Java. The Optional type helps avoid null reference exceptions by allowing safe interaction with absent values using methods like ifPresent, ifPresentOrElse, map, and flatMap.