Categories
Projects and Code

Learn event store with file-based example

Creating an event-based application backed by an event store persistence seems to be most reasonable and predictable way to have flexible software. These less than 200 lines present a simple, training implementation of a a file-based single-threaded event store through which I’d like to present this idea. Prequisites Create .NET console app Paste all the […]

Categories
Pondering

Look for solution in problem space

I like to say that developers are not code writers, but system designers. They’re not there to type code, but to provide a solution for a given problem. An important detail is that a solution for a problem is not exactly the same as a solution that meets the requirements document. Not too vague, not […]

Categories
Clean Code

Never expose boolean

Imagine a startup creating a management system for a company that operates in a single country. Sooner or later, there comes a feature to distinguish contractors between home country and foreign ones. You may imagine a developer introducing a small private class with a boolean property IsForeign, so the class that represents a contractor looks […]

Categories
Clean Code

Are you sure you write object-oriented code?

Most of us take for granted that object-oriented paradigm is not only mature, but the “good” way of developing applications. Despite the fame of functional programming which, as time goes by, becomes a real power, most of software is created in the object-oriented way. Or at least we believe so. But following the principles is […]