The Decorator Pattern for C# Developers | Alan P. Barber
Add logging, caching, or retry logic without touching your core classes. The Decorator pattern wraps behavior around existing code while keeping everything testable.
Next up in my continuing series on Patterns for C# Devs!
Want logging? Wrap it. Need retries? Wrap it. Caching? You guessed it. The Decorator pattern lets you stack behavior like Legos without touching your core code.
alanbarber.com/post/the-dec...
26.02.2026 03:57
π 0
π 0
π¬ 0
π 0
π‘οΈ BitCheck v1.0.0-beta.6 released!
A tool for monitoring important documents, photos, and media archives for data degradation. Now built with DotNet 10!
β‘ Lightning fast
π Windows/Linux/macOS
π Open source
Download: github.com/alanbarber/bitβ¦
#DataIntegrity #Bitrot #DotNet
25.11.2025 15:42
π 2
π 0
π¬ 0
π 0
GitHub - AlanBarber/bitcheck: BitCheck - The simple and fast data integrity checker!
BitCheck - The simple and fast data integrity checker! - AlanBarber/bitcheck
Got tired of worrying about bitrot / data corruption on my media server so i built a thing!
BitCheck - A simple CLI tool that hashes files and checks them for corruption
- fast (XXHash64)
- per-directory databases
- cross-platform
github.com/alanbarber/b...
#dotnet #csharp #oss
06.11.2025 03:42
π 1
π 0
π¬ 0
π 0
Anyone using windows dev drives see that it is reporting more usage than files on the actual drive? This morning my drive was reported FULL, I deleted 4-5 GB of old repos but magically over 30GB was freed! Still according the windows there is ~2.2GB of data I cannot find?!?
10.04.2025 18:32
π 1
π 0
π¬ 0
π 0
The finished project. I think it turned out pretty good IMO
27.03.2025 01:04
π 0
π 0
π¬ 0
π 0
Working on building some custom shelves now... Going to do 3 shelves and stain them to match rest of the wood trim, hopefully.
25.03.2025 14:06
π 0
π 0
π¬ 0
π 0
Next project, redoing the laundry room. Ripped off the old cabinet, going to patch up the holes, slap on some nice "antique white" paint and put up some new open wall to wall shelves with more storage room.
23.03.2025 21:36
π 0
π 0
π¬ 0
π 0
Pulling another late night refactoring a bunch of code so we can properly unit test a bunch of code making use of RestSharp. Needed to clean up a bunch of code so we could pass in a HttpClient via DI so our tests could use MockHttp library to fake out 3rd party API calls.
14.03.2025 04:11
π 0
π 0
π¬ 0
π 0
25.12.2024 16:09
π 0
π 0
π¬ 0
π 0
Home
Important Dates
Aug 4: Topic Interest & Readiness Survey
Aug 15: Call for Speakers
Aug 23: Sponsorships Open
Sep 23:Β Call for Volunteers
Sep 30: Sessions Announced
Oct 7: Tickets Go on Sale!
D...
π€ Hey Speakers! π€
Ready to share your tech wisdom and dazzle an audience?
Call for papers will open Aug 15th to Aug 31st.
Polish up your presentation and get ready to submit!
Donβt miss the chance to inspire and be inspired at CodeMash 2025!
π Details will be posted soon at codemash.org π
01.08.2024 16:05
π 0
π 0
π¬ 0
π 0
Hello, world!
01.08.2023 02:14
π 7
π 0
π¬ 0
π 0