Get the latest tech news
Traps to Developers
A summarization of some traps to developers. There traps are unintuitive things that are easily misunderstood and cause bugs.
It's recommended to specify width and height attribute in<img> to avoid layout shift due to image loading delay. See also In MySQL (InnoDB), if string field doesn't have character set utf8mb4 then it will error if you try to insert a text containing 4-byte UTF-8 code point. In PostgreSQL, if in repeatable read level, application checks using select ... for update then insert, it's not sufficient to enforce constraint under concurrency (due to write skew).
Or read this on Hacker News