sacredSatan/blog
slash blog... slAsH bLOg... SLASH BLOG.

Sneaky Bugs: string substitution and string split

javascript bugs string
This is more silly than sneaky, but it did get past me and made its way to production.

Diwali Cleaning: blog post ideas dump

random macos terminal ux
Diwali cleaning is a seasonal cleaning tradition in India (like Spring cleaning). I’m cleaning up my notes and dumping post ideas that I’m never going to get to.

Odd Api Design: loadOptions prop in async React Select

javascript api-design react-select bugs
react-select/async has a loadOptions prop that helps you filter and display options based on some input string. The function you pass to loadOptions has two ways to set the options to display. This is what caused an unexpected (to me) issue. This isn’t a sneaky bug since I caught the issue while developing.

Sneaky bugs: startsWith and indexOf with empty string

javascript bugs string
Found another sneaky bug while using String.startsWith().

Sneaky bugs: using lodash/trimStart to trim off a leading substring

javascript bugs lodash
Sneaky bugs are bugs that escape your first glance through the code. I’ve had this recently happen to me with lodash/trimStart.

Testing

random
Ditched Jekyll for Hugo. Found a 5/7 theme called Smol. Baby, I’ve got a stew going.
1 of 1