Category Archives: code

Saving and Loading Files in a Web Page

This article is targeted at people who’ve started learning web programming. They’d made a few web pages with JavaScript. Maybe they’ve made a paint program using 2d canvas or a 3d scene using three.js. Maybe it’s an audio sound maker, maybe it’s a tile map editor. At some point they wonder “how do I save …

More NPM BS

Sorry to rant on this more but sheesh! How much does it take?

So I want to watch the filesystem for changes. Unfortunately node’s fs.watch isn’t OS independant. Some OSes return individual files. Other OSes just return the parent folder changed. I’m sure there’s some legit reason like perf not to fix this for all …

Dynamic Typing > Static Typing?

I stumbled upon this amazing video called “The Unreasonable Effectiveness of Dynamic Typing for Practical Programs”

It’s about 50mins long and unfortunately vimeo has no fast playback options like youtube so I’d suggest you download it and view it in VLC then click Ctrl+ or Cmd+ to speed up

In any case he makes a …

Too Many Dependencies

I’m using meteor to get something done and I needed to implement “likes” as in something you can click to “like” something and then that thing can display a number of likes.

There’s a package that helps with this in meteor. It’s called “socialize likeable” and it seems fine. The code is not …

Less Libraries more Code?

I saw this talk recently

which if I understand correctly and a very interesting point of view which in one way could be summed up as “write more code and less libraries”. Yea I know that sounds controversial. Watch the video and see what you think. < !-more--> If I tried to summarize here’s what I took …