First day and orientation at ServiceNow complete and now on to day two. I work with a wonderful group of talented developers and I am really excited about the opportunities that lie ahead. The photos above is my desk and work area. On my way home last night I went by Lowes and picked up some white laminated wood, and made that monitor stand. It hurts my neck to always be looking down at the monitor so I think this will work out nicely.
It is now official. I will be joining the ServiceNow family starting on March 19th 2012. It has been a wonderful experience working at MIR3. I have grown both as a developer and as a person, and I am so thankful for the time I’ve had working with the wonderful people at MIR3. But I feel I have come to a fork in the road and it is time to move on.
I will be working at ServiceNow as a Developer, where I will be designing and developing business applications on top of the ServiceNow platform.
For those not familiar with ServiceNow, here is the official description from their website:
Born in the cloud, ServiceNow makes IT more accessible, intuitive and social. ServiceNow creates a single system of record for all IT processes within a company. This system brings together IT strategy, design, transition and operation on a powerfully simple cloud platform that just works.
ServiceNow is built to be a productivity tool for all types of business users including the CIO, service desk staff, application developers, IT finance, IT operations and business people. ServiceNow applications are built on a single platform as a service. The platform offers a consistent and intuitive user experience through the entire IT Infrastructure Library (ITIL) service lifecycle.
JavaScript Weirdness
I was just listening to the lightning talk by Gary Bernhardt from CodeMash 2012 and he brought up some really interesting (and funny) points about JavaScript.
For example:
[] + [];
””
{} + {};
NaN
[] + {};
[object Object]
{} + [];
0
So why is it that if you add two empty Arrays you get an empty string, but if you add two objects you get “not a number”. Array + Object is an Object but Object plus Array is 0???
JavaScript: Clock Angle Problem
Earlier today I was presented with the problem of calculating the degrees between the hour hand and the minute hand of an analog clock. At first this seemed like a fairly complicated task, however after playing with it for a bit the solution became apparent. But now after looking up the answer on Google I feel really embarrassed on how easy the solution really is.
It’s amazing how complicated you can make a solution, when most of the time it can be solved so easily once you have the basic logic worked out.
Solution:
// h = 1..12, m = 0..59
function angle(h,m) {
hAngle = 0.5 * (h * 60 + m);
mAngle = 6 * m;
angle = Math.abs(hAngle - mAngle);
angle = Math.min(angle, 360 - angle);
return angle;
}
Socialite.js
JavaScript for implementing social sharing buttons asynchronously. Support for Twitter, Google+, Facebook and LinkedIn
