Firecolor :p

8 views
Skip to first unread message

( David . RJ . 2K )

unread,
Jul 27, 2010, 10:31:08 PM7/27/10
to Firebug
Hi!

Tonight I have this idea, a "firecolor" to Firebug...
Well, let me explain what it means.

For those who develop JS Core projects (as jQuery, for instance) or
very complex projects, there are two problems: code garbage and heavy
codes.
This idea is basically how the Profile, but coloring the code,
dependings of ocasion.

The fire generally is "red" :p then I suggest the low color be
"yellow" and the high color "red". I'll explain better:
First, you need choice the JS that you will to "firecolor", example:
jQuery.
Second, you will execute the jQuery test library.
Third, you will see what part of code you don't use (white part),
parts that are light (low cost, yellow part) and parts that are heavy
(high cost, red part).

Can exists two colors types: cost by time, and cost by execution.

Example:
- Code: var a = 1; if(a == 1) return 1;
Color: [color]var a = 1; if(a == 1) return 1;[/color]
- Code: var a = 2; if(a == 1) return 1;
Color: [color]var a = 2; if(a == 1) [/color] return 1;
Note: the "return 1" don't is executed because a == 2, not 1.

Bye.
Reply all
Reply to author
Forward
0 new messages