• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Justin Joyce

Practical tips and tutorials about software development.

  • Standing Invitation
  • Featured Posts
  • Latest
  • About

Justin

Every Built-In Vim Color Scheme (with screenshots)

Posted Jul 29, 2024 — Updated Jul 29, 2024

I tried searching for a nice listing of all the built-in Vim :colorscheme (or :colo for short) options and I couldn’t find one, so here it is. This post is every :colo option that comes with Vim and a screenshot of what it looks like with some nonsense python code.

Filed Under: Vim

Reverse a string in Python

Posted Feb 8, 2024 — Updated Apr 6, 2024

The simplest way is to use Python double colon slicing with a negative step value: You can also use the builtin reversed method, which will “Return a reverse iterator over the values of the given sequence” according to its official help(). Note that this returns an iterator, not a string, so you’ll have to do […]

Filed Under: Python

Meeting Cost Calculator

Posted Jan 23, 2024 — Updated Jan 23, 2024

How much do your meetings really cost? Find out here.

Filed Under: Projects

Vim find and replace

Posted Dec 16, 2023 — Updated Jan 10, 2024

Easy find and replace is one of those quality of life improvements that make Vim great. With one quick command, and a little regex, you can replace a pattern across an entire file. Here’s how: Find and replace in the entire file with Vim:%s This is my most-used version of Vim find and replace. :%s […]

Filed Under: Productivity, Tips, Vim

What makes an effective development team

Posted Nov 1, 2023 — Updated Jan 23, 2024

After a decade as an engineer at companies ranging in size from 6 people to over 1000, I’ve been on many teams. The good teams were very similar, the bad ones were each bad in their own way. This post describes what made the good teams good.

Filed Under: Featured, Thoughts

Check if key exists in Javascript object

Posted Oct 30, 2023 — Updated Jan 10, 2024

To check if a key exists in a js object, you can: compare the key’s value to undefined, use .hasOwnProperty, or use “key in object” syntax. Each method behaves a bit differently, so let’s do some examples.

Filed Under: Javascript

Replace a string in Python

Posted Oct 29, 2023 — Updated Jan 10, 2024

To replace a string or substring in Python you have two main options: Python’s String Replace Method The string.replace method works roughly how you would expect it to: By default, string.replace will replace all occurrences of the string you want to replace. However, it accepts an optional integer third argument specifying how many times to […]

Filed Under: Python, Regex

Regex Cheatsheet

Posted Oct 27, 2023 — Updated Jan 11, 2024

Regex is very powerful and available in virtually every language. Eventually I’ll write a whole post about why every engineer should know some Regex, but this post is all about common regex patterns, flags, etc—in easy-to-read table form. First, here are some patterns similar to ones I’ve used in recent memory: Pattern Meaning Example Match […]

Filed Under: Productivity, Regex, Tips

Copy an object in Javascript

Posted Oct 14, 2023 — Updated Jan 10, 2024

There are several ways to copy an object in Javascript, and they fall into two categories: shallow copies and deep copies. Before going deeper, it might be helpful to define the two: If you’re copying a simple Javascript object with top-level properties only, all copies will be deep copies, regardless of what method you use. […]

Filed Under: Javascript

Undo a Git Commit

Posted Sep 6, 2023 — Updated Jan 10, 2024

To undo a git commit, you have a couple of options: git revert and git reset. You can also amend prior commits.

Filed Under: Git

  • Page 1
  • Page 2
  • Page 3
  • Interim pages omitted …
  • Page 6
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • Every Built-In Vim Color Scheme (with screenshots)
  • Reverse a string in Python
  • Meeting Cost Calculator
  • Vim find and replace
  • What makes an effective development team

Categories

  • Arrays (5)
  • Command Line (9)
  • Dates (3)
  • Featured (7)
  • Git (7)
  • Golang (5)
  • Javascript (8)
  • Productivity (8)
  • Projects (4)
  • Python (15)
  • Regex (2)
  • Ruby (3)
  • Shell (2)
  • Thoughts (2)
  • Tips (11)
  • Tools (3)
  • Tutorials (1)
  • Vim (4)

Archives

  • July 2024 (1)
  • February 2024 (1)
  • January 2024 (1)
  • December 2023 (1)
  • November 2023 (1)
  • October 2023 (4)
  • September 2023 (1)
  • August 2023 (2)
  • July 2023 (5)
  • June 2023 (3)
  • May 2023 (6)
  • April 2023 (5)
  • March 2023 (5)
  • February 2023 (10)
  • January 2023 (6)
  • December 2022 (7)

Copyright © 2025 · Contact me at justin [at] {this domain}

  • Privacy Policy