• 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

Golang iota explained

Posted Apr 7, 2023 — Updated Jan 10, 2024

If you’ve worked in Go, you’ve likely seen iota. Here’s how the Go docs explain it: Within a constant declaration, the predeclared identifier iota represents successive untyped integer constants. – The Go Docs That sort of makes sense, but let me put it into plain English. iota is used when declaring a list of constants, […]

Filed Under: Golang

Save your shell history to log files

Posted Mar 28, 2023 — Updated Oct 26, 2023

Every command I enter on my computer is written to a log file. These logs have come in handy countless times; I tell anyone who will listen to save their logs too. My inspiration for doing this came from this atomic object post many years ago, and I am so glad I followed their advice. […]

Filed Under: Command Line, Featured, Productivity, Tips

Javascript map function

Posted Mar 27, 2023 — Updated Jan 10, 2024

The javascript map() function takes in a callback function, applies that callback function to each element of an array, and returns a new array containing the results. Many languages have a map function, and they all behave roughly this way. Javascript map basics map() accepts a single callback function, and passes each element of the […]

Filed Under: Arrays, Javascript

Javascript forEach

Posted Mar 13, 2023 — Updated Jan 10, 2024

Javascript’s forEach method is one of its basic array methods, and it’s used all the time. It does as its name suggests, and performs a function for each element of an array: In the function above, I only accessed one argument, item. However, forEach actually makes 3 arguments available to its callback function if you […]

Filed Under: Arrays, Javascript

Python for loops

Posted Mar 6, 2023 — Updated Jan 10, 2024

For loops in Python are one of many features that make Python so popular; they’re as close to plain English as you can get when writing software. They generally look like this: What is an iterable? According to the Python docs an iterable is: An object capable of returning its members one at a time. […]

Filed Under: Python

Pointers in Go

Posted Mar 4, 2023 — Updated Jan 10, 2024

If you’re used to working in dynamic languages like Javascript, Ruby, or Python, Golang feels very different. One of the big differences is the explicit use of pointers. You might find yourself asking these questions: I have practical answers! Golang ampersand & and asterisk * Obtain an address with & Let’s start with &. It […]

Filed Under: Golang

Python List Comprehensions

Posted Feb 28, 2023 — Updated Jan 10, 2024

List comprehensions provide you with a “concise way to create lists”, according to the official docs, but they do a lot more than that. They’re a great feature of Python; let’s do a few examples to illustrate why. List comprehension as a map function The example above is the same as using a map function […]

Filed Under: Python

Git log customization

Posted Feb 25, 2023 — Updated Oct 26, 2023

The git log command outputs a lot of useful information—message, author, date, hash, branch—but its default format leaves something to be desired. Mostly, it just takes up too much screen space. Here’s an example, using the popular Python package flask: The default git log above has all the information we want, but just two commits […]

Filed Under: Featured, Git, Tips

Copy and paste from the command line

Posted Feb 22, 2023 — Updated Jan 10, 2024

We use copy and paste all the time, so why not use them from the command line? I do it all the time, so let’s do a quick run down. First, the commands: Copy something from the web and paste it to a file This is my most frequent usage of either of these commands, […]

Filed Under: Command Line, Productivity, Tips

Git commit and commit message best practices

Posted Feb 19, 2023 — Updated Nov 6, 2023

I’ve seen lots of advice about git commits and messages over the years—some good, some not so good. This post will go through what works for me. Note: I’m no git workflow expert, these are just my personal opinions developed over ~10 years working at startups. Commit Best Practices: Commit Message Best Practices: Let’s go […]

Filed Under: Featured, Git, Thoughts, Tips

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • 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