top | item 40055315

Hardest Problem in Computer Science: Centering Things

13 points| ohadron | 1 year ago |tonsky.me

7 comments

order

chrisjj|1 year ago

> We, developers, can only mathematically align perfect rectangles.

I've heard that really clever devs can do circles too...

PaulHoule|1 year ago

Except for Adobe (in the case of PDF) where they can only draw Bézier curves.

kevincox|1 year ago

The worst part about this is that it requires knowing the font. I generally like to let users use their preferred don't so I don't change the default. So I have no hope.

paulpauper|1 year ago

CSS , tables, and mobile browsers ... shudders

sylware|1 year ago

Looking at implementing my own wayland compositor (finally)... the thought of centering windows properly...

h2odragon|1 year ago

mouse pointer bugs ugh

now im tempted to copy the trick