16
A friend told me my first Python script was 'like a Rube Goldberg machine' and it completely changed how I look at my code.
After he said that, I spent the next week in my apartment rewriting my 50-line script to do the same thing with just 10 lines, focusing on cleaner logic instead of a bunch of weird steps.
3 comments
Log in to join the discussion
Log In3 Comments
emmamason9d ago
Comprehensions helped me too, @nina_hall48.
5
fisher.thomas9d ago
Started using list comprehensions after a similar comment. They really force you to clean up your loops.
3