orangegreen
Joined 5 years ago
Joined 5 years ago
Fortunately tooltips are pretty easy to make these days. You don't need Javascript at all to make a nice tooltip. But again, it's a tooltip - it's been done so many times before that it'd be nice to have a native browser version.
There appears to be some kind of concern that this will put people in their own subscription bubbles. Please. Having a subscription to your city's newspaper or subscribing to a documentary streaming service is a far healthier way of ingesting content than getting put into algorithmic engagement bubbles via social media.
To be fair, most print newspapers were subsidized not necessarily by costing money or traditional advertising, but by classified advertising. Maybe news sites can figure out classifieds next.
Moving CSS into HTML does not makes much sense either, as it's far stylistically cleaner to separate CSS and HTML into their respective files.
Plus, if you have two elements with the same or similar styling, re-writing all those utility classes over and over seems extremely cumbersome. Why not just write the class name and use it everywhere it needs to be used? .button or .button-primary is far simpler than writing out inline CSS over and over again.
I've been making an app with React Native and react-native-svg and even though react-native-svg supports transformations, I've had to do a lot of transforms with trigonometry (i.e. rotating a shape around a center point, then getting the new bounding box, which requires things such as Math.atan2).
It's made me really appreciate 1. how much easier front end web development is and 2. how far we've gotten. I cannot tell you how much I appreciate web methods like getBoundingClientRect() or element.closest(), and how easy it is to make animations with CSS and move things around with transforms.
This is the TED Talk you're talking about.
I like HTML tables but getting them to do what you want can really be tricky.
Check out my table: https://caldwell.org/projects/data/city-index