3 ms·
I really don't think it's a false assertion. What code isn't "plumbing"? For example, you can get 90% of the way to a CSV parser in Python in one line (as `[l
by lynndotpy 4y ago
I really don't think it's a false assertion. What code isn't "plumbing"?
For example, you can get 90% of the way to a CSV parser in Python in one line (as `[line.split(",") for line in open("some.csv").readlines()]`). Should we consider it a false assertion to call that a "one liner" and if so, how should it properly be described?
- UncleEntity 4y ago—edit- And misread CSV for SVG it seems. I actually wrote a generator for a SVG parser/writer and not counting the xml library it came in at around close to 40k lines of code. Or maybe 70k lines, don’t recall just know it is a lot. If I split it up into one class per file it took something like 45 minutes to compile (it is a C-API extension) so I would dump all the code into a single file for faster compiles. Haven’t looked at it in a while but the generator file is probably around 400 something lines. Certainly not going to claim its a validating SVG library in 400 odd lines of code. Think I had some cockamamie scheme to make a SVG to grease pencil converter for blender and only got around to shaving that one yak.