Skip to main content

Posts

Aphorism Programming

Dexterity in the use of words can be used to encode logical relations that can be expressed programmatically. Here is how - I have used some simple aphorisms, that I myself have devised to act as an illustration. 1. Be on top, and stay on top - This is a perpetual law and is true for all days 24x7. Here is pseudo code for the same. class myClass() { string stayOnTop(string str) {        return str; } string beOnTop(string status) {       string xabc;             xabc = stayOnTop(status)                      return xabc; } } myClass obj = new myClass(); int time=0; string status = textbox1.Text; string valstat = obj.beOnTop(status); while (time < 24) {        if (valstat.ToString().ToUpper().Trim() != 'TOP')        {               valstat =  'TOP';               }        obj.beOnTop(valstat);        time ++; } 2. Do what you enjoy and enjoy what you do - If you want to be a software developer follow your passion, and extend that to each sub-task like coding stored pr