Posts

Showing posts from February, 2016

Review: Learning Javascript, by Shelley Powers

I read the 2nd edition , but it's been updated recently to the 3rd edition by a different author. This is a basic programming book, that tries to be fairly complete in covering all the features and pieces of Javascript. It includes an intro to the DOM and AJAX. It's not a reference like " The Definitive Guide ", but it's still quite easy to find specific information. It's a bit boring, and feels encyclopedic. I was wondering about some of Javascript's quirks and corners, but I didn't get much help or explanation in this book. I'd say "eh, it's ok" for a recommendation. Then I was pointed to  " Javascript, The Good Parts ." Now there's  the book I wanted to read. Review forthcoming...

Locking web-page screen orientation on Android

Basically, I can't. I've found several references to the old and new standards, and this is perhaps the best: http://www.sitepoint.com/screen-orientation-api-reloaded/ No matter which version I try, or even if I'm in fullscreen, the orientation of my page doesn't stay locked to 'landscape'. I'm not sure I've completely investigated 'promises', so I'll check that, but for now I'm going to resort to simply telling my tablet not to rotate, in Settings .. Display. Grr.

Review: Build an HTML5 Game

Build and HTML5 Game , A Developer's Guild with CSS and Javascript, by Karl Bunyan. 2015. On Amazon This book walks through creating a 'bubble shooter' browser game, similar to Puzzle Bobble  or Snood . It uses jQuery and Modernizr script libraries to avoid browser-specific concerns, and Modernizr for loading scripts. The first version uses the DOM to position and animate game elements (bubble), and shows custom animation in jQuery. It discusses which animations are possible in pure CSS3, as well. I found it interesting that the book moves on to a second version, where the game board is completely contained in an HTML5 Canvas, and all animation is handled inside the canvas, using calls that are compatible with the DOM version - so the older version can run on old browsers that don't properly support Canvas. That structure seems useful to think about. I would have liked to see a more complex game, like a platformer or side-scroller, but that would have swelled the...

Angular 2.0 and Typescript meetup

Attended the  Getting started on Angular2 with TypeScript  meetup last night. Good attendance - the room at MetLife was full. It was a beginner tutorial, but since Angular2 is quite different from AngularJS and not that old, it's definitely what was needed. The presentation by  Kumanan Murugesan  was pretty smooth, and there were lots of useful questions.  I met someone (Jack?) on the way in lamenting that they couldn't convert an Angular 1 project to Angular 2 with just two months until release - but later Bryan Patrick Coleman, one of the organizers, told me that there are actually migration tools that will translate from Angular 1 to 2. Might be worth a try!