Alejandro G. Carlstein Ramos Mejia Blog



If you wish to create a read-only domain object that insure that no body is allowed to write to the database through your domain object, then add these even listener at the end of your domain object file:

transient beforeInsert = {
throw new RuntimeException('insert not allowed')
}

transient beforeUpdate = {
throw new RuntimeException('update not allowed')
}

transient beforeDelete = {
throw new RuntimeException('delete not allowed')
}

 

Share

Note: Remember. JavaScript is a prototype-based language.

var Module  = (function() {
    // declare private variables and/or functions
    var private_variable = "private variable content";
  
    var private_method = function(){
        console.log("private_method()");
        console.log("-> private method content");     
    }
    return {
        // declare public variables and/or functions     
        public_variable: "public variable content",
        public_method: function(){
            console.log("public_method()");
            console.log("->" + private_variable);     
        }
    };
})();
  
// Execution
console.log(Module.public_variable);
Module.public_method();
console.log("------------------------------");
console.log(Module.private_variable);
console.log(Module.private_method());
 
// Output
public variable content
public_method()
-> private variable content
------------------------------
undefined
Uncaught TypeError: Module.private_method is not a function

 

Share

You can see these people smiling and laughing but is not for joy.

Their smile is to give each other courage and their laugh is the only way for them to not go insane.

Share

Today, November 28 of 2011, we released a new update of Cupid-4-Stupid!

Some customers reported a bug that they were facing when trying to access content in Date Ideas and Panic Button sections.

Share

Example of Linked List as Template.

This code was compiled and tested on a Linux machine

Share

My friend Philibian Lindo found this SUNY Broome brochure.
The brochure displays an old picture taken when I was student there.
I must say that it was a good way to remember all the good times I spend while studying for my Associate in Computer Science in those times.
I had great teachers and I made some wonderful friend there.
Later, I would continue towards my bachelors at Binghamton University.

 

Share

Today, I submerge myself in haxe (www.haxe.org).

In my point of view, what really matters is not the language but  how you program.

Share