Live data from Hacker News

Hardest problem in computer science: centering things

tonsky.me

411–420 of 473 posts

Re: Hardest problem in computer science: centering things

#411
post #165

Earlier quoted context omitted.

> I think it adds a little soul to it that will make me happy down the years. The word for this is wabi-sabi.

My OCD self: "At last, I found you, wabi-sabi , my archnemesis".

Be careful, if you defeat wabi-sabi, next you'll have to face a boss fight with wu wei.

Re: Hardest problem in computer science: centering things

#412
post #193

Earlier quoted context omitted.

I have this with grammar. When I read modern websites, articles, papers, emails from HR, etc. with their sloppy English and comma-splices everywhere, it annoys me way too much and it's a real challenge to push on through and keep reading. It feels like walking through a maze, with an uneven floor and bad lighting, full of dead-ends, compared to walking down a pleasant, well-lit corridor.

This is spot-on. HR is bad, but at least writing is not their main job, so I'm willing to cut them some slack. My main concern is the writing I see coming out of the Public Relations and Communications departments. Writing is not exactly tangential to those fields. It wasn't always this way. What has happened?

It feels like there is a whole lot more cronyism and nepotism than I remember 20 years ago.

I am observing a lot of people in high paying jobs who don't have a clue how to do even the basics of their job (like being able to type proficiently in a job that requires written documentation).

Re: Hardest problem in computer science: centering things

#413
post #295

Earlier quoted context omitted.

Hi I heard you might like to learn about keming.

I wish I had never heard of kerning! I wasn't even aware that I was sensitive to kerning issues until this abomination came into my house: https://th.bing.com/th/id/OIP.bdzKtgJ5MkGpA5iutzfTxQAAAA?rs=... Now, whenever I see that thing, I feel a sudden urge to throw it out of the window...

Do it! You have our support.

Re: Hardest problem in computer science: centering things

#414
post #345

Earlier quoted context omitted.

Is accessibility for the visually impaired a cult? How could Google even work if content could not be seperated from its visual presention?

Google never had a problem working with content that was blended with it's visual presentation. They literally doesn't care. They crawl anything even pdf and other non-html content. The semantic web was born from a belief that it would enable a peer to peer web that never materialized. Accessibility was better solved by aria annotations a long time ago and the semantic web was never going to properly solve it.

FWIW, it's hard for a peer to peer web to materialize, where the web is almost entirely built and funded by entities who very much don't want a peer to peer web, and in fact actively fight it.

Re: Hardest problem in computer science: centering things

#415
post #409

Earlier quoted context omitted.

Sorry are you saying ‘display:table’ was not viable for grid-like layouts because someone might confuse it with the html tag? That is like saying Go is not a viable programming language because someone might confuse it with GOTO and consider it harmful.

I'm saying that CSS has always had really confusing messaging around what is considered good practice and what is considered bad. If CSS had actually had the equivalent of Go's stdlib and documentation with well established good practices that were pragmatic we would be having a very different conversation right now.

[deleted]

Re: Hardest problem in computer science: centering things

#416
post #297

Earlier quoted context omitted.

Funny thing is that it still easier, even today, to use a frameset rather for header, sidebar and main area rather than fiddle with the new grid system.

Are framesets even supported in modern browsers? They have been removed from the html standard.

They are still supported and works perfectly fine still. Remember that browsers supports different DOCTYPEs (HTML5, XML, HTML4 strict and non strict etc) and they are not going away anytime soon, probably thousands and thousands web sites out there that doesn't implement HTML5 and never will.

Frameset is deprecated in HTML5, but your index page can be of the older frameset DOCTYPE and each frame valid HTML5 page with a declaration. This is why frames (and iframes) are actually great because you can mix old an new.

    
    
    
        My page
    
    
        
        
            
            
        
        
    
    

e.g main.html

    
    
        
            main
        
        
            main
        
    

Re: Hardest problem in computer science: centering things

#417
post #98

Earlier quoted context omitted.

The same happens when you: - Install flooring - Install trim in your own home - Build / install cabinets You will now see: - Odd flooring patterns and uneven floors - Know what it looks like when trim isn't coped - Uneven gaps between doors

I’ve noticed these things all my life. Even as a young child I would point such things out and others would have trouble seeing it. Once I was diagnosed with autism, this tendency of mine made a lot more sense. I’m curious if other people detect interrupted or irregular patterns so readily. It’s like there’s a part of my brain just looking for anomalies and I can’t turn it off.

My overconfident understanding is that "regular people" notice a "regular" amount, but let themselves forget about or ignore a "regular" amount of what they found. People with Autism are less able to let go of what they find, and often struggle with over-stimulation from it. People with ADHD start at an under-stimulated baseline, are instinctively looking for too much, and often overcompensate; which leads to a similar over-stimulation.

Re: Hardest problem in computer science: centering things

#418
post #72

That's because CSS layout was designed by people who thought "float" and "clear" were a good idea, tables were bad, and, when in doubt, make it Turing-complete and dump the problem on someone else. 2D and 3D tools get this right. CAD programs, game engines, and animation programs are all far better at positioning things. They have far better layout engines and constraint systems. This is really a constraint problem.…

The difference is (literally) semantics.

What design tools express in UI/UX interaction, CSS must express in context-free grammar. It's every bit as awkward as replacing verbs with nouns.

Re: Hardest problem in computer science: centering things

#419
post #267

Earlier quoted context omitted.

Yes, and let’s not forget fallback fonts. So rules for each browser and OS and each font class and each layout (desktop, tablet, mobile). Probably on the order of 100 rules for a single style. Yeah, we’re just being lazy. We need sane font rendering in browsers that treat things like alignment in a way that we’d expect for the 99% case. If I say “center” it should just fucking center.

That’s not true though. You don’t need different styles for text on different platfroms. They all work the same

[deleted]
Post reply on HN