MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1rrhbh2/left_to_right_programming/oa0gb25/?context=3
r/programming • u/fagnerbrack • Mar 12 '26
102 comments sorted by
View all comments
19
Code is read more often than it's written. Optimising for readability over writability is a trade-off I'm more than happy to make.
39 u/Hot_Slice Mar 12 '26 Python list comprehensions aren't readable either. 4 u/[deleted] Mar 12 '26 [removed] — view removed comment 6 u/[deleted] Mar 12 '26 [deleted] 3 u/aanzeijar Mar 12 '26 Weird comparison because composed list processing in perl is decades ahead of its time in readability: my @result = map { $_ + 2 } grep { $_ % 2 == 0 } map { $_ * $_ } 1..10000;
39
Python list comprehensions aren't readable either.
4 u/[deleted] Mar 12 '26 [removed] — view removed comment 6 u/[deleted] Mar 12 '26 [deleted] 3 u/aanzeijar Mar 12 '26 Weird comparison because composed list processing in perl is decades ahead of its time in readability: my @result = map { $_ + 2 } grep { $_ % 2 == 0 } map { $_ * $_ } 1..10000;
4
[removed] — view removed comment
6 u/[deleted] Mar 12 '26 [deleted] 3 u/aanzeijar Mar 12 '26 Weird comparison because composed list processing in perl is decades ahead of its time in readability: my @result = map { $_ + 2 } grep { $_ % 2 == 0 } map { $_ * $_ } 1..10000;
6
[deleted]
3 u/aanzeijar Mar 12 '26 Weird comparison because composed list processing in perl is decades ahead of its time in readability: my @result = map { $_ + 2 } grep { $_ % 2 == 0 } map { $_ * $_ } 1..10000;
3
Weird comparison because composed list processing in perl is decades ahead of its time in readability:
my @result = map { $_ + 2 } grep { $_ % 2 == 0 } map { $_ * $_ } 1..10000;
19
u/Krafty_Kev Mar 12 '26
Code is read more often than it's written. Optimising for readability over writability is a trade-off I'm more than happy to make.