How to split arrays into equal-sized chunks
JavaScript does not provide a function to split arrays into several smaller arrays. Let’s build one ourselves.
A directory of brand guidelines: logosearch.link
I write about design, development, and productivity. My weekly newsletter contains many more and usually shorter pieces. Read all previous issues in the archive.
JavaScript does not provide a function to split arrays into several smaller arrays. Let’s build one ourselves.
In utility-first CSS, many classes are very similar. We can auto-generate many of them using maps and loops in Sass.
Many mockups break when we replace their lorem ipsum with real data. By using imperfect images and texts in them, we can design more robust layouts.
Adding a single sentence to our tickets helps us focus on what is important. Let’s explore what goes into a good user story.
In software development, seniority has nothing to do with age. When can someone be considered “senior”?
The array functions are great for all kinds of problems. But what happens when you forget to specify reduce’s second parameter?
You know a lot of things others don’t. Help them by sharing what you know, no matter how easy or obvious you might think it is.
How do we decide between hundreds of libraries? When does it make sense to build your own version instead?
Camouflaged as a pleasantry, we can show appreciation much more effectively than through using “that’s not bad”.
Grouping unit tests and the code they test is much more maintainable than keeping them in separate directories.
Trends make defining a product’s visual appearance easier, but they also make it harder for you to stand out.
When working in technology, we can do a great many things. Some of them are absolutely not worth doing.
The word “should” is often completely unnecessary. Avoiding it makes your language more direct and assertive.
Just as gender is not “true” or “false”, Boolean values are not appropriate for situations in which we assume only two options exist.
Color variables defined with CSS preprocessors are easier to manage if we map them to semantic names first.
The &-operator in Sass can greatly reduce the typing work required when using BEM in your stylesheets.
The current versions of Node.js and grunt-contrib-sass don’t work together. Downgrade Node.js to an earlier version to avoid the issue.
I recently published my first screencasts on programming. In the process, I learned a few first things about creating info products.
Looking at the official statistics of a recent exam, the numbers aren’t as positive as they are made out to be.
A well-intentioned but ultimately unfair move by a lecture’s organizers inspired me to record a number of screencasts on functional programming.
The common approach to teaching development is rarely tailored to newcomers, which results in high failure and dropout rates.
Aside from the established best practices for reducing load times, a few things that can be done to stylesheets to make browsers render pages faster.
Understanding the concept behind how browsers match CSS-selectors and HTML helps us write better stylesheets.
After installing SML/NJ on OS X with Homebrew, you still need to make a few manual changes to make them play together nicely.
Installing SML/NJ on OS X manually is difficult and annoying. Homebrew enables a much easier hassle- and clutter-free installation.
I was inappropriately quoted on the death of a former colleague after an inconsiderate tweet was unfortunately picked up by journalists.