• The Cake Pattern

    Let’s think a bit about how you should structure your program. If your codebase has less than 500 lines of code it is not really that hard to manage. You can simply manually create the objects and their dependencies to construct your application. The problem emerges when your codebase grows. Managing hundreds of dependencies manually is a tedious task. We need some kind of mechanism to do that for us. If you know Java you probably have heard about Dependency Injection (DI) and Inversion of Control (IoC). This is one way to approach the problem. There is another one and it’s called Cake Pattern.

    Read more »
  • Custom Collectors in Java 8

    Java 8 sure did bring a few interesting features. One of them are definitely the streams. Internet is full of the instructions on how to create and use them. Today I’d like to talk about something a little bit different - collectors.

    Read more »
  • The Mighty Monad

    When you begin to learn functional programming everybody is telling you that pure functions with no side effects are the only way to go. This is fine up to the point. Sooner or later you will hear about monads. This post tries to explain what the monad is and why you should use it.

    Read more »
  • No one expects the Spanish functions

    Scala, as a functional language, treats functions as first class citizens. Of course it’s also object oriented language. Those two paradigms can be seen as conflicting with each other. In this post I’d like to show you some different ways of creating a functions in Scala to show that these two worlds can coexist.

    Read more »
  • Optional in Java 8

    Recently I’ve been a part of self-educating team. My workmates and I decided to learn Java 8 features so we could use it at work. Each of us have one or two topics to cover and we had to teach each other about the cool new features like streams or better type inference. My part was to cover the Optional class, and today I’d like to show and explain how and why you should use it.

    Read more »
  • Why I abandoned my old blog?

    This blog has very little content, but I’m not new to blogging at all. In fact I’ve been publishing my thoughts and ideas online for a few years now. The only problem is that I’ve got tired of it. I don’t mean blogging. I mean writing posts.

    Read more »
  • Don't Use Vim if you like your job!

    If you’re like me you probably like to make your life easier wherever and whenever it is possible. I also like to pick up the gauntlet and try something new and challenging. This is why I started to use Vim.

    Read more »
  • Pattern Matching in Scala

    Not so long ago I gave a presentation about Scala and ScalaTest to my co-workers. This was just basics as I wanted to give them a good and solid base for future researching this language. As it turned out - I probably learned a lot more than they did from this :)

    Read more »
  • Scalartemis

    Recently I’ve been creating entity component framework which I named Scalartemis. Name is direct descendant of two words. First (surprisingly) is Scala - the language it’s written in. Second is Artemis.

    Read more »

Subscribe via RSS