KCKuba Ciechowskiinblog.ciechowski.net·Sep 14, 2022 · 3 min readWriting business oriented testsIt took me years to figure out what was wrong with writing tests against the implementation.I knew the theory. Focus on the business-specific behavior and write tests before an actual code.But it was hard. I never understood how I could write tests b...00
KCKuba Ciechowskiinblog.ciechowski.net·Dec 31, 2021 · 2 min readModeling exceptionsModeling exceptions is hard. On the surface, it seems easy. Everyone knows what an exception is, right? But when you think deeper about it, there are a lot of traps that you can fall into. Throwing an exception is a goto Exceptions are hidden goto s...00
KCKuba Ciechowskiinblog.ciechowski.net·Nov 12, 2021 · 2 min readSurround template for string interpolation in Jetbrains RiderI dig string interpolation in C#. It is concise and easy to use. And even though JetBrains Rider is known for making developers super productive with all kinds of templates and shortcuts, there was one thing I've missed - the ability to surround a v...00
KCKuba Ciechowskiinblog.ciechowski.net·Oct 24, 2021 · 1 min readHttp call using F# and HttpClientIt took me a few tries to finally call an HTTP endpoint using F#.I've ended up with this code: let result = async { let client = new HttpClient() let url = "https://api.frankfurter.app/latest?amount=10.99&from=USD&to=PLN" ...00
KCKuba Ciechowskiinblog.ciechowski.net·Sep 25, 2021 · 2 min readPartial application using delegates in C#I'm a big proponent of using delegates instead of interfaces as described here. Recently I've found out that it works wonderfully with the partial application! Partial application is a concept widely used in functional programming. It's a function th...00