• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for Recommendations

Recommendations

Git Branch Naming

Last updated on February 26, 2023 by Sal Ferrarello

There are lots of ways to name Git branches. These are my personal rules I’ve developed for naming Git branches.

Filed Under: Computing, Dev Tips, Recommendations Tagged With: Git

Don’t Do It Now, Open an Issue Instead

Last updated on February 26, 2023 by Sal Ferrarello

When working on an issue, it is easy to get sidetracked by other unrelated changes that need to be made. I’ve found that instead of addressing other issues as I spot them, taking a moment to open an issue and then ignoring them allows me to stay focused on the task at hand.

Filed Under: Dev Tips, Programming, Recommendations, Solution Tagged With: focus, lifehack, motivation

Git autoSetupRemote Prevents “no tracking information” Error

Last updated on November 14, 2022 by Sal Ferrarello

After creating a pushing a new branch to GitHub (or any remote), when I do “git pull” I often get an error that says “There is no tracking information for the current branch”. The Git config value “autoSetupRemote”, introduced in Git version 2.38, lets us avoid this entirely error.

Filed Under: Computing, Dev Tips, Recommendations Tagged With: Git, gitconfig

Tarenheit: A New Temperature Scale

Last updated on September 18, 2022 by Sal Ferrarello

My son is studying unit conversions in school and as a family we were discussing how you can’t use the same technique (multiplication) when converting between Celsius and Fahrenheit. Out of this conversation came a new temperature scale, Tarenheit (rhymes with Fahrenheit). Tarenheit is exactly 32° less than Fahrenheit.

Filed Under: Math, Recommendations, Solution Tagged With: lifehack

Three yo-yos.

Yo-yo Intro

Last updated on August 6, 2022 by Sal Ferrarello

I started yo-yoing approximately one week before the original draft of this post. During that time I learned a lot of introductory information from different sources. This is the blog post I wish I had when I started yo-yoing.

Filed Under: Happy, Recommendations Tagged With: toys, yo-yo

Always Bring Your Pull Requests Up to Date

Last updated on April 26, 2022 by Sal Ferrarello

A Pull Request (PR) should always be up to date with the branch into which it is being merged. Another way of saying this is you should be able to merge your PR as a fast-forward merge (even if you decide not to do a fast-forward merge). In this post we’ll look at how a safe looking PR that is out of date can be catastrophic to merge.

Filed Under: Computing, Dev Tips, Programming, Recommendations Tagged With: Git

Intermediate Git

Last updated on March 3, 2023 by Sal Ferrarello

I’ve been using Git for a number of years. When I was a Git beginner, I followed some prescribed steps and things worked – most of the time. This seems to be a pretty common experience for people starting out with Git. The magical part is when I started to understand Git, when I went from beginner to intermediate. These are some blog posts and videos that would have helped me with that transition.

Filed Under: Dev Tips, Recommendations Tagged With: Git

WordPress Hooks and PHP Namespaces

Last updated on July 22, 2021 by Sal Ferrarello

While PHP namespaces allow you to refer to a function in file without using the fully qualified name, there is a catch when adding a WordPress hook or filter. The PHP __NAMESPACE__ magic constant can be helpful in this situation.

Filed Under: Dev Tips, Programming, Recommendations Tagged With: PHP, WordPress, WordPress Filter

phpunit.xml vs phpunit.xml.dist

Last updated on April 20, 2021 by Sal Ferrarello

As a PHP programmer I’ve seen projects with a phpunit.xml file or a phpunit.xml.dist file (or even both, which is a mistake). These are configuration files for PHPUnit but why the two different file names? PHPUnit first tries to use phpunit.xml and if that file does not exist, then it tries to use phpunit.xml.dist instead. PHPUnit only uses one of these files, never both.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming, Recommendations Tagged With: PHP, PHPUnit

JavaScript Or (||) Versus Nullish Coalescing Operator (??)

Last updated on November 3, 2022 by Sal Ferrarello

The “or” (||) operator and the “nullish coalescing operator” (??) can often be used in similar ways when reading a property from an object that may or may not exist. When dealing with strings you’re typically better off using “or” (||) and for numbers you’re typically better off using the “nullish coalescing operator” (??).

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming, Recommendations Tagged With: JavaScript

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

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in