# 147 - How to fix a bug

> Episode of [How To Code Well](https://podistic.com/podcast/how-to-code-well.md) · Published February 24, 2022 · Duration 48:21 · Episode 147, season 4

- **Listen on Podistic:** https://podistic.com/episode/147-how-to-fix-a-bug
- **Audio:** https://anchor.fm/s/2d0cded8/podcast/play/48161013/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2022-1-24%2F8098ba5f-55a8-0203-47ce-b892a0586e94.mp3 (audio/mpeg)

## About this episode

**Change log** 

\- Yesterday I gave a talk about PHPStan and code confidence to PHP South West 

\- I’m going to give the talk again:  

[The Symfony user group in Portugal on the 22nd of Feb  ](<https://www.meetup.com/pt-BR/sfugaveiro/events/283356907/ >)

[North West Drupal User group on the 8th of March ](<https://www.meetup.com/nwdrupal/events/283808251/ >)

\- On Tuesday we fixed a unit test which turned out to be a larger issue than I expected and uncovered a big code smell which I need to fix in the coming evenings.  

\- I did a YouTube, Twitter and Discord poll about stopping the music whilst live coding.  I will leave the poll going until the end of the week but so far it looks like you lot prefer silence when I code.

**The stages of bug fixing** 

1.  Investigation and discovery
2.  Testing and verification
3.  Fixing
4.  Testing and verification
5.  Deployment

[Watch the show on YouTube](https://youtu.be/LnqXBv8d20Q)

Contact me and let me know [your thoughts or get something read out on air.](https://howtocodewell.fm/contact)

My web development courses

➡️ [Learn How to build a JavaScript Tip Calculator ](https://www.youtube.com/watch?v=l3cUp-HEmuI\&list=PLZdsdjcJ44WVa4lhVwkCtQPSG8aqgjzjK)

➡️ [Learn JavaScript arrays](https://www.youtube.com/watch?v=K3WzmRXtExg\&list=PLZdsdjcJ44WWaBGywrjhXjlJnilh6Z0NX)

➡️ [Learn PHP arrays](https://www.youtube.com/watch?v=C9gILLIyV-M\&list=PLZdsdjcJ44WUWbArkekAHznqfJ60vW8V_)

➡️ [Learn Python](https://www.youtube.com/watch?v=mYt8kFobRBc\&list=PLZdsdjcJ44WXkZs76CYt5n9pW6j3WmWeJ)

✉️ [Get my weekly newsletter](https://email.howtocodewell.net/signup)

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = [Live Podcast YouTube](https://www.youtube.com/howtocodewell/live)

Sundays 14:30 - [Live coding on Twitch](http://twitch.tv/howtocodewell)
