Refactoring A PDF And Web Scraper Part 2 // CODE ROAST

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In part 2 of this PDF and web scraper refactoring, I clean up the ScrapeRequest class and show you a few suggestions for how to deal with configuration settings in a data science/scraper project like this. If you haven't watched part 1 yet, here's the link:    • Refactoring A PDF And Web Scraper Part 1 /...  . The code I worked on in this episode is available here: https://github.com/ArjanCodes/2021-co.... 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 1:19 Example recap 3:22 What I'll do in this part of the refactoring 3:32 Cleaning up the FileRequest subclasses 8:56 Cleaning up the ScrapeRequest class hierarchy 12:22 Moving utility functions to a separate file 16:15 Removing the duplication from logging 19:12 Moving configuration settings to a separate file 23:38 Tips for dealing with configuration settings 25:34 Removing hardcoded word lists 28:04 Passing around configuration settings 32:50 Final thoughts #arjancodes #softwaredesign #python

Refactoring a Battleship Game in Python // Code Roast Part 1 of 2
▶︎

Refactoring a Battleship Game in Python // Code Roast Part 1 of 2

Refactoring A Data Science Project Part 1 - Abstraction and Composition
▶︎

Refactoring A Data Science Project Part 1 - Abstraction and Composition

Refactoring A Tower Defense Game In Python // CODE ROAST
▶︎

Refactoring A Tower Defense Game In Python // CODE ROAST

Don’t Use Boolean Flags in Python, Use Policies Instead
▶︎

Don’t Use Boolean Flags in Python, Use Policies Instead

Quantum Just Killed AI Data Centers
▶︎

Quantum Just Killed AI Data Centers

Trump Brags About His Brain, Crowd Size & Pool, CBS Fires Scott Pelley & Don Jr's Honeymoon Video
▶︎

Trump Brags About His Brain, Crowd Size & Pool, CBS Fires Scott Pelley & Don Jr's Honeymoon Video

Palantir and Switzerland – Between Data and Power | Reporter | SRF
▶︎

Palantir and Switzerland – Between Data and Power | Reporter | SRF

Refactoring a Rock Paper Scissors Lizard Spock Game // Code Roast Part 1
▶︎

Refactoring a Rock Paper Scissors Lizard Spock Game // Code Roast Part 1

Trump Wants White House UFC Ring to Stay & NJ Candidate Tom Kean Is MIA | The Daily Show
▶︎

Trump Wants White House UFC Ring to Stay & NJ Candidate Tom Kean Is MIA | The Daily Show

Refactoring a Python Data Validation Interactive Shell
▶︎

Refactoring a Python Data Validation Interactive Shell

Why AI Agents are either the best or worst thing we’ve ever built
▶︎

Why AI Agents are either the best or worst thing we’ve ever built

Conan O’Brien Delivers the Commencement Address | Harvard Commencement 2026
▶︎

Conan O’Brien Delivers the Commencement Address | Harvard Commencement 2026

7 Python Mistakes That Instantly Expose Junior Developers
▶︎

7 Python Mistakes That Instantly Expose Junior Developers

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup
▶︎

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

I Predicted This War. Here Is Exactly What Happens Next - Professor Jiang
▶︎

I Predicted This War. Here Is Exactly What Happens Next - Professor Jiang

How AI will change software engineering – with Martin Fowler
▶︎

How AI will change software engineering – with Martin Fowler

Building the PERFECT Linux PC with Linus Torvalds
▶︎

Building the PERFECT Linux PC with Linus Torvalds

CODE ROAST: Yahtzee - New Python Code Refactoring Series!
▶︎

CODE ROAST: Yahtzee - New Python Code Refactoring Series!

Why the Plugin Architecture Gives You CRAZY Flexibility
▶︎

Why the Plugin Architecture Gives You CRAZY Flexibility