3 ms·
Hrm. I've bashed out quite a bit of crazy brand Ruby to achieve some cool looking interface. I wouldn't do this in production code. The problem is of definitio
by jwdunne 11y ago
Hrm. I've bashed out quite a bit of crazy brand Ruby to achieve some cool looking interface. I wouldn't do this in production code.
The problem is of definition. My definition of clean is readable, clear and understandable. If it takes a significant portion of a blog post and the research before hand to understand what the hell is going on, I wouldn't call that clean as I define it.
Ideally, you want code that is understood quickly so that it can be maintained with the least effort. Seeing an object used as module violates my understanding of how modules were designed to be used and I would have to spend time figuring out how. It may be 2 minutes or 10 but regardless it's time that need not have been spent.
Cool magic can sometimes be helpful. Often its just cool.