In the dynamic realm of coding, the judicious use of conditional statements is pivotal to writing robust and maintainable software. This blog post will guide you through the art of mastering conditional-free code. We’ll explore powerful strategies and provide real-world examples to help you elevate your coding skills. From functional programming principles to design patterns and hands-on refactoring, this post is your gateway to writing cleaner, more elegant code that minimizes reliance on traditional if statements. Join us as we dissect the intricacies of code logic and unlock the potential for more efficient, readable, and scalable solutions.
Category: Theory
-
MVVM Pattern – Model View View Model
Let’s learn all about what MVVM is through practical examples.
(more…) -
Creating your own UrlHelper Extension with MVC
When you have a website with a lot of static content: images, Javascript, CSS, etc… you will find yourself constantly typing out the same path information with the exception of the name of the actual file. Creating a class extension to the UrlHelper can help greatly reduce your development efforts with a few simple additions.
-
Speeding up my unit tests
I hope this isn’t too extremely obvious, but I found that I had to take a step back and re-examine my unit tests to find this simple improvement to speed up my unit tests.
When I wrote about how I’m hooked on test-driven development (TDD), the example in that post was too simple and time savings are not noticed. However, let’s dive in to something a little deeper where we have a full class to test oppose to a single internal function.
-
How I overcame my anxieties
Like millions of regular people, I have anxieties. I have a rough time sleeping, I stress, and I get depressed. Very typical behavior for many people.
Rather than pretending these issues were not real, I built an Android application and met them head on! I created Behavior Therapy Tracker and through its constant use I was able to overcome many of my anxieties.
Let me explain my story and I hope it can help you as much as it has helped me.