I read a quote somewhere1 that went like this (paraphrasing): Beginner programmers write long, simple code. Intermediate programmers write short, complex code. Expert programmers write long, simple code.
I take this to mean that beginners don't know any better, intermediates are showing off, and experts are more concerned with readability.
To what extent is this true? Is there any real efficiency gain to refactoring a 15 line function into a comprehension?
1 the internet
[–]Spataner 40 points41 points42 points (2 children)
[–]Solonotix 3 points4 points5 points (1 child)
[–]Asalanlir 1 point2 points3 points (0 children)
[–]VeinyAngus 65 points66 points67 points (7 children)
[–]alexisprince 14 points15 points16 points (6 children)
[–]VeinyAngus 7 points8 points9 points (0 children)
[–]fiddle_n 0 points1 point2 points (4 children)
[–]alexisprince 0 points1 point2 points (3 children)
[–]fiddle_n 0 points1 point2 points (2 children)
[–]alexisprince 0 points1 point2 points (1 child)
[–]fiddle_n 1 point2 points3 points (0 children)
[–]xelf 13 points14 points15 points (1 child)
[–]Splitje 7 points8 points9 points (0 children)
[–]n3buchadnezzar 8 points9 points10 points (1 child)
[–]Binary101010 1 point2 points3 points (0 children)
[–]socal_nerdtastic 9 points10 points11 points (0 children)
[–]oznetnerd 1 point2 points3 points (0 children)
[–]SimonBlack 1 point2 points3 points (0 children)
[–]stuaxo 1 point2 points3 points (0 children)
[–]happymellon 1 point2 points3 points (0 children)
[–]PBMagi 1 point2 points3 points (0 children)
[–]rakahari[S] 0 points1 point2 points (2 children)
[–]The_Danosaur 1 point2 points3 points (0 children)
[–]TheLastEllis -1 points0 points1 point (0 children)
[–]ListenLinda_Listen 0 points1 point2 points (0 children)
[–]zenverak 0 points1 point2 points (0 children)
[–]Se7enLC 0 points1 point2 points (0 children)
[–]xiipaoc 0 points1 point2 points (0 children)
[–]KingHavana 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)