Writings

Adam Giese - Writings

LogRocket Blog

Beyond cookies: Today’s options for client-side data storage

When they were first introduced, cookies were the only way for a browser to save data. Since then, there have been new options added — the Web Storage API, IndexedDB, and the Cache API among them.

Read More

CSS-Tricks

Level up your .sort game

Sorting is a super handy JavaScript method that can display the values of an array in a certain order.

Read More

LogRocket Blog

How to manipulate CSS colors with JavaScript

Colors are an integral part of the web. Breaking down colors into their attributes allows for the smart manipulation of colors and opens the door to all sorts of possibilities.

Read More

CSS-Tricks

Avoiding those dang cannot read property of undefined errors

Uncaught TypeError: Cannot read property foo of undefined. The dreaded error we all hit at some point in JavaScript development. Could be an empty state from an API that returns differently than you expected. Could be something else.

Read More

LogRocket Blog

Writing for readability with declarative arrays

By manipulating and digesting your arrays in a declarative fashion, you can produce much more readable code.

Read More

CSS-Tricks

Level up your .filter game

.filter is a built-in array iteration method that accepts a predicate which is called against each of its values, and returns a subset of all values that return a truthy value.

Read More

CSS-Tricks

Some Extremely Handy :nth-child Recipes as Sass Mixins

Using :nth-child and :nth-last-child, you can get some surprisingly complex information without ever leaving your stylesheet. Here are some cool tricks that you can use to add some number-based logic to your CSS!

Read More