mfw
var i = 0;
while(i>-1){
i++;
}
Search:
Type: Posts; User: GAMEchief
Search: Search took 0.02 seconds.
- 03 Jun. 2015, 07:45pm
Thread: *****-be-gone
by GAMEchief- Replies
- 14
- Views
- 1,591
[Open Source] mfw var i = 0; while(i>-1){ i++; }
- 21 Sep. 2014, 09:29pm
Thread: *****-be-gone
by GAMEchief- Replies
- 14
- Views
- 1,591
[Open Source] It takes three times as many lines, and the...
It takes three times as many lines, and the operator is moved to the end of the loop, which is especially unreadable if the looped content is more than just a single line. Are you decreasing by 1...
- 21 Sep. 2014, 06:21am
Thread: *****-be-gone
by GAMEchief- Replies
- 14
- Views
- 1,591
[Open Source] No. Your logic would make the for loop obsolete....
No. Your logic would make the for loop obsolete. In this day and age, it is optimized. It's about readability, not nanoseconds.
- 21 Sep. 2014, 02:37am
Thread: *****-be-gone
by GAMEchief- Replies
- 14
- Views
- 1,591
[Open Source] if(!!document.getElementById('posts'))...
if(!!document.getElementById('posts'))
if(document.getElementById('posts'))
i = nodes.length-1;
while(i>=0){
nodes[i].parentNode.removeChild(nodes[i]);
i--;
}
Results 1 to 4 of 4