Archive for October, 2008

Stack-Based Processing, Part 2

In Part 1 I discussed stack-based representations of functions in very general terms. Now I’m going to present a real-world example.
I’ve been working on a new feature for EasyAs123Web.com recently – image cropping. When building your web-pages, we allow you to upload images, and then use them in the web-page, either as simple images in [...]

Stack-Based Processing, Part 1

Back to Basics
To most (all?) programmers, the following code is pretty self-evident:
Multiply( Add( 1, 2 ), Add( 3, 4 ) )
You expect the value 21 to be returned, and you’re familiar with the idea of representing this as a tree of operations:

Fine. Not earth-shattering, but it’s sometimes worth going back to basics to question things [...]