Javascript: How to use ES6 Template Literals

When using ES6 with a linter I got this suggestion from sonarqube to replace my standard string concatenation with an apparently preferred Template Literal. Here is the sonarqube message I got: The string concatenation that triggered this suggestion was: The suggested fix using a Template Literal looks like this: Basically, a template literal has this … Continue reading Javascript: How to use ES6 Template Literals

MySQL: How to automatically update timestamp column in phpMyAdmin when a row is edited

I have a table in my database called “usercardsetplaycounts” that has a column called “updatedAt” that I want to get updated with a fresh timestamp every time a row is edited. When I originally set this column up, I set the default to CURRENT_TIMESTAMP. Here is what it looks like in phyMyAdmin: The updatedAt date … Continue reading MySQL: How to automatically update timestamp column in phpMyAdmin when a row is edited

Kotlin: How to use .filter( ), ‘it’ key word, and arrow ‘->’ operator

Kotlin’s built-in .filter() function is meant to iterate through any iterable collection type, (lists, sets, or maps) and check each element of the collection against some criteria (aka “predicate”). If the element matches the predicate, meaning the boolean result is true, then the element is added to a result collection of the same type that … Continue reading Kotlin: How to use .filter( ), ‘it’ key word, and arrow ‘->’ operator