Remote Jobs: Design, Programming, Rails, Executive, and more. Programming Challenges. September Challenge 2013. Scala Tour. Scala.js - Write in Scala for the browser. Write in Scala for the browser Sébastien Doeraene @sjrdoeraene Scala Days 2013, June 12th LAMP, lamp.epfl.ch École polytechnique fédérale de Lausanne, Switzerland JavaScript The one and only language of the Web A scripting language, designed for programming in the small How to scale to Rich Internet Applications?
JavaScript as a target language Compile a higher-level language to JavaScript GWT, Scala/GWT CoffeeScript, Dart, TypeScript, etc. JavaScript is the Assembly language of the Web Scala.js Scala, a scalable language Compile to JavaScript Interoperate with JavaScript libraries What does it look like? Var args = document.location.search.substring(1).split('&'); argsParsed = {}; for (var i = 0; i < args.length; i++) { var arg = decodeURIComponent(args[i]); if (arg.indexOf('=') == -1) { argsParsed[arg.trim()] = "true"; } else { kvp = arg.split('='); argsParsed[kvp[0].trim()] = kvp[1].trim(); } } What does it look like? Hello World! SJS.m["examples.hello.HelloWorld"].sayHelloWithPrintln(); . .
Archive of Interesting Code. The Archive of Interesting Code is an (ambitious) effort on my part to research, intuit, and code up every interesting algorithm and data structure ever invented. In doing so, I hope both to learn the mathematical techniques that power these technologies and to improve my skills as a programmer. In case you're curious what I'm someday hoping to having implemented on this page, you can check out my TODO list.
If you're interested in using any of this code in your applications, feel free to do so! You don't need to cite me or this website as a source, though I would appreciate it if you did. Enjoy! Coding Interview Questions. TPH – Episode 1, JSON. Ten websites that teach coding and a bunch of other things. Computer Science/ICT. Online Coding Tutorials. Java OOP Exercise | Exercises on Defining Classes Exercise (Circle): A class called circle is designed as shown in the following class diagram. It contains: Two private instance variables: radius (of the type double) and color (of the type String);Two overloaded constructors;Two public accessor methods: getRadius() and getArea(). The source codes for Circle is as follows: public class Circle { // save as “Circle.java” // private instance variable, not accessible from outside this class private double radius; private String color; // 1st constructor, which sets both radius and color to default public Circle() { radius = 1.0; color = “red”; } // 2nd constructor with given radius, but color default public Circle(double r) { radius = r; color = “red”; } // A public method for retrieving the radius public double getRadius() { return radius; } // A public method for computing the area of circle public double getArea() { return radius*radius*Math.PI; } } Compile “Circle.java”.
Now, run the TestCircle and study the results.