4 ms·
I feel your estimate of tokens is a few orders of magnitude off, it’s on the low side. I use more (albeit cached) when centering a div.
by Tinkeringz 2mo ago
I feel your estimate of tokens is a few orders of magnitude off, it’s on the low side.
I use more (albeit cached) when centering a div.
- Hasnep 2mo agoI think they missed a $ sign, i.e. they meant $100k of tokens
- reactordev 2mo ago100k tokens is your pre-prompt and your CLAUDE.md as well as a few files from your root.
- rezonant 2mo agoThis is where we've come to where people proudly proclaim using an AI to do what is a single line of CSS.
- d0mine 2mo ago"centering div" is a classic problem (/trauma/meme) that sounds trivial but had no universal solution (until 2017?).
- rezonant 2mo agoAnd has a dead simple one today. Also worth noting simple horizontal centering of divs was never a problem, margin: auto was defined in CSS Level 1 in 1996 [1]. It was vertical centering that took a very long time to crack, which really became trivial with Flexbox which was first drafted in 2009[2] but became available unprefixed in browsers between 2012 and 2014 [3] about 13 years ago. [1] https://www.w3.org/TR/REC-CSS1-961217 https://www.w3.org/TR/REC-CSS1-961217 [2] https://www.w3.org/TR/2009/WD-css3-flexbox-20090723/ https://www.w3.org/TR/2009/WD-css3-flexbox-20090723/ [3] https://caniuse.com/flexbox https://caniuse.com/flexbox Subnote: I'm not counting the display: table hacks.
- moralestapia 2mo agoWhat a great joke. I will have to steal it for an upcoming AI tools meeting I have at work. Also, pretty clever as centering a div w/ CSS has been notoriously difficult to achieve.