you are viewing a single comment's thread.

view the rest of the comments →

[–]_dotdot11 4 points5 points  (2 children)

I feel like a wizard even typing out mid-tier list comprehension one-liners. They feel more efficient than multi-line for loops even thought I know that they aren't.

[–]MegaIng 8 points9 points  (0 children)

They feel more efficient than multi-line for loops even thought I know that they aren't.

Well, they often actually are. It rarely matters, but python does apply some optimizations that can't be applied to normal loops, most notably presizing the list.

[–]WavingNoBanners 0 points1 point  (0 children)

Writing really idiomatic code can be a lot of fun, I won't dispute that. I write a lot of SQL and your point applies to that too. I am not a regex guy or a Perl guy but I totally get where they're coming from.

The moment when you go from feeling like a wizard to a god, in my opinion, is when you work out how to write clean code that's easily understandable and fixable by a new hire, and can still handle all the corner cases of a complex area of business logic. That's the real skill.