131 - 10 Git branching good practice tips

Let's talk about 10 good practice tips when using Git.  

Podcast Notes:  

PHP News: Swoole is a PHP extension that has been forked due to on going security concerns. The current version of Swoole downloads a compressed file from the business Swoole site which is NOT GOOD!  This file is a gzip file which is downloaded to your application.  

Apparently many attempts were made to raise this concern with the current maintainer of Swoole but nothing happened.  After these concerns were un-heard the PHP community decided to fork Swoole and remove the ability to run remote code from the Swoole business site. 

The forked alternative is called Open Swoole.  

Read more about it here: https://news-web.php.net/php.pecl.dev/17446  

Theres a new Apple event on the 18th of October. 

10 Git Branch good practices  

  1. Run code audits before merging into a work flow branch to prevent pipeline blockages 
  2. Put config into a separate branch to the feature 
  3. Use a GUI to inspect right, left, middle merges 
  4. Communicate and talk through conflicts with other developers 
  5. Don’t squash commits.  History is good 
  6. Regularly merge the main branch into the feature branch 
  7. Always get a team mate to review your code.  Even if its the smallest code change 
  8. Keep to a good branch naming convention 
  9. Separate code maintenance, features and fixes into their own branches - Be aware of what other features use your code 
  10. Use messaging platforms like Slack or Discord to inform your team that something has been merged. Also use this to tell your team if the code audits have failed 
  11. Fix any failed code audits before doing anything else.

Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

My web development courses

➡️ Learn How to build a JavaScript Tip Calculator 

➡️ Learn JavaScript arrays

➡️ Learn PHP arrays

➡️ Learn Python

✉️ Get my weekly newsletter

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = Live Podcast YouTube

Sundays 14:30 - Live coding on Twitch