Category Archives: Code Examples

SaturdayMP Show 60: Advent of Code 2024 (Day 2)

In this episode I solve the Advent of Code 2024 Day 2 problem. I solve it using Python, a language I’m not very familiar with. I did learn that Python lists allow negative indexing, which confused me at first. Do … Continue reading

Posted in Code Examples, Saturday MP Show | Tagged , , | Comments Off on SaturdayMP Show 60: Advent of Code 2024 (Day 2)

SaturdayMP Show 57: Something’s Rotten at the Gilded Rose: A Refactoring Tale

In this episode I tackle the famous Gilded Rose refactoring kata as practice for my upcoming Edmonton .NET User Group (EDMUG) presentation. One of the great things about the Gilded Rose kata is the different ways to “solve” it. What … Continue reading

Posted in Code Examples, Edmonton .NET User Group, Presentations, Saturday MP Show, Software Development | Tagged , , , , , | Comments Off on SaturdayMP Show 57: Something’s Rotten at the Gilded Rose: A Refactoring Tale

SaturdayMP Show 36: picoCTF Gym

In this episode I do some picoCTF exercises inspired by the picoCTF 2024 competition starting. The last problem was a Unicode byte problem that I figured out with help from GitHub Copilot. I don’t fully understand the solution so let … Continue reading

Posted in Code Examples, Saturday MP Show, Security | Tagged , , , | Comments Off on SaturdayMP Show 36: picoCTF Gym

SaturdayMP Show #29: Upgrading Website from Rails 6.1 to 7.0 Part 2: Upgrading Rails

In this episode I do the actual upgrade from Rails 6.1 to 7.0 for the SaturdayMP site. The upgrade actually goes pretty smooth aside from an issue setting up the system tests. Does not include removing Webpacker which I will … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , | Comments Off on SaturdayMP Show #29: Upgrading Website from Rails 6.1 to 7.0 Part 2: Upgrading Rails

SaturdayMP Show #22: Adding Basic Auth to NGINX Passenger Docker (Part 2)

In this episode I get the Basic Authentication NGINX configuration working using the envsubst tool to replace environment variables in the config file. Ran out of time to test the fix in actual staging. That will hopefully be done in … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , , , | Comments Off on SaturdayMP Show #22: Adding Basic Auth to NGINX Passenger Docker (Part 2)

Saturday MP Show #12: Refactoring of a System Test While Fixing the Standard Ruby Linter ToDo Bug

Getting to the end of fixing the Standard Ruby Linter ToDo bug. In this video I refactor and remove duplicate code from a system tests that are similar. It goes well for the most part. The only hiccup is the … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , , , | Comments Off on Saturday MP Show #12: Refactoring of a System Test While Fixing the Standard Ruby Linter ToDo Bug

SaturdayMP Show #11: Refactoring System Tests for the Standard Ruby Linter Todo Bug

The system test is finally working!! I go over, again, why it’s important to make sure your tests fail. Now that the test is working I start refactoring it to remove duplicate code. Spent longer then I would have thought … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , , | Comments Off on SaturdayMP Show #11: Refactoring System Tests for the Standard Ruby Linter Todo Bug

Saturday MP Show #10: Finally get the System Test Working for the Standard Ruby Linter ToDo Bug

I get my system test working at the start of video but the problem is it works so well that it still passes even after I re-introduce the bug when it should have failed. Crap! That means my test is … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , , | Comments Off on Saturday MP Show #10: Finally get the System Test Working for the Standard Ruby Linter ToDo Bug

Saturday MP Show #9: Add 1.9 (e.g. almost 2) System Tests for the Standard Ruby Linter ToDo Bug

I get one system test working for generating the todo file and almost get the second test working. The second test that actually tests the bug we fixed. Went down a bit of rabbit hole trying to get the optimal … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , , , | Comments Off on Saturday MP Show #9: Add 1.9 (e.g. almost 2) System Tests for the Standard Ruby Linter ToDo Bug

Saturday MP Show #8: Another Failure at Adding System Test for the Standard Ruby Linter ToDo Bug Fix

Similar to the previous episode I fail at adding a system test. Should I be live coding all these failures? I think so. Maybe? Do they make boring videos? Probably. Should I say “ummm” less? Most definitely. I think there … Continue reading

Posted in Code Examples, Saturday MP Show, Software Development | Tagged , , , | Comments Off on Saturday MP Show #8: Another Failure at Adding System Test for the Standard Ruby Linter ToDo Bug Fix