Tuesday, February 07, 2012

Two ideas to improve impress.js


  1. Add a "debug mode" that shows the center and bounds of the currently selected step. This is useful in aligning 3d elements
  2. Add incremental positioning attributes. That is, step n's position is based on step n-1's. This is really useful considering the normal flow is to move from step n-1 to n. The new attributes would be "data-dx", "data-dy", "data-dz", "data-rotate-dx" and so forth.
Implementation note:
impress.js's main logic where the position of each element is determined will have to be enhanced to use the previous element's position when these incremental attributes are used. Once they're calculated, however, the rest of the logic should work as expected.

Friday, February 03, 2012

Programmers have pretty low expectations from their languages

Hacker News had a post titled "Modern Language Wishlist". I bookmarked it, perused the comments that tried to guess the language that the post was alluding to, and finally clicked over to the actual article.

While the list is a pretty good and pragmatic one, I can't help but feel that we programmers are a content lot. All the things on the wishlist were incremental improvements at best.

We build these big skyscrapers using tools that were used to build huts, methinks. Shouldn't the prime questions be:

What is the biggest "thing" that a programming language models?
And how close is this to an actual running application?

... I ask?