In this article we'll build a toy version of a string searching
program solely for the purposes of education. The intention is not
to fully replicate the grep tool (and this post actually explains a
different algorithm to the one grep uses). What we'll build will
almost certainly be slow and incomplete (but fun!).
This article describes the many design decisions that go into
creating a fast, general-purpose hash table. It culminates with a
benchmark between my own emilib::HashSet and C++11's
std::unordered_set. If you are interested in hash tables and
designing one yourself (no matter which language you are programming
in), this article might be for you.
Let's create a floating label input with HTML and CSS only
Floating label input is an element that visually combines an input
label and the input itself into a single element. Label switches
from placeholder mode to label when input is focused or has content
in it. This concept has been first introduced by Matt
D. Smith in 2013 and it has
become a widespread pattern since then, even becoming a standard
element in Google's Material Design.