Tag Archives: Example
iChess.io Friend Mode
Generate X-FENs for Chess960
Hello, today I would like to share code spike for generation of stating positions of X-FEN chess notation for Chess960 variant. Enjoy! :-). p ;).
Action and Func 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 for the OCA certification, and I had the idea that I could use lambda expression and implement simple equivalents of C# delegates in Java 8. Below you can find implementation with test cases. I found that the code can be straightforward because lambda expressions work as anonymous methods in C#. Moreover, use T as an internal class of method. You can have an entity available inside the lambda and outside, too, so Continue ReadingAction
ParallelExecutorAspect in C#
Hi, today I would like to share with you idea of right parallel execution of actions/methods. Imagine at the beginning that you have a queue of messages and even some threads that, in parallel, get messages from the queue and then do background work. If that message executes actions on the relational database, you will quickly find that some of your work is done right. Still, you get timeouts, deadlocks, or any other errors that are difficult to repeat. That mostly is because you parallel actions that want to use the same data resources. Now you can go to your Continue ReadingParallelExecutorAspect in C#
ODBBrowser
Hi, today I would like to share with you a small project I wrote in 2006 during my experiments with Oracle Database and C# that just launched, this time ADO.NET. At this time, there were few tools for simple writing queries and easily executing them, so I decided to write on my own small tool that took about 350 lines of C# code and allowed me to do experiments. And I dug today my hard drive, and I found it and was pleased that it works. So the screens are from today play with it. I think that you can Continue ReadingODBBrowser
