The coding articles collection contains curated stories, tips, questions and answers on a wide variety of topics. The main focus of these articles revolves around the languages and technologies presented in snippets, as well as career advice and lessons.
Using Document.elementFromPoint()
to easily get the element at a specific point on the page.
JavaScript, Browser · Dec 18, 2022
Avoid the naive approach and use a more robust method to edit URL parameters in JavaScript.
JavaScript, String · Dec 7, 2022
Locale-sensitive string splitting and truncation are finally possible in JavaScript.
JavaScript, String · Dec 4, 2022
The currentColor
CSS keyword is a nifty alternative to custom properties for simple use cases.
CSS, Visual · Nov 30, 2022
You might have heard that line-height
should be unitless, but do you know why?
CSS, Layout · Nov 27, 2022
A short summary of your story up to 180 characters long.
CSS, Visual · Nov 23, 2022
A quick reference for inherited CSS properties.
CSS, Layout · Nov 20, 2022
A custom data structure to keep track of value frequencies in an array.
JavaScript, Class · Nov 13, 2022
A collection of regular expressions that can be used to solve common problems.
JavaScript, String · Nov 9, 2022
Make sure to use the correct method when checking if a JavaScript object is an array.
JavaScript, Type · Nov 6, 2022
Dynamically adding object properties can be pretty slow in some cases. Here's how to optimize it.
JavaScript, Object · Nov 2, 2022
Make sure the footer stays at the bottom of the page, instead of floating up when the content is too short.
CSS, Layout · Oct 30, 2022
Did you know that the delay of setTimeout()
and setInterval()
is merely a suggestion?
JavaScript, Browser · Oct 26, 2022
Here's a quick and easy way to select the currently focused DOM element in JavaScript.
JavaScript, Browser · Oct 23, 2022
A short, opinionated CSS reset to make your websites look great everywhere.
CSS, Visual · Oct 16, 2022