~Revo Fora~

Life, School, Programming, and Whatever Random Thoughts Cross My Mind…

Tag: programming

Scribbles – Playing with SVG & Greasemonkey

Keith Wood has an excellent jQuery plugin for interacting with an SVG canvas which can be found here. I’m using it in a research project I’m working on currently and will talk about in a later post. For now though the fact that my project involves Greasemonkey, tracking the mouse cursor, and dynamically displaying visual [...]

Java Optimizing Switch Statements

The Java compiler has two different ways it can compile your switch statements. Fast – tableswitch switch(num) { case 1: func2(); case 2: funct2(); case 3: funct3(); } If it sees that your case values are all close to each other then it optimizes it such that either: The value does not lie within the [...]