5 ms·
I don't understand the fascination with writing/presenting the code with as few lines as possible. I'd be just as impressed if they said the code was 120 lines
by metaobject 10y ago
I don't understand the fascination with writing/presenting the code with as few lines as possible. I'd be just as impressed if they said the code was 120 lines and formatted so it was just a bit more pleasant to read.
- asrp 10y agoHere are slides linked from that page with a reformatted version with 202 lines: https://drive.google.com/file/d/0B8g97JkuSSBwUENiWTJXeGtTOHFmSm51UC01YWtCZw/view https://drive.google.com/file/d/0B8g97JkuSSBwUENiWTJXeGtTOHF... Here's the source from those slides (I don't know who put it there). http://codepad.org/ZWbF9yrY http://codepad.org/ZWbF9yrY I had to remove these two lines to make it compile. double M_PI = 3.14159265358979; double M_1_PI = 1.0/M_PI;
- jklehm 10y agoI had to modify this line as well: double erand48(unsigned short xsubi[3]) throw() { Link here: http://codepad.org/fpp2inpr http://codepad.org/fpp2inpr