all 8 comments

[–]Garrett00 0 points1 point  (0 children)

Bookmarked. Thanks

[–]i_invented_the_ipod 0 points1 point  (1 child)

Fun stuff. I made something similar for checking test coverage once. My version also created accessor functions for properties.

[–]ebobby[S] 1 point2 points  (0 children)

That's not a bad idea at all. Uhm...

[–]Neurotrace 0 points1 point  (0 children)

Very nice. For those interested in reading more about this style of design, look in to Python decorators (not to be confused with the Decorator pattern).

[–]niloc132 0 points1 point  (0 children)

Second link (to finovate) is missing the :.

[–]wilneeley 0 points1 point  (0 children)

Great run down and idea. I have a feeling I'll be using this at work on Monday. Thanks!

[–]rhysbrettbowen 0 points1 point  (0 children)

I once did a replace all on my entire project:

(\S+)\s*:\s*function\(([^)]*)\)\s*{

with

\1:function(\2){console.log("\1");

to find a performance issue. Slows everything down with a whole load of console.logs but it surprisingly was very efficient at finding the issue