Tag Archives for javascript

enchant.js | More examples

enchant.js | More examples picks up where enchant.js | Fundamentals leaves off (blog post). Enjoy.

02. April 2014 by Mithat Konar
Categories: Code, Design | Tags: , , | Leave a comment

enchant.js | Fundamentals

We’ve entered Phase Two of my game programming course, and to help support this phase, I’m putting together enchant.js | Fundamentals. While currently not as interactive nor as descriptive as what I developed for Phase One, I’m hoping these incremental examples will … Continue reading

16. February 2014 by Mithat Konar
Categories: Code, Design | Tags: , , | 1 comment

Just Enough JavaScript

I got a last-minute opportunity to teach an introduction to game programing course for people with no programming experience. I decided to base it around an open source HTML5 framework*. When I started looking around for a crash course with … Continue reading

25. January 2014 by Mithat Konar
Categories: Code, Design | Tags: , | 1 comment

(Over)thinking JavaScript objects 3

Defining objects inside self-invoked anonymous functions In our previous episode, we saw a canonical way to create objects in JavaScript that suggested code reuse and facilitated automatic object initialization, but it didn’t let you implement private attributes nor did it … Continue reading

15. November 2013 by Mithat Konar
Categories: Code | Tags: , | Leave a comment

Foray into TDD/BDD

I am starting a new programming project and have decided to use TDD and BDD as much as possible. Even though I currently suck at it, I think I am a convert. The confluence of testing automation, test writing, and … Continue reading

28. October 2013 by Mithat Konar
Categories: Code | Tags: , , , | Leave a comment

(Over)thinking JavaScript objects 2

Objects with constructors and prototyped methods In this installment, I am going to look at building a tally clicker using what seems to be the canonical form for building class-like entities in JavaScript. The idea is simple: Use a constructor … Continue reading

26. October 2013 by Mithat Konar
Categories: Code | Tags: , | 1 comment

(Over)thinking JavaScript objects 1

I’ve always found JavaScript’s approach(es) to OOP a little cumbersome. I’m not talking here about prototypal vs. class-based OOP. Rather, I’m talking about the readability, etc. of the actual code you have to write to build objects. I want to … Continue reading

24. October 2013 by Mithat Konar
Categories: Code | Tags: , | 1 comment

Mozilla Brick and Zepto.js

Raymond Camden wrote up an instructive example that shows how to use Mozilla’s Brick UI Components with vanilla Javascript. I decided to take that and modify it to use Zepto.js instead. I have no idea whether this is a good … Continue reading

10. October 2013 by Mithat Konar
Categories: Websites | Tags: , , , | Leave a comment

Getting closure in JavaScript

If you’re coming from an imperative programming background, closures in JavaScript can be pretty hard to grok. Here is yet another attempt to explain them. It assumes you are familiar with how lexically scoped, imperative languages like C, C++, and … Continue reading

23. June 2013 by Mithat Konar
Categories: Code | Tags: , , , | 1 comment