Action<T> and Func<T, TResult> in Java 8

Hi, as a .NET/C# coder I found the issue that there is not Action<T> and Func<T, TResult> equivalents in Java environment. I am self-study this to prepare myself to the OCA certification and I had idea that I can use lambda expression and implement simple equivalents of C# delegates in the Java 8. Below you can find implementation with test cases. I found that the code can be very easy, because lambda expressions works as a anonymous Continue ReadingAction<T> and Func<T, TResult> in Java 8


Hi, today I would like to share with you implementation of new SimpleServiceBus that now uses Apache.Thrift and Protobuf.NET and is faster because of that. First reason of use those libraries was of course performance, but also I want to build something completely new which is SimpleDatabaseBroker. For use this code in SQL Server 2012 I needed something different than dependency for System.ServiceModel.dll because that cannot be used as SQL CLR. In other words you cannot use Continue ReadingSimpleDatabaseBroker

Common Communicator

Hi, today I would like to share with you idea of creating common communication components. I did it many times and I have even prepared my own presentation with many examples of such kind of problem solution. After some time of experiments I created few design diagrams that implement communication in minimal and advanced way the same time. So, let me show you what is the design on common communicator that you can create for your own Continue ReadingCommon Communicator

Coder Legacy

In-Proc Agents CommunicationsHello, this is my first article on Aspect Coder Network and I decide to start with some very modern subject of software architecture I am working on by a very long time before on implementation on this idea on .NET/C# technology stack. It takes me about four years to find best practices of this subject. Which is modeling inter process communications as a key of aspects designing for modeling multi agent environment. It is useful Continue ReadingCoder Legacy

Generic Free Pattern

Hello, below you can find C# 2.0 Generic Free Pattern example that I just invented ;). Only generic code is invoked but it is called like without generic type. I have better idea of implementation of this pattern but it needs introduction of 3rd usage of out keyword in C# and I cannot make it. However I could made this pattern and I hope you like it. Now you can write generic code that is used like Continue ReadingGeneric Free Pattern

Data Model Async

Hi, I saw million times solution with ThreadPool or sometimes event with new async keyword in C# 5.0. And so many times I want to tell people that their doing it in wrong way. about a half of year ago someone told me that I have tendency to keep too much only for me. I am trying to change this. So, what is best way do do async? it is by using data model and publisher consumer Continue ReadingData Model Async

New Bonsai and Fastest Binder

Hi, I am very happy to say that I have new one bonsai tree :), I know I have them everywhere. This one will be grow up on my desk in my new work place. Reason for having bonsai trees and carry of them is because of my favorite team role that is the Plant and I like plants, especially bonsai trees as you all may already know. I want to say also that acting Plant/Creator role Continue ReadingNew Bonsai and Fastest Binder

Performance Manager Aspects (New)

Hi today I created powerful combination of performance aspects. First MemoryManagerAspect<T> and second ThreadsManagerAspect. Both of that ideas are for very fast services created on multicore systems. I will show you code that produce following output that can be a proof that it is possible to create very low latency and asynchronous code in C#. This code was produced by Idea of two performance aspects. First manages memory to help in a garbage collector work and second Continue ReadingPerformance Manager Aspects (New)

WebSockets on Windows Server 2012 with WCF 4.5 after TuneUp

Hi, today I try to tune up my last example with very trivial way with buffer. Now my example is much faster. Buffer for sending data usual have array form. In my example I change “double value” into “params double[] values” parameter. With that modification older implementation can still works just fine, but when someone wants to use buffered array values it is possible now in elegant way. Do did so by changing a little bit a Continue ReadingWebSockets on Windows Server 2012 with WCF 4.5 after TuneUp

WebSockets on Windows Server 2012 with WCF 4.5

Hi, today I was wandering about new features in .NET 4.5 and I try to examine in practice WebSockets feature. This feature is supported by Windows Server 2012 only. And I try to find an elegant example of running it. There was not any interesting and elegant solution on the Internet so I prepared my own for this blog entry. I used Visual Studio 2012 to implement 3 assemblies WebSocketsSandbox.Contracts with interfaces, WebSocketsSandbox.Server with service host site Continue ReadingWebSockets on Windows Server 2012 with WCF 4.5