News for hackers. Stuff that matters.
Re:Ask YC: Fewer lines of clever code or more lines of clear... by technoguyrob on Sunday June 22, 2008 @08:45PM (#224540)
Exactly! And yes, all those "magic numbers" are derived. For example...

		this.hSpacing = Array.prototype.slice.call(this.parent.blocks.filter(
				function(n){ return n < _this.parent.cols; })
				.map(function(n,o){ return o.offsetLeft; })
		);
Your function names and decomposition are indeed much easier to read. Thanks again, Neal!

There are no comments on this comment yet.