An Introduction to Reactive Programming with RxJava – Part 1

Nowadays, the term reactive programming is trending. Libraries and frameworks in various programming languages are emerging. Blog posts, articles and presentations about reactive programming are being created. Big companies, such as Facebook, SoundCloud, Microsoft, and Netflix, are supporting and using this concept. So we, as programmers, are starting to wonder about it. Why are people […]

Continue Reading

Runtime AOP tools

Runtime AOP tools create decorator/proxy classes dynamically at runtime. These classes are built by examining the signature of classes/interfaces along with an interception aspect that you’ve written, then generate a decorator class. Typically, these tools are part of IoC containers, as such containers allow you to use these generated classes transparently. My goal in this […]

Continue Reading

Expression Vs Function in Entity Framework

Sometimes developers don’t know whether they should use a Func<> or an Expression<Func<>> with the Entity Framework and LINQ. The difference may be critical in same situations. Let’s say that you have a metod that perform a query with a where condition made as this: public IEnumerable<MyEntity> LoadMyEntities(string parameter) { return Context.MyEntities.Where(x=>x.sameValue==parameter); } If you have to use the […]

Continue Reading

Mocks aren’t stubs (Just a quick review)

I know that Martin Fowler has written about this extensively, but I wanted to write a concise version, since this point seems to bear reiterating from time to time. Mocks aren’t stubs. Specifically, I recommend against setting an expectation on a method (“mocking” it) when you really want to simulate a specific response from that […]

Continue Reading