Here is a brief technical explanation of MVVM, which contains enough detail (borrowed from its WPF implementation) and examples to allow the reader to grasp how it actually works.
2021-01-16
2021-01-03
Object Lifetime Awareness
The Thinker (French: Le Penseur) by Auguste Rodin (From Wikipedia) |
Abstract
2020-12-21
Coherence: The Assertable Lock
Abstract
A Software Design Pattern for concurrent systems which makes race conditions something that can be asserted against and thus deterministically eliminated rather than stochastically reduced or minimized. (Subject, of course, to the thoroughness of the assertions.)
Image by reginasphotos from pixabay.com |
A description of the problem
Every Software Engineer who has dealt with concurrency knows that it is hard. The bane of concurrency is race conditions: when a thread accesses data without taking into account the fact that the data is shared with other concurrently running threads which may alter that data at any unforeseeable moment in time.
2020-12-19
The famous "Could not load file or assembly or one of its dependencies" error message
If you have ever done any software development under Microsoft Windows you have probably come across this famous error message: "System.IO.FileNotFoundException : Could not load file or assembly 'Acme.dll' or one of its dependencies. The specified module could not be found."
Modern software makes heavy use of dynamic link libraries, and the problem with this kind of libraries is that for various reasons they might not be there when you need them, resulting in runtime errors. This is the runtime error you get under Windows when this happens.
Naturally, when you see this message, the first thing to do is to check whether Acme.dll is there, and what you usually discover is that the file is indeed there. When dealing with computers, most error messages that you come across tend to leave some room for troubleshooting, but when the system is reporting that a certain file does not exist on your very own filesystem, while the file is most certainly there, the situation seems really hopeless. You are stymied.
2020-11-14
Ferolli HR OptiFor OT-V Ventilation Unit User's Manual in English
In a previous post I published the Ferolli BlueSense Boiler User's Manual in English. Here is the manual of the ventilation unit.
Click on the pictures below for the documents.
2020-10-19
The Wild, Wild Web
This is a little history of the early World Wide Web (WWW) for the benefit of the younger generation which may have not experienced the Internet in its infancy and therefore might not be aware of the horrors that it involved, and why certain things have come to be the way they are today.
As you are reading this, and thinking to yourself that it could not possibly have been as bad as I am describing it, remember, the general public was experiencing it using 2400 baud modems.
2020-06-26
Domain Oriented Programming
Part 1: Dependency Inversion
2020-05-30
On Validation vs. Error Checking
Conventional wisdom says that validation is different from error checking.
- Validation is performed at the boundaries of a system, to check the validity of incoming data, which is at all times presumed to be potentially invalid. When invalid data is detected, validation is supposed to reject it. Validation is supposed to be always on, you cannot switch it off on release builds and only have it enabled on debug builds.
- Error checking, on the other hand, is performed inside a system, checking against conditions that should never occur, to keep making sure that everything is working as intended. In the event that an error is encountered, the intent is to signal a catastrophic failure. Essentially, the term Error Checking is shorthand for Internal Error Checking. It can be implemented using assertions, thus being active on the debug build only, and having a net cost of zero on the release build.
2020-04-01
Index of notable GitHub projects
Intertwine (C#, Java)
A framework for automatically converting method invocations of any programmatic
interface into a single-method normal form and converting back to invocations of
the original interface.https://blog.michael.gr/2022/12/intertwine.html
For C#: https://github.com/mikenakis/IntertwineCSharp
For Java: https://github.com/mikenakis/Public/tree/master/intertwine
VsDebugLogger (C#)
Speeds up Visual Studio debug output by orders of magnitude.https://github.com/mikenakis/VsDebugLogger
bathyscaphe (Java)
Deep immutability assessment (and coming soon: thread-safety assessment) for
java objects.https://blog.michael.gr/2022/05/bathyscaphe.html
testana (Java)
A command-line utility for running only those tests that actually need to run.https://blog.michael.gr/2018/04/github-project-mikenakis-testana.html
classdump (Java)
A command-line utility for dumping the contents of class files.https://blog.michael.gr/2018/04/github-project-classdump.html
bytecode (Java)
A lightweight framework for manipulating JVM bytecode.https://blog.michael.gr/2018/04/github-project-bytecode.html