Sunday, January 26, 2014

Get It Write Coder

"BriNg It On

I Am ReaDy to faCe It

ImPossible is Nothing."




In this second article of mine, we talk about coding techniques and how to get it right when writing code.



Coding is an art that requires a diligent, methodical mind and the need for focus, coding is a meticulous activity, a single slip causes a 10 step reversal that can cause 100 hours to fix. It was getting cold, last I read it was 3 deg and getting colder, She walked over to the fireplace, "A methodology was in place and now I just have to code for the project."

I smiled inwardly and keeping the same countenance, "You sure you can do it ?"I was thinking of the times that I had tried to convince her and always found her going the other way, she did detect a smirk and countered,"I can do whatever I want to today."She stood up and challenged me to an arm wrestling match immediately, I agreed not knowing what to expect and I was at loss for words, I am a big built man and normally beat people at this game easy.



This is so cool, that coding part, its like we get to our work place whenever we like and take a seat and start writing code.So I have this project on building snowflakes on to a web page, it is pure HTML, JAVASCRIPT, I look at the specification sheets and start to write :



if (ns4up) {



docwidth = self.innerWidth;



docheight = self.innerHeight;



} else if (ie4up) {



docwidth = document.body.clientWidth;



docheight = document.body.clientHeight;Now in the same above code, see how the variables are named, there are conventions for setting this, you could write for example docwidth, or docWidth or Docwidth as the variable name.



dx = new Array();



xp = new Array();



yp = new Array();



am = new Array();



stx = new Array();



Arrays are software code that can store numbers just like mathematical arrays.Below is how we populate arrays by setting a FOR loop by incrementing "i "



sty = new Array();



for (i = 0; i < no; ++ i) {



dx[i] = 0;// set coordinate variables



xp[i] = Math.random()*(docwidth-50);// set position variables



yp[i] = Math.random()*docheight;



am[i] = Math.random()*20;// set amplitude variables



stx[i] = 0.02 + Math.random()/10; // set step variables



sty[i] = 0.7 + Math.random();// set step variables



if (ns4up) {// set layers



if (i == 0) {



Just as I was going to write more on the below document.write function, she popped into theoffice,"Got time for a cuppa coffee." I immediately agreed and walked with her to the vending machine, "Damn Machine always has me stumped, sometimes the tea gives out coffee and also the other way around," she said,"You handle this and I will get us some cookies,"she walked over to the counter, while I fiddled around with the machine still trying to get the document.write function into my head.It was DHTML and the document.write always wrote to the page what was presented to it at the position specified by the code.I looked left and it said coffee, I pressed it at the exact centre and a stream of coffee flowed into the cup, there was this sign saying, I figured, "COFFEE," that was smudged and that is why she sometimes got tea instead of coffee.We sat down for a cup of coffee with the cookies, I had settled into a rhythm and sipped my coffee quickly waiting to get back to the work station.



In conclusion writing code requires a very typical mind set, some are born with it and are naturals, others develop it through learning and practicality.If it were up to me, I would do this Software Engineering course at the City University, London,



Software development is a central activity in the IT industry and a degree in Software Engineering at City University London provides specialist focus on the programming and development of large and complex software and with an emphasis given to dependable systems.



Programmes Office (room A302)



School of Informatics

City University London

Northampton Square

London

EC1V 0HB

United Kingdom



T: +44 (0) 20 7040 8406



E:



The Bsc. (Hons), Software Engineering is a specialized software course with modern software coding practices as part of its curriculum.They also offer a Lord Mayor of London Scholarships for Academic Excellence, sounds like I could crack this one.
Full Post

No comments:

Post a Comment