C#

Lazy evaluation in C#

By Vlastimil Adamovsky

Sometimes you want to use a value, which takes a long time to compute, but you don’t want to compute it before you know that you really need it.  When you need it the very first time, it will be calculated and when you need it any other time, the cached value will be used…. »

Programming challenge - have fun #2

By Vlastimil Adamovsky

If you are tired of  “monkey coding”, try to solve some interesting problems.
Requirement: There is an array of integers  from 1 to n.    1 and only 1 number is missing. It means an array of numbers from 1 to n has size of  n - 1 because one number is missing for sure.
Please, send… »

Programming challenge - have fun #1

By Vlastimil Adamovsky
btree

If you are tired of  “monkey coding”, try to solve some interesting problems.
Requirement: There is a Binary search tree , write a program, which will calculate distance from one node to another. For example, on the picture below, the distance from 25 to 76 is 5.
I have come up with a code, please, try… »

Seaside in C#???

By Vlastimil Adamovsky

While working on “system analysis” for IronGlue, I played a little bit with Seaside for VisualWorks. It is a development environment for creating business websites ..
It is great, but in order to reach masses, one has to implement stuff in mainstream languages which people are hysterically crazy about, now the phenomena… »