4 ms·
I don't understand the headline, the Python code in the article is not so terrible considering the input.
by snorkel 15y ago
I don't understand the headline, the Python code in the article is not so terrible considering the input.
- jamesaguilar 15y agoCan you give some brief examples of what you might do differently? Particularly, how would you solve the problem with fewer lines of code and/or complexity?
- snorkel 15y agoI'm suggesting the Python code is not bad at all, so this headline is just confusing. Personally I'd just use regex replace to convert the data rows to CSV directly, not as thorough as the Python code.
- jamesaguilar 15y agoOh I see. Sorry, I missed the "not".
- smokinn 15y agoHis point is precisely that the input is awful.
- snorkel 15y agoYes, the article says the input is awful, but this headline implies the code is awful.
- hmottestad 15y ago+1 I was think something along the lines of, look at this stupid person who needs 64 lines of code to do a simple insert in a binary tree.