background preloader

ProgrammingSites

Facebook Twitter

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. By pandodailyguest On April 5, 2013 Seemingly every day there’s a new article or blog post imploring you to learn how to code. “Those who code have the power to transform their dreams into reality.” “Coding will help you keep [your job], or help you make a case for a raise.” “You should learn to program because it’s easy, it’s fun, it will increase your skill set, and… it will fundamentally change your perspective on the world.” What’s more, “If you want to start a technology company, you should learn to code.”

As a person who’s grown up in the digital age, I have often heard the cry, “digital literacy or die.” But where should you go? In any case, each program below emphasizes different pedagogical techniques and philosophies, and they are all mass market in the sense that anyone is welcome. MIT Courseware Online MIT has long been a pioneer of online courseware. The course itself is quite rigorous as it was an intro course for MIT students.

EdX Codecademy Google University Consortium. 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.

ProgrammingCompetitions