Yesterday, I wrote about [how to pull a specific files from another branch into your branch](../../2019-12-07/git-copy-files-between…
➥Read moreFrequently, I want to pull in just a single file from another git branch. I always need to look up the specifics, so I’m documenting it to…
➥Read moreWhile Storybook is great for communicating the potential of different components, debugging issues with components can be more of a…
➥Read moreIf you're like me, you've likely never heard of a Harvey Ball - though you'd recognize them if you saw it. That's because Harvey Balls are…
➥Read moreI'm a big fan of Storybook JS. It makes sharing what's possible with a React component trivial.<sup>1</sup> There is a potential problem…
➥Read moreIf you [switch between shells](../../2019-09-02/change-default-shell-zsh), it might be handy to determine which one is currently running…
➥Read moreWhen you have a lot of scripts in your npm package, it can get overwhelming. Recently a colleague introduced a new pattern in one of our…
➥Read moreI was looking to plan an event recently at [Beermiscuous](https://beermiscuous.com/), a beer cafe in Chicago that I really like. Their…
➥Read moreRecently I was working with a Docker image of a Postgres database. Everything was going great.  At one point, I…
➥Read moreRecently, I went on a search to find a new arrow to use on my website (I settled on `➥` which produces this: ➥). In my…
➥Read moreBy default the `node-postgres` returns everything from PostgreSQL as a string. Brian Carlson, the author of `pg`, provides a solution for…
➥Read moreI am constantly striving to improve my understanding and comfort interacting with my terminal. I remember how excited I was when I first…
➥Read moreI wrote in the past about [Array Intersections in Postgres](../../2019-07-01/array-intersection-in-psql/), which alluded to operators and…
➥Read moreIf you’re just learning how to use Postgres from the terminal (as I am), sometimes you click the wrong button and don’t know what it does…
➥Read moreBefore you can [connect to a Postgres database](../../2018-08-19/access-psql-via-shell/) from the command line, it needs to be running. If…
➥Read moreWhen it comes to RESTful APIs, there’s not a ton of availability to be creative - at least in terms of the names of the APIs. You’re going…
➥Read moreAs apps grow, the number of routes can balloon. More than that, you may need custom middleware for certain routes and not others - whether…
➥Read moreMiddleware is software that sits between two other pieces of software and can augment, change, modify, or even respond to data it receives…
➥Read moreOne of the challenges of using `nodemon` to monitor changes to a node server and restart is if some changes get cached. I came across…
➥Read moreIf you’re running a node application and you want to debug, but don't want to use the debugger in your text editor, perhaps your text…
➥Read moreI often find myself looking up patterns for converting synchronous code into async variants in Javascript. Whether it’s remembering how…
➥Read moreI came across the following function in a codebase today and struggled to see what was happening - the combination of classes with…
➥Read moreOne of the best parts of the javascript ecosystem is the number of packages that are readily available to expedite development. If there’s…
➥Read moreTo create a symlink, you need only one command: ```shell $ sudo ln -s /path/to/original /path/to/destination ``` For example, on Ubuntu…
➥Read moreI recently spun up a Digital Ocean droplet and almost immediately ran into problems logging into it. For context - the steps I took were…
➥Read moreThe `!!` is a quick way to repeat a command in a UNIX environment. For example, here I’m looking at a directory’s contents, then invoking…
➥Read moreContinuing the trend of learning more about Javascript classes of late, I found the following recently and thought it was quite interesting…
➥Read moreRecently I wrote about [my aha realization of what exactly we’re doing when we pass the props that a class constructor receives to super…
➥Read moreTo make an environment variable available in Bash or Zsh, save the environment to `.bashrc` or `zshrc` respectively. To set the variable…
➥Read moreWhen we define a class component as a derivation of a base class, this gives us access to all of the base class’s public (and protected…
➥Read moreImagine you have a Single page application but you want to allow your users to navigate to different pages within the app. I wanted to…
➥Read moreI thought this was pretty cool. Imagine you want to create a file programmatically and allow a user to download it. For the sake of this…
➥Read moreCame across an interesting example of a rarely used feature (at least for me) in Javascript creating unexpected results with Typescript…
➥Read moreAs React continues to upgrade its API, there are parts the team is working to deprecate. If you want to make sure your app stays up to…
➥Read moreThe `useEffect` hook in React is scheduled to run after render. There are three different categories of running it: 1. Without…
➥Read moreWhen it comes to global node packages, there are typically three things I want to do: 1. See what’s installed (view globally installed node…
➥Read moreIn Javascript, Sets are Objects with a few special attributes. Notably, they’re _iterable_ collections of _unique_ elements. One of the…
➥Read more I want to highlight one way to create a subset of data. To get us started, let’s think about a universe of…
➥Read moreFiling this under delightful surprises. I was working with `StorybookJS` today when I stumbled into a few keybindings that I didn't know…
➥Read moreWhat if, instead of a table’s _data_, you wanted to see the table’s metadata? That is, instead of querying all of the rows within a table…
➥Read moreThe other day I came across a pattern for creating objects I couldn’t quite understand. The code looked a little like this: ```javascript…
➥Read moreLet’s say we’re building a simple web form with a twist: we want the submit to only appear if all of the fields are valid. In all other…
➥Read moreThere are three main types of React Components. There are also (with the introduction of hooks in 16.8) three different ways to define…
➥Read moreI still remember when I first learned how to conditionally render my React components. It was a light bulb moment. I began seeing new…
➥Read moreI was reviewing a project recently that made use of the `react-intersection-observer` library and was fascinated by the simplicty of the…
➥Read moreThe goal of most writing is to communicate a point to the reader. This is where conventions and rules come in handy. They create a shared…
➥Read moreWhen you pull a repository down (i.e. clone it) from a remote (like Github, Gitlab, or a private host), git will automatically add it as a…
➥Read moreWhen trying to run an `npm` command, you can’t install the packages, you may get the error: ```shell stephen ~/_coding/remine…
➥Read moreWhen does it make sense to use a reducer vs a simple state value with React’s Hooks? There’s no hard-and-fast rule, but the React team…
➥Read moreDeciding to not bootstrap my [React-Playground](https://github.com/stephencweiss/react-playground) app is the gift that keeps on giving…
➥Read moreI was recently trying to switch over from a private registry default to the default one. When I tried to reinstall my dependencies…
➥Read moreI’ve written in the past about the [benefits of `Pick` in writing better interfaces with Typescript](../../2019-06-25/typescript-pick…
➥Read moreWhen things that used to work break, I want to understand why. That was the situation recently with `npm`, the reliable workhorse behind…
➥Read moreImagine you have a website, like this one, that aims to publish regularly. You’re not a big publication. You don’t have a full-time staff…
➥Read moreA quick optimization to keep an eye out for while styling components - particularly those where they share logic - whether between…
➥Read moreA while ago I installed the Prettier extension in VSCode and configured a few defaults in my global settings. I like having a global…
➥Read moreBack in February I wrote a [primer on exports and require](https://www.stephencharlesweiss.com/2019-02-11/js-modules-primer-export-and…
➥Read moreWorking on a component that receives a `status` prop where the status are defined by an enum (I’m working in Typescript). The problem…
➥Read moreWhen writing longer files in Markdown, it can be useful to create links _within_ the document to help readers navigate. This cross…
➥Read moreWe use templates to help write descriptive tickets or MRs on various projects at work. <sup>[1](#fn1)</sup><a id="sup1"></a> Then I started…
➥Read moreWhen asking users for their input, it’s often a pleasant user experience to allow them to submit the form by pressing "Enter". In fact…
➥Read moreEvery time I’ve thrown an error, I’ve used the `Error` object. ```javascript try { // do something if (/* something bad happens…
➥Read moreStarting around 2015, browsers started treating the attribute `autocomplete` on `<input>` fields differently. Instead of honoring what had…
➥Read moreAmerica has changed a lot since Dan Rather’s youth. Much of that change, though not all, has been positive - a transformation he chronicles…
➥Read moreI first came across Benedict Evans through a fascinating interview he did with Russ Roberts on EconTalk to discuss the future of cars.<sup…
➥Read moreAbout a year ago, I learned about [bitwise operators and using them to swap elements of a list](../../2018-10-21/swapping-and-bitwise…
➥Read moreIn learning about [Auto-Complete In HTML Forms](../../2019-10-07/auto-complete-forms), I discovered that the `type` of an `<input>` makes…
➥Read moreJakob Nielsen of the Nielsen Norman Group, a consulting firm focused on user-experience, has what I think is a pretty profound observation…
➥Read moreI continue to be enamored with the power of regular expressions — a feeling that only grows the more I understand them. Today, for example…
➥Read moreThe most striking aspect of the New York Times’ Editorial Board’s recent opinion, “Why the Trump Impeachment Inquiry Is the Only Option…
➥Read moreYesterday I accomplished a goal I’d been working toward for close to three months: I swam an uninterrupted 200m freestyle. It wasn’t…
➥Read moreToday, I had a colleague mention that the font we are using is “web-safe” in response to why it was so weird that it wasn’t showing up…
➥Read moreSome effects only appear when you hover over them with your mouse. The problem is that in order to see the details and ensure they’re what…
➥Read moreI have been working on a Linux VM more recently, and one particularly annoying thing about it (there are a lot of little quirks that are…
➥Read moreStyled components are really nice in compartmentalizing styling and keeping it close to the components that use it. I wasn't around for…
➥Read moreI was working on a project recently which was using Refs in order to integrate with a third-party library. My mental model for refs are…
➥Read moreRecently, I walked through building a basic React App.<sup>1</sup> In retrospect, I could make it _even more_ basic by removing _any…
➥Read moreOne of the more frustrating little quirks about HTML is its insistence on collapsing white space. This is actually often more useful than…
➥Read moreIds are everywhere. But what are the rules for them? Turns out, the rules in HTML5 are pretty permissive: unique, at least one character…
➥Read moreIn looking into labels for web forms recently, I stumbled on a question I really didn’t know the answer to: What’s the difference between a…
➥Read moreFor accessibility purposes all form inputs should be labelled. How do we apply a label though? There are multiple ways to add a label, but…
➥Read moreGiven a score within a range, how could we visualize that on a dial? That was what I got to work on recently and it turned out to be a ton…
➥Read moreSometimes Vim is simultaneously impossible opaque and extraordinarily intuitive. That’s the case with the undo and redo. To undo the last…
➥Read moreWhen hiding elements on the client, there are multiple options. Two of the most common are through the selective toggling ofCSS properties…
➥Read moreWhat are the differences between a `.zip`, `.tar`, `.gz`., and `.rar`? It turns out it’s both a lot and a little. Some basics: - `.zip…
➥Read moreJeremy Church put together a nice little side by side comparison of REM and Em (and PX).<sup>1</sup> Both REM and EM are relative units…
➥Read moreThis weekend was an anniversary of sorts for me. Exactly one year ago Saturday was my last day in a job and career I’d been building since…
➥Read moreWhen I was in high school, I argued passionately in defense of determinism. It wasn’t that I didn’t _like_ the idea of free will or _want…
➥Read moreI found this insanely easy way to roast an entire Caulflower head.<sup>1</sup> ~~If~~ When I do it again in the future, I'll experiment…
➥Read more> Update: I've now found an even more basic way to write a React app and I put together a tutorial in a post, [An Even More Basic React App…
➥Read moreThe steps to adding Prettier to a project are very simple: 1. Install Prettier (`npm i --save-dev prettier`) 2. Create a `.prettierrc…
➥Read moreTesting my app on a slower connection is a key part of my development cycle. That’s why when I recently found myself developing within…
➥Read moreReact’s one way data flow makes it easy to reason through, but sometimes the controlling component needs to know what’s going on inside…
➥Read moreBuilt into Javascript’s `String` primitive are Regex methods such as `.match` and `.replace`.<sup>1</sup> We can use the latter to…
➥Read moreUnless you’re working on a mono-repo, it’s fairly common that in the process of making changes to a code base, you’ll actually need to…
➥Read moreBy default, the shell on a Mac is `bash`. Changing this should be a simple three step process: 1. Make sure that `zsh` is installed and is…
➥Read moreRecently upgraded an application and got this warning  In the past, I used to be able to "right" click on…
➥Read morePreviously, I wrote about writing a GraphQL query that takes variables. I was using this to programmatically create posts. In returning…
➥Read moreI wanted to be able to import JSX elements I defined in a Gatsby project into markdown files. Very quickly I got tired of writing out the…
➥Read moreApple’s Live Photos are a fun way to add a little twist to photos you snap on your phone. Empowering this feature is a file format called…
➥Read moreOne of our family’s favorite recipes is a Harissa Grilled Eggplant from Goop.<sup>1</sup> It’s quick, full of flavor, and relatively…
➥Read moreI routinely find myself looking up the differences between the HTTP methods (aka verbs) `PUT` and `PATCH`. While there’s plenty of nuance…
➥Read moreIdempotent is a word that gets thrown out a lot within computing but that I continually forget what it means. From Wordnik, the definition…
➥Read moreHow do you limit the number of rows returned from a query? Let’s consider a basic example with a members table. You’re building a front…
➥Read moreIt’s not uncommon for larger apps to exceed the default memory allocated to Node. When this happens, you'll get an errory alerting you that…
➥Read moreI read Andrew Sullivan’s 2016 piece for the New York Magazine this week and it's as relevant as ever. It’s a wonderful, thought-provoking…
➥Read moreI continue to be impressed by the simplicity and power of Markdown. Today, while exploring the API for Gatsby’s Remark Images, I noticed…
➥Read moreHave you ever tried to have an element overflow when one of its children is in a fixed positioned relative to it? Fun fact: It doesn’t…
➥Read moreI was trying to modify a table today when I hit an error: `SQL Error [42501]: ERROR: must be owner of table XXX`. To figure out _who_ the…
➥Read morePGAdmin, Dbeaver, etc. are useful GUIs for managing and reviewing Postgres databases. Sometimes, however, there’s a desire to login via the…
➥Read morePGAdmin, Dbeaver, etc. are useful GUIs for managing and reviewing Postgres databases. Sometimes, however, there’s a desire to login via the…
➥Read moreIf you already have a table created in Postgres, how can you modify it to add a new column? Similar to [adding constraints after a table…
➥Read moreHow do you add a unique constraint to a table in Postgres if it’s already been created? Most of the time, we add unique constraints to a…
➥Read moreMost of the time, these two pseudo-selectors act in concert. In fact, they’re so frequently triggered together that my naive testing…
➥Read moreFinding all instances of an imported module in a large app can be challenging. With the namespace for a module being restricted to the…
➥Read moreHow can the necessity of handling different types of inputs (e.g., mouse, touch, and pen) by duplicating event handler logic? The Pointer…
➥Read moreWhen does it make sense to use a Generic in a Typescript type? How do you create a type that takes a Generic? I’ve read through the…
➥Read moreI’ve developed a peculiar habit. I knew I’d developed it, but didn’t know it was peculiar until my lead asked me about it this morning…
➥Read moreBoth MDX and Remark are Markdown compilers that will convert valid Markdown into HTML to render on the web. The beauty of Remark is that it…
➥Read moreWorking with code is an extraordinarily satisfying experience. Not in the minute-to-minute. At that scale, it can be infuriating. The code…
➥Read moreMarkdown doesn’t support for superscript or subscript directly. However, there are multiple strategies to adding superscript and subscript…
➥Read moreI was trying to query an image I’d placed in the frontmatter of a post, when I got the error: > Field ‘image’ must not have a selection…
➥Read moreFiling this one under annoying bugs that shouldn’t be an issue but end up taking up way more of your time than you’d like. VSCode offers…
➥Read moreWhen I set up my `gatsby-filesystem` previously, I noted that if there were multiple file systems that I wanted access to, all I need to do…
➥Read moreAlright, I’ve been building to this point! Time to generate new pages for a blog programmatically using Gatsby! Previously I wrote about…
➥Read moreOne of my ongoing challenges with layouts on the web is the fact that a website does not naturally have an end. Unlike an 8.5"x11" sheet of…
➥Read moreEvery time I cut a new branch in Git and am ready to submit a PR for review, I get an annoying error reminding me that I need to set the…
➥Read moreIf you have `vim` already installed, you can get an interactive walk-through using the `vimtutor`. To launch `vimtutor`, open your shell…
➥Read moreTo date, I’ve struggled to understand reducers. Terms like reducers, actions, dispatch, all blurred together and even though I could use…
➥Read moreI am trying to reduce an array of React Nodes to an array of React _Elements_. Specifically, I’m trying to extract the title prop from those…
➥Read moreEvery week I sit down and write what I want to stop, start, and continue. That habit, it would seem, should insulate me to some degree both…
➥Read moreToday, I found a wonderful side-effect of `useRef`: it doesn’t re-render components when it changes. This was ideal for my situation…
➥Read moreI have a habit of making longer git branch names. I use the branch name as a way to communicate what and why I’m working on something. For…
➥Read moreMy dive into [Gatsby](../../2019-07-20/gatsby-source-filesystem) continues. Today, I wanted to better understand how dynamic queries worked…
➥Read moreI came across a situation where I had a collection of collections. Some of the internal collections, however, I didn’t want to keep around…
➥Read moreThe past few weeks I’ve felt like I’ve been saying "no" to more things. Specifically, I’ve said "no" to caffeine. "No" to bagels and muffins…
➥Read moreContinuing my learnings in Gatsby and today I found out a few new pieces about the filesystem plugin, `gatsby-source-filesystem`.<sup>…
➥Read moreThe `SEQUENCE` in Postgres is a number generator.<sup>1</sup> Once created, they can be managed with sequence operators.<sup>2</sup> So…
➥Read moreMy mind races a lot. I can’t help it. Whenever I talk to someone, read something, observe an interaction, etc. I immediately start thinking…
➥Read moreBefore I write to a database, I want to make sure that I don’t create a duplicate record based on the name and parent record id. To…
➥Read moreI wanted to update multiple fields on multiple records and handle the case that _not all_ of the information is present in the update for…
➥Read moreI often struggle with the syntax of config files. What are resolvers? How do options work? etc. As a result, while making my way through…
➥Read moreIn order to understand `require.resolve`, part of the Node API, we must first understand its context. Namely, the `require` module and how…
➥Read moreI wrote in the past about using [constraints in the context of array operators in Postgres](../../2019-07-01/array-intersection-in-psql…
➥Read moreHow do you insert _multiple_ values? I always find myself looking this up. I decided I’d jot it down here for future reference. Hopefully it…
➥Read moreI recently came across a creative solution to finding the relationships between different values within a table using SQL. This may be…
➥Read more# Don’t Let Facts Get In The Way Of A Good Story The first time I heard about Jerry Seinfeld’s "Productivity System" was 2013.<sup>1</sup…
➥Read moreI’ve written in the past about why I like testing my [APIs with Postman](../../2019-04-13/testing-api-with-curl-and-postman). Today, I…
➥Read moreYesterday, I wrote about the [intersecting of Arrays in Postgres](../../2019-07-01/array-intersection-in-psql). Today, I wanted to go a…
➥Read moreRecently, I was building an API to modify the data in a database. The field I was modifying happened to be an array, and I wanted to make…
➥Read moreImagine the following situation - you’re trying to select columns from a Postgres table ```sql create table if not exists media…
➥Read moreYesterday, in talking about [Postgres and Subqueries](../../2019-06-28/postgres-subquery-basics) I was trying to represent a relationship…
➥Read moreI wanted to be able to retrieve a set of records from a database along with specific details from a related table. I knew SQL could…
➥Read moreIf I’m working on a React application that is trying to render data based on an asynchronous call, there are three common cases I should…
➥Read moreStarting this morning, I was suddenly unable to update my repositories on Github. As I’d written about in the past, I [prefer using SSH…
➥Read moreInstead of documenting an interface that is redundant, but only a partial, we can use `Pick` to allow the interface to automatically be…
➥Read moreThe short answer: there is _no_ difference. When investigating, I was steered to the Typescript Handbook<sup>1</sup> which notes: > The…
➥Read moreRecently I heard about Julian.com and specifically about the design of the manuals the owner, Julian Shapiro writes. One of the things…
➥Read moreBuilding on lessons from yesterday's dive into `groupBy`, I found an opportunity to explore `pick`. This time it was because I wanted to…
➥Read moreAs I [wrote previously](../../2019-05-03/lodash-groupby-vs-custom-helpers), the `_.groupBy` method of Lodash can be really useful. My…
➥Read moreI seem incapable of reading without a pen in hand. If I am not in a place where I can underline or jot a note in the margins — I don’t read…
➥Read moreA few days ago, I wrote about handling arrays from [Javascript to SQL](../../2019-06-15/array-handling-javascript-sql). Turns out, I…
➥Read moreI’m writing some integration tests for an app that is confirming database queries are working the way I’m expecting. In order to prep the…
➥Read moreYesterday we updated a Postgres record’s details based on the `id` and returned the update in a [single query](../../2019-06-14/psql-return…
➥Read moreOften, after making a change to a database, we want to verify that the change was made and use the updated rows. A naïve approach would be…
➥Read moreI've gotten in the habit recently of printing my variables as object literals. For example, if I have a variable, `myVar`, that I want to…
➥Read moreThere are two ways to add a comment to a SQL query - using `/* */` and `--`. The differences are as follows: With a comment surrounded by…
➥Read moreThe topic of life as a journey has been on my mind lately - evidenced by my last two essays [Defense of Detours](https://www…
➥Read moreWhen looking around a table in Postgres today, I noticed a curious looking field. `groups_reso` _looked_ like a collection, but when I…
➥Read moreAdding a message to a stash is a great way to easily identify _what’s_ included in a stash. This can be particularly helpful if you’re…
➥Read moreSometimes you only want to stash a few files at a time. Maybe in the course of your work, the files you were changing revealed a bigger…
➥Read moreUsing third party libraries is great when they do exactly what you want them to do. When it comes to extending them, however, it can get…
➥Read moreI was investigating a situation _where_ my application was deviating from my expectations during runtime — aka bug fixing. Opening up my…
➥Read moreWhen it comes to accessibility (a11y) on the web, one of the best / easiest things you can do is to use _semantic_ HTML. > Structural…
➥Read moreDetours are slow. They add time and distance to our route. Particularly when we have a plan and know where we’re going, this delay can be…
➥Read moreI was recently trying to understand Material UI's `<Stepper>` component. In looking through their implementation of the Horizontal Linear…
➥Read more[Storybook supports static files](https://storybook.js.org/docs/configurations/default-config/#image-and-static-file-support), like images…
➥Read moreIn the same vein as [cleaning up my git branches](../../2019-05-26/local-git-stale-branch-cleanup), today I recalled that I can easily…
➥Read moreI wanted to be able to print cool trees of my directories to help show my folder structure. At first, I thought it was simply using…
➥Read more# Using Variables To Make Interchangeable React Components I’m still making tweaks to the Stepper project I wrote about previously ([here…
➥Read moreI use Netlify to manage the deployment of my site. One of the things I love about Netlify are the checks they run against each branch to…
➥Read moreImagine you have a prop that you want to be passed all the way through to the DOM. If you try and pass through a prop that isn’t…
➥Read moreNo matter the mode of transportation, the faster you go, the less control you have. If you’ve ever tried to turn on a dime when sprinting…
➥Read moreWhen writing about Javascript (or past lives writing about health care), I would often type words that don’t appear in Webster’s or Oxford…
➥Read moreUnless your git workflow is pushing straight to master (because YOLO), it’s likely that your local repository will grow unwieldy in time…
➥Read moreI’ve been learning about some of the ways you can use destructuring to make my Javascript more declarative and communicate my intent more…
➥Read moreUsing two libraries, `styled-components` and `react-image`, I learned a new simple way to create a `Loader` component (i.e. a spinner) to…
➥Read moreI should start with the observation that I hate using my mouse. Yet, that was exactly what I was about to do today to unzip a file. The…
➥Read more> Make it work. > Make it right. > Make it fast.<sup>1</sup> This maxim screams pragmatism. Don’t optimize too early. Get something…
➥Read more> When all you have is a hammer, every problem looks like a nail. When approaching new problems, it’s easy to fall into old ways of doing…
➥Read moreDescribing each individual as unique has become cliche. And yet, isn’t it the case? Our lives are our own - no other person has the same…
➥Read moreMore CSS fun today! One way to visually indicate that an element is clickable is by changing the cursor to a If a data element is…
➥Read moreIt was one of those light bulb moments when things finally clicked. My colleague was describing how to ensure that my elements weren’t…
➥Read moreRecently, I was working on a project where I wanted the scroll event to invoke a function that would affect other elements on the page. For…
➥Read moreOften when I get a merge conflict, what I really want to do is defer to the master branch, so, if I’m on a branch and I want to merge in the…
➥Read moreYesterday, I wrote about using [Lodash’s `pickBy`](https://www.stephencharlesweiss.com/2019-05-02/objects-undefined-values-and-lodash…
➥Read moreLet’s start with the basics. I was in an oh-so-common situation recently where I was building a component that would visualize the details…
➥Read moreTo rename the name of a branch, there are four potential steps: 1. Checkout the existing branch (the one you want to rename): `git…
➥Read moreWhen I was younger, I learned to "mind my Ps and Qs." I’m glad I did. It’s a relatively straightforward behavior that has paid dividends…
➥Read moreI use Bear as my digital note keeper and place where I write. As I continue to add more notes to it (6k and counting), being able to find my…
➥Read moreOn Macs there is a Emoji & Symbols keyboard. You’ve probably seen it on your phone, but desktops and laptops have it too. To launch it, go…
➥Read moreEarlier this week, I pulled down a colleague's work to test it locally. Unfortunately, the steps I followed ended up merging the new…
➥Read moreUsing the example of importing the `material ui` into a file, we can see how this works. ```javascript import * as materialUI from…
➥Read moreThe world is busier than it used to be. We’re bombarded by constantly with work emails, Instagram notifications, and Slack messages. My…
➥Read moreRunning my node server, I got an error indicating that my port was already in use (`Error: listen EADDRINUSE :::5001`). I knew that…
➥Read more> But you’re never going to achieve what you want to, Mr. Caro, if you don’t stop thinking with your fingers. > > - R.P. Blackmur via…
➥Read moreI think the psychology of learning at work is interesting. On the one hand, an employer should _want_ employees to ask questions and learn…
➥Read moreBefore my recent efforts to be more mindful of how I used technology, I was quite proud of the streak I had with meditating daily. I had…
➥Read moreI brought pomodori back this week after listening to the podcast episode with [Productivity with Mani Vaya](https://overcast.fm/+B1THOPAVc…
➥Read moreFor a long time, I hated seeing functions like this: `const someFn = a => b => a + b;`. I thought this was just "code golf" (the idea of…
➥Read moreThe other day, I found myself making some changes to a network request for our application. By navigating to a specific page, I knew I’d…
➥Read moreI find myself writing the following command multiple times daily. ```bash git stash push pacakage-lock.json git stash drop 0 ``` I had…
➥Read moreWhat value does a prop get if no value is assigned? To think about this more tangibly, imagine you have a higher order component…
➥Read moreWhen we say that JS is lexically scoped, what we mean is that a function will have access to the variables in the context of which it was…
➥Read moreOne of the things that I didn’t appreciate when I first started using React was how helpful the different lifecycle methods were. I got…
➥Read moreI recently came across a situation where I had two different props in a component that had the same name (they were in different parts of…
➥Read moreIf you need to copy all data from one column to another column in SQL, use the `UPDATE` method. If it’s a simple copy for copy, without…
➥Read moreThe `.d` file is a declaration file. In this case, it’s a declaration file for Typescript files. What does that actually mean though? The…
➥Read moreAre there areas of life where the costs of efficiency gained outweigh the costs? Of course. It’s just not a question that I ask that…
➥Read moreWhat are classes anyway? A class is an entity that is capable of producing objects (instances) that share common attributes, features, and…
➥Read moreIf you’ve ever mapped over an array in React, you’ve likely seen this warning: `Warning: Each child in a list should have a unique "key…
➥Read moreI recently figured out how to write a shell function. The problem is that pretty quickly I’d forgotten *which* functions I’d written, or fi…
➥Read more# Imagination Time Imagine a situation where you want to be able to navigate to a specific directory then open that directory with your text…
➥Read moreRecently, Spotlight had been acting up. For example: When I search for Spotify (an app I use every day), it wouldn’t show up. Instead I’d…
➥Read more# Import/Export vs. Require in JS On more than one occasion I’ve found myself looking up the MDN page on imports and exports for modules in…
➥Read moreThere are plenty of reasons to write this blog and share your perspective. Recently, however, I had a few experiences that really…
➥Read more# Difference Arrays Imagine you’re given a problem that says for each "query" in the format `[a,b,k]` add `k` to all elements of an array…
➥Read moreI recently found the following tweet about heroic consistency. > Don’t aim for consistently heroic efforts. Aim for being heroic at…
➥Read moreHow would you rotate an array's elements if you were given an array and a number of left rotations? (A left rotation is defined as moving…
➥Read moreThe ease of writing GET requests varies with the clarity of the supporting documentation. With that in mind, I recently explored an API…
➥Read moreTwo tools to keep in your tool belt when adding forms to your website should be: 1. `Event.preventDefault()` 2. `HTMLFormElement.reset…
➥Read moreMy very first introduction to code was with [~Introduction To Computational and Programming Using Python~](https://www.amazon.com…
➥Read moreA few months ago, I found a font, `fira code` that introduced me to ligatures and how they could be useful in writing code. | . Almost immediately I…
➥Read moreThere are more free resources out there today than ever before. For a student, it’s a glorious time. Despite the rise of great annotating…
➥Read moreOne of the simplest ways to swap two variables in programming is to create a temporary variable that holds a value while you iterate…
➥Read moreGreg Lukianoff was recently on the Cato Daily Podcast to discuss his new book with Jonathan Haidt, the "[The Coddling of the American Mind…
➥Read moreCal Turner Jr., CEO of Dollar General, was on the [A16Z podcast](https://a16z.com/2018/09/05/dollar-store-retail/) this week. In a wonderful…
➥Read moreWant to make sure that your customers unsubscribe _even less_ than they would otherwise? Make your email long enough so that only the footer…
➥Read moreThe thing about aggregators is: in an era of abundant supply, it’s almost impossible to know when things aren’t there. When you need a…
➥Read moreDear Donald, Four years ago, you told me to "[Learn To Code](https://www.thehunt.com/the-hunt/XWvoQ4-childish-gambino-learn-to-code…
➥Read more# .gitconfig follow-up with .bash_profille In my previous Git posts ([here](https://wp.me/p6u9oI-eG) and [here](https://wp.me/p6u9oI-eK…
➥Read moreAt brunch with my cousin, I tried Chia Seed Pudding for the first time. It was awesome. To me it was a pleasant combination of Oatmeal and a…
➥Read moreSpend enough time looking at pictures of [desks](www.reddit.com/r/battlestations) and you'll realize that despite all of the electronics…
➥Read more# Git Clone, Pull, and Push Continuing my learnings re: [Git](../../2018-08-22/learning-git-from-the-ground-up-another-git-tutorial). I…
➥Read moreThis spring I read the Jason Zweig updated version of Benjamin Graham’s [*The Intelligent Investor*](https://www.amazon.com/Intelligent…
➥Read moreI've been trying to pick up more of the cooking duties in our home and I've noticed that recipes often make a distinction between prep time…
➥Read moreMy goal is to be a competent command line programmer. I knew that in order to make that happen, I would have to get very comfortable…
➥Read moreI got into a bit of a mess earlier today when I accidentally checked out an old state of my current branch _without_ creating a new branch…
➥Read moreI've been trying to learn more about Git recently. I thought I'd write up some of the lessons I've learned to create a basic primer on Git…
➥Read moreI was recently using the slice method to copy an array and I ran into a few difficulties understanding why my copy was not shallow. From…
➥Read moreThe simplest endeavor toward diversity focus on hiring practices. Making sure that candidates are not systematically excluded and that…
➥Read moreI’m currently reading *[The Path](https://smile.amazon.com/Path-Chinese-Philosophers-Teach-About/dp/1476777845?sa-no-redirect=1)* by…
➥Read moreThe next best time is now. I’ve been dying to get back to this blog for months but this week two things gave me the push I needed:…
➥Read moreMeasurements are getting cheaper, but the amount getting done is not keeping pace. Why is that? Nearly 150 years ago, William Thomson, the…
➥Read more"For best results, mattresses should be replaced every 8 years" -- I recently saw an ad with this copy in a window of a mattress store near…
➥Read moreLast night, I made a small change that made a big difference. It didn't feel significant when I made it. It felt like a thing you do when…
➥Read more> I write only when inspiration strikes. Fortunately it strikes every morning at nine o clock sharp. > > \- W. Somerset Maugham It's not…
➥Read moreIn his brilliant book on management and leadership, [The Hard Thing About Hard Things](https://www.amazon.com/Hard-Thing-About-Things…
➥Read moreThe hat tip is "[a cultural expression of recognition, respect, gratitude](https://en.wikipedia.org/wiki/Hat_tip)." It's more modern…
➥Read moreThere are days when I don't want to show up. Days when I wish I could just jump ahead to the part where I have accomplished my goal, won…
➥Read moreRyan Holiday recently weighed in on the phenomenon of 'ultra hardcore readers' - people who spent nearly every spare minute of their day…
➥Read moreHabits are a way to automate certain decisions to make space for the bigger ones. They are not, however, a panacea - a lesson which became…
➥Read moreA few days ago, I got to talking with a friend about the Berkeley students' recent protests and threatened protests in advance of speeches…
➥Read moreIn his annual letter to shareholders, Jeff Bezos answered a question that had been following him around for twenty years: what does Day…
➥Read moreThink about the last time you were in an elevator. Did you pull out your phone to check your email or get an update on the score of the game…
➥Read moreWhen we meet people for the first time, we are filling in gaps with all of the information we can gather about a person. No matter how good…
➥Read morePermanence is beautiful. I would argue that one reason we gravitate toward immortal divine beings is that there's comfort and solace in…
➥Read moreI had wanted to write something smart tonight. The topic was all picked out, I had researched it, and I'd even thought of an anecdote about…
➥Read more> "An artist must have downtime, time to do nothing." -- Julia Cameron A few months back, I was talking to a friend who confided that he…
➥Read more> Hog Butcher for the World, > > Tool Maker, Stacker of Wheat, > > Player with Railroads and the Nation's Freight Handler; > > Stormy, husky…
➥Read moreIn my first corporate orientation class, I participated in a professional writing seminar lad by Curry Young Consultants. In terms of…
➥Read more> "If they don't know your dreams, then they can't shoot 'em down" - J.Cole Most kids learn to share at an early age. It's a lesson that…
➥Read moreCommitments are easy to accumulate and much harder to extricate from. One of the reasons why I've felt this week to be particularly…
➥Read moreThese past few weeks have been a lot for me. I've felt overwhelmed and underwhelmed, isolated and crowded, confident and unsure. The roller…
➥Read more This morning I woke up for the first time in nearly three years without something that had become a core part of my…
➥Read moreThe room was quiet and the music soothing. After 50 minutes of flowing from pose to pose in a room approaching 95°F, the class collectively…
➥Read moreI have a friend who likes to say that people complain all the time about not having enough time to do what they find important, but when he…
➥Read moreComing into 2015, I promised myself that I would read more than I did the year before. I was achieved this goal, but I finished was no where…
➥Read more`youtube: JgMiS81jFyE` > "For the rest of our lives, we will always be one pot of coffee ahead." > > "Until that day when I make a pot of…
➥Read more`youtube: 9pillaOxGCo` Because who doesn't want to go to space? Also, props to the creative team who had the video chopped and edited in…
➥Read more"Who would buy a car programmed to sacrifice the owner?" <sup>1</sup> What I love about this question is that it gets at two conflicting…
➥Read moreGraham Allison's article "The Thucydides Trap: Are the U.S. and China headed for War?" published in this month's Atlantic reviews the rise…
➥Read more|| |:---:| | *The left panel of Figure 1 shows that retail-price inflation was highest in locations with high…
➥Read more# Preamble I love beer. Thanks in part to a stint in Prague and living with a beer nerd for a year, it’s a real treat to stand in front of…
➥Read more|  | |:---:| | via The Old Design Shop | Yesterday, I sat down at my friend Grant’s…
➥Read moreBeyond my health, education is probably the single greatest gift I have ever received. I am eternally grateful to my parents, my teachers…
➥Read moreThis site starts with a question. It's a question about purpose, about direction, and about value - "Is this worth reading? Is it useful or…
➥Read moreThanks for reading! My name's Stephen Weiss. I live in Chicago with my wife, Kate, and dog, Finn.
Click here to see the archives of my weeks in review and sign up yourself!