Long break coming to an end
After a relatively long break, I want to share with you some updates about the future of this blog. As some of you might have noted, I had a very long period without new posts coming in. It is about time to share what had changed the last few months and a little about what the future holds. Read more
Rust for OOP - Closures
Turning functions into first-class citizens in our programming languages is one of the major changes of the decade. Well, kind of. The concept, also known as lambda, is far from new. Functional programming languages had it from the very start, during the late ’50s. Even some of the object-oriented languages like Python had it quite early, back in 1994. However it became an official part of C++ only in 2011, and Java brought it even later in 2014. And with those two languages and many others, it became the norm, even for non-functional programming. As first-class citizens, functions can be saved as variables or transfer as arguments to functions easily. Read more
Rust for OOP - Enums & Pattern Matching - Part 2
We will continue the previous post with two complementary examples. Both will demonstrate the capability of enums to push various language constructs and states into the type system. Read more
Rust for OOP - Enums & Pattern Matching - Part 1
We continue our series “Rust for OOP” with Enums & Pattern Matching, one of my preferred features of Rust. I didn’t hear about it before getting into the language, yet immediately fell in love with it. Enums are simple, expressive, reducing code bloat, enable encapsulation, easy to understand, and reason with. It also enables many useful design pattern. Read more