Published in Nerd For Tech·Nov 2, 2021Matt’s Tidbits #103 — Launching an app from a URLThis week’s tidbit will show you how to launch an app when a user clicks on a link. Last time, I wrote about debugging a view binding issue in Android. Have you ever had an app launch on your mobile device when you click a link in an email, on…Mattstidbits6 min readMattstidbits6 min read
Published in Nerd For Tech·Oct 12, 2021Matt’s Tidbits #102 — Debugging a perplexing view binding issueThis week I have a tidbit (plus a bonus!) to share about converting an existing app to using Android view binding. Last time, I wrote about how to write a good bug report. First, the bonus! (Shouldn’t dessert always come first?) I recently started getting back into some Android development…Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·Sep 28, 2021Matt’s Tidbits #101 — How to write a good bug reportThis week I have a story to share about filing bug reports —why they’re important, and what makes a “good” one. Last time, (sorry for the delay between posts!) I wrote about some Teams-related tips. I’ve written several tidbits before where I file a bug report, but I have an…Mattstidbits4 min readMattstidbits4 min read
Published in Nerd For Tech·Aug 3, 2021Matt’s Tidbits #100 — All About TeamsThis week I have a few Teams-related tidbits to share! Last time I wrote about elegantly handling null/undefined values in a variety of languages. 🎉 First of all, a little celebration for my 100th tidbit! 🥳 The frequency may have slowed down a little bit from when I first started…Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·Jul 6, 2021Matt’s Tidbits #99 — Handling null elegantlyLast week I wrote about some truthiness edge cases in JavaScript. This time, I have a quick tidbit on elegantly handling null/undefined values. null — called the “Billion-Dollar Mistake” by its inventor, C.A.R. …Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·Jun 29, 2021Matt’s Tidbits #98 — The truth will set you free (unless you’re using JavaScript)Last time I shared a quick tidbit about running individual unit tests. This time, I want to share a few interesting things I learned while debugging a failing unit test. If you’ve used JavaScript for any length of time, you may have encountered its slightly special behavior around boolean expressions…Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·Jun 1, 2021Matt’s Tidbits #97 — Running/Debugging individual Jest unit testsLast week I wrote about React Fragments. This week, I have a quick tidbit about running tests in VS Code. I hope you all had a restful long weekend! I’ve written about the importance of vacation before, and in this pandemic that just seems to keep on going (although hopefully…Mattstidbits2 min readMattstidbits2 min read
Published in Nerd For Tech·May 25, 2021Matt’s Tidbits #96 — Cleaner Components with React FragmentsLast time, I wrote about defining constants in TypeScript. This week, I want to share what I learned about React Fragments! To many of my readers who are Android developers, you already know all about Fragments from the standpoint of building Android UI. …Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·May 11, 2021Matt’s Tidbits #95 — Defining constants in TypeScriptLast time I wrote about how to write safe enums in TypeScript. This week’s tidbit is also TypeScript related — how to define constants! Defining a constant in TypeScript can be pretty simple — you can just write something like const SOME_CONSTANT="FOO";. However, that const keyword only works if you’re…Mattstidbits3 min readMattstidbits3 min read
Published in Nerd For Tech·Apr 27, 2021Matt’s Tidbits #94 — Writing safe enums in TypeScriptLast time I wrote about how to get started with React Native. This week, I have a quick tidbit about writing safe enums in TypeScript! Many programming languages have support for enums, but they work slightly differently in TypeScript. It’s really simple to define and use an enum — you…Mattstidbits2 min readMattstidbits2 min read