Dev Tip: Simple tips to improve code reviews

Writing perfect code is a challenging process. That’s where code reviews come in to help double check your work.
The code reviewer’s job is to check for business and logic errors in the code changes. Here are simple tips to help the streamline the process.

1. Have the build system that checks if the code changes breaks the build!


Integrate with GitHub: build after each commit (Get started with Jenkins, part 13) – Simply Explained – Savjee

2. Implement a short checklist for all pull requests for both the author AND code reviewers.
Here’s a guide for setting up a pull request template in Github. Tips on creating a good pull request template here.

3. Include a code static analysis tool into the build system.
Here’s a github repo that for the job. -> Awesome Static Analysis

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
TwitterLinkedInYouTube

Dev Tip: Use Tabs to Autocomplete File Paths

Save your pair programming partner pain from watching you type out every letter in a file path.
Use tabs to auto complete the file paths!

Most commands support auto-completing file paths by inputting a few of the starting letters of the file path then hitting tabs.
This works in DOS, PowerShell, and the terminal in Linux and MacOS.

Protip: Create a custom alias to the directory that you’ll routinely navigate to.
More info here

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
TwitterLinkedInYouTube

Dev Tip: Sort content in clipboard on MacOs & Linux

Run this in your terminal to sort the text in your clipboard

pbpaste | sort | pbcopy

Use `sort -n` to sort lines beginning with numbers.

pbpaste | sort -n | pbcopy

Code Break Down:
`pbpaste` paste the clipboard content into the standard input.
`sort` sorts the standard input.
`pbcopy` copies what comes from the standard output.

Run `man sort` to fine out more about the sorting options.

In Linux, you can add support for `pbpaste` and `pbcopy` by adding aliases commands to `xclip` in your ~/.bash_rc.
More information here

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
TwitterLinkedInYouTube