Better HN
topnewbestaskshowjobs
Log inSign up

unauth

5 karma · joined Jun 23, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

web development mostly. Big Japanese companies use perl for their backend and you can find many blog entries about perl in Japanese.

comment 15y ago · link · parent

if order does not matter:

var sum=0,i=list.length; while(i--) sum += list[i].amount;

if it does: var sum=0,i=0,ln=list.length; while (ln-- && (sum += list[i++].amount));

but the for in syntax is nicer indeed.