Live data from Hacker News

Don't attach tooltips to document.body

atfzl.com

61–70 of 98 posts

Re: Don't attach tooltips to document.body

#61
post #59
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

I am trying to implement drag and drop of raw text and html (html is mostly Vue components) inside contenteditable="true" to move it around. Like in a WYSIWYG editor. It is insane how complicated this is. Then you need to consider the differences between browsers. Ultimately you have to start using a library. And integrate that library with the framework and then hope that the framework won't have a major technical o…

It feels weird to me that you are complaining about the complexity of WYSIWYG editors then proceed to complain the licensing cost of CKEditor which would have solved that very complexity. Wouldn't that mean the complexity of WYSIWYG editors is so high that such a business model works?

Re: Don't attach tooltips to document.body

#62
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

This perfectly encapsulated why I LOVE web development.

You can debug one of the most complex softwares in the world (a browser) so effectively you can understand what you did wrong and fix it.

Re: Don't attach tooltips to document.body

#63
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

Not even a bug, it's one of the inner working things you may or may not know about. I see it more than a trap than a bug. Honestly, there are other parts of IT that have it, the most familiar to me is SQL where you can run the same query in 10 seconds or 20 milliseconds and only experienced DBAs can tune it properly, in many cases without touching the query itself.

Re: Don't attach tooltips to document.body

#65

Earlier quoted context omitted.

It's noticeable if something is moving because that won't look smooth. But a 80ms delay will be very hard to notice. An average reaction time is around 300ms. With all the downvotes I'm getting I might be missing something though :P

> An average reaction time is around 300ms. just because human's reactions are slow, does not mean that humans do not notice. In music it's routine to have people complain when latency goes above 15 ms and it was recently shown that humans could notice in some physiological way down to half a millisecond of latency.

Do you have a source for the half a millisecond part?

Just curious

Re: Don't attach tooltips to document.body

#66
post #65

Earlier quoted context omitted.

> An average reaction time is around 300ms. just because human's reactions are slow, does not mean that humans do not notice. In music it's routine to have people complain when latency goes above 15 ms and it was recently shown that humans could notice in some physiological way down to half a millisecond of latency.

Do you have a source for the half a millisecond part? Just curious

https://www.aalto.fi/en/news/the-human-ear-detects-half-a-mi...

Re: Don't attach tooltips to document.body

#67
post #59
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

I am trying to implement drag and drop of raw text and html (html is mostly Vue components) inside contenteditable="true" to move it around. Like in a WYSIWYG editor. It is insane how complicated this is. Then you need to consider the differences between browsers. Ultimately you have to start using a library. And integrate that library with the framework and then hope that the framework won't have a major technical o…

The time you’ll spend building it yourself is worth less than 37 USD?

Re: Don't attach tooltips to document.body

#68
post #59
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

I am trying to implement drag and drop of raw text and html (html is mostly Vue components) inside contenteditable="true" to move it around. Like in a WYSIWYG editor. It is insane how complicated this is. Then you need to consider the differences between browsers. Ultimately you have to start using a library. And integrate that library with the framework and then hope that the framework won't have a major technical o…

Its only complicated if your HTML is modified HTML.

Re: Don't attach tooltips to document.body

#69
post #59
post #22

... this post perfectly encapsulates why I hate web development. A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.

I am trying to implement drag and drop of raw text and html (html is mostly Vue components) inside contenteditable="true" to move it around. Like in a WYSIWYG editor. It is insane how complicated this is. Then you need to consider the differences between browsers. Ultimately you have to start using a library. And integrate that library with the framework and then hope that the framework won't have a major technical o…

Have you looked at TipTap 2? Sounds like it might fit the bill for you!

Re: Don't attach tooltips to document.body

#70

... Next steps are paint and composting ... That step seems unrelated

They also weren't discussed. Only mentioned for completeness' sake.

I mean it’s a typo.

Look up “composting”.

I was just joking, the article is excellent.

Post reply on HN