Holy Grail! I Found a Bug in the Sort Function!

2025-02-24
Holy Grail! I Found a Bug in the Sort Function!

The author recounts an incredible experience in his years of programming: he found a bug in JavaScript's built-in `sort()` function! This bug caused incorrect sorting results, baffling him for a long time. Eventually, he reported the bug to the Code Studio team, who responded quickly and fixed it. This story vividly illustrates that even seemingly perfect system software can have bugs, and programmers should maintain a skeptical mindset, persistently searching for the root cause of problems instead of blindly blaming the compiler or system.

Read more
Development sort function

Lost Nicknames and the Origins of Surnames

2025-02-10
Lost Nicknames and the Origins of Surnames

Many English surnames derive from patronyms, often nicknames. For example, "Jackson" comes from "Jack" (a nickname for John). This article explores numerous now-obscure nicknames and their resulting surnames, such as "Wat" (a nickname for Walter) yielding "Watts," "Watson," "Watkins"; "Gib" (a nickname for Gilbert) yielding "Gibbs," "Gibson"; and "Hob" (a nickname for Robert) yielding "Hobbs," "Hobson," "Hobkins." The author invites further examples and adds the nickname "Hick" (for Richard) and its derivatives, and speculates on "-mott" possibly indicating an in-law.

Read more