Front-end Series: JavaScript debugging tips and tricks

Note: many of these tips are written with Chrome in mind, but are applicable to any modern browser with developer tools. Understand what is happening in your code Set and use Breakpoints Use the Console api De-minify Modify scripts locally Use a Unit-Testing framework 1. Understand what is happening in your code A prerequisite to […]

Full-adders, 32-bit adders in JavaScript

Fascinated by a lecture as part of my CS degree pursuits (there is light at the end of the tunnel!), I  decided to build some digital circuitry beginning with logic gates and ending with a full 32-bit adder. LIVE DEMO So here’s my question: I’ve got a 32-bit adder… What now? Beginning with basic AND, and OR functions, (&& […]

Interesting interview question #1

During an interview (for a software developer position) with a major employer in the state of Utah, I was asked an interesting programming question: Create a function that, given an integer parameter, will return the middle three digits I mentally wiped the sweat away from my forehead: whew — not computing bigO notation,  inventing a […]

Camera Shake in Unity

After much Googleing for how to do a camera shaking effect in Unity, I decided to write my own small script to accomplish the effect. It combines both positional movement with rotational movement to simulate closely an actual camera shake. The two key variables are: shake_intensity Shake_intensity determines the initial intensity of the shaking — […]