In the series “convenience wrappers for small tasks that increase code readability”, today contains() is starring. Having a contains() method could also serve another purpose: to maybe prevent people from using match() to find out if a string contains a given substring (what is still proposed in some JS tutorials out there…). So, I want
Read more
Posts Tagged: fun
Keyboard accessibility for dojox.layout.FloatingPane
Well, I don’t really see a use for FloatingPane, except as a windowing system for projects like LucidDesktop, but I got the impression that many people just love the FloatingPane. However, it caught my attention these days. One of its major drawbacks – and the one that keeps it pretty far from becoming a joyful
Read more
dojo.string.beginsWith()
Most cases where you find String.substr() in the wild are to check if a given string begins with a certain other string. Be it checking for a prefix or sorting out zipcodes that begin with certain numbers. And because code readability is a good thing (really, it is important), it would be nice to have
Read more
3D Canvas Walker revisited
One of the things that fascinated me most about computers since I was a teen, was their ability to simulate a three-dimensional space where one could move around in. That’s why I was so intrigued when I read Jacob Seidelin’s post about “Creating pseudo 3D Games“. I had to play around with it, as I
Read more