Hacker News new | ask | show | jobs
by steve_adams_86 929 days ago
Another thing is that they’re saying the animation is causing the entire page to reflow because it’s a square rotating out of bounds

My understanding is that transforms can’t cause reflows because they occur in the compositing layer. And as a sibling comment points out: everything round in css is actually a rectangle. Unless it’s a path drawn in an svg element. But then that lives in a rectangular frame. You could animate it with svg, though.

Regardless, I want to say I reject the premise here. I’m not sure why a transform would be so inefficient. I have a feeling it could be something else at work here.

2 comments

Not to super rag on this person, but wow some of the other articles on their website...

They have an article on "cracking the hackerrank test" that straight up advocates for cheating on screeners companies are starting to do through hackerrank. I'm not about to claim that these tests are at all good at measuring your skill as a developer, but I would much rather a candidate engages with the process honestly than openly brags about cheating.

I didn’t see that one. If I saw someone publicly describe being dishonest in an interview process, I think I’d have to rule them out by default.

I know not everyone is perfectly honest all the time. But if you advertise cheating a process meant to reveal rather than conceal information, there’s a real problem.

> I’m not sure why a transform would be so inefficient

Last i asked, if you change a (1) pixel on a modern computer, you need to redraw the screen because it's a surface which is being updated.