News for hackers. Stuff that matters.
Re:Dynamics.js, a JavaScript library to create physics-based... by z3t4 on Monday June 15, 2015 @02:40PM (#9721151)
For anyone wanting to do graphics in web pages I would recommend looking into the canvas tag. Example code:

  with (context) {
    beginPath();
    moveTo(100, 100);
    lineTo(100, 300);
    lineTo(300, 300);
    closePath();
    stroke();
  }
Re:Dynamics.js, a JavaScript library to create physics-based... by ahoge on Monday June 15, 2015 @07:06PM (#9722749)
Since ES5, you can't use `with` in strict mode.

Well, you shouldn't use it anyways since it's confusing/ambiguous and it's also terrible for performance.

Re:Dynamics.js, a JavaScript library to create physics-based... by z3t4 on Tuesday June 16, 2015 @10:33AM (#9726050)
I wanted to make a point about all the confusing new features of ES6 that are just there to save a few key strokes, and will haunt you forever.