Re:Smallpt: Global Illumination in 99 lines of C++ (with no ...
by lutorm on Wednesday January 13, 2010 @07:29PM
(#1051598)
Nice. Though all of the 99 lines are >75 characters. With a more readable formatting it would be twice as long... ;-)
[ Parent
| on HN ]
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ...
by benhoyt on Wednesday January 13, 2010 @09:01PM
(#1051733)
Actually, all of the lines are <75 characters. But yeah, it'd be at least twice that long with a normal coding standard.
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ...
by coliveira on Wednesday January 13, 2010 @10:01PM
(#1051811)
Actually, I think that this style is readable. The problem, though, it that it is hard to modify. Which would be a real trouble for code that needs to be maintained.
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ...
by miratom on Wednesday January 13, 2010 @08:26PM
(#1051689)
Yes, this would be tons more philanthropic and if it were just readable. Just some simple line breaks and variable names that meant something. It's not impressive that you can just cram stuff into 99 lines.
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ...
by yason on Thursday January 14, 2010 @03:45AM
(#1052219)
Actually, the code seemed to be a mess but was quite readable. I read it through. You could almost see all the code in once glance which is when you pretty much don't need formatting anymore, just some time to initially absorb the code.