“Heap, heap, array!”
Programming is inherently practical: it is the process of turning vague thoughts into precise and concise algorithms that can be repeatedly executed by a dumb computer, autonomously. It can also be a creative and intrinsically rewarding endeavour however. It’s tinkering, digital handicraft with unlimited saves, reloads, and undos. In other words: it’s fun – except when things don’t work the way you want them to. “Heap, heap, array!” tells you everything you need to know about the good, the bad, and the ugly parts of programming.
What’s new“Heap, heap, array!”
Finding the most common words in a set of texts for a word cloud
Suppose that someone walks over to your desk and asks you to create a word cloud from some news articles. The sensible thing to do here would be to tell them that “word clouds are very 2006 and people who still use them should be shot”. You don’t want to come off as rude however, so you agree to help them.“Heap, heap, array!”
(Not) looping over lists in PHP
This is a lazy blog post for people who are too lazy to browse through PHP’s array function documentation. I’ll show three methods that help you create new lists or values based on an existing list: array_map(), array_reduce(), and array_filter().“Heap, heap, array!”
Datetime formatting in Go
time package takes a novel approach to defining datetime serialisation formats. Is it an improvement over existing alternatives?