Friday, May 3, 2013

Rules Should be Based on Facts


What the documentation advocates is that you should not call one rule from another, instead, each rule should produce an outcome, and the outcome itself should trigger the next rule in chain. This way rules do not concern with what happens next, and instead they deal with facts (aha!). And if - instead of writing rules for facts - you focus on writing an ordinary flow of procedural logic, you do not really need the added complexity of a rules engine.
The difference is subtle, but not more subtle than rules like "don't put your business logic in view" or "don't put your database access code in your business logic".

 http://stackoverflow.com/a/7247643/2066936

ASP.NET MVC 3 - Client and Server Side Validation

Out of the box:

Notice how client-side validation is still working nicely. We did not need to enable client-side validation manually in the template as before, this is because ASP.NET MVC 3 already has it enabled by default. We did also hide the "Back" button on first step using javascript. We cannot submit the form until all information is correct. Even if a user bypasses javascript validation (which can be easily done), the form will be re-displayed again.
http://afana.me/post/create-wizard-in-aspnet-mvc-3.aspx

Friday, April 26, 2013

Maven - the "Convention over Configuration" Disadvantage

The Maven approach reduces the JAR-file bloat that consumed most version-control repositories. But using Maven encourages you to adopt its "convention over configuration" approach to building software, which can limit your flexibility in customizing your build scripts.
http://www.ibm.com/developerworks/java/library/j-ap05068/

Saturday, April 20, 2013

Significance of the Mach Kernel

 Unlike traditional systems, under Mach a process, or "task", can consist of a number of threads. While this is common in modern systems, Mach was the first system to define tasks and threads in this way. ... The existence of ports and the use of IPC is perhaps the most fundamental difference between Mach and traditional kernels.
http://en.wikipedia.org/wiki/Mach_(kernel)

Saturday, April 13, 2013

Singleton in the cluster

Even my device control JMX mbeans support high availability where they are automatically managed to run as a singleton in the cluster.
http://humbleblogger.blogspot.com/2005/04/aspnet-vs-j2ee.html

Message Persistence

Also, with async-style RPC there's no equivalent to message persistence - which when message persistence is coupled with transaction semantics, it enables messages to be reliably processed (think credit card transactions, etc).
http://humbleblogger.blogspot.com/2005/04/aspnet-vs-j2ee.html