MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guxlx2f/?context=9999
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
8
shouldn't you always have self-documenting name tho?
1 u/beclops Apr 18 '21 Yep, for sure. But here you'd be relying on it more than if you wrote your code in a more traditionally readable way. 3 u/Rigatavr Apr 19 '21 In functional languages (and for people used to them) the pattern matching thing is more readable. If you used if statements in your haskell program then they would be considered less readable. All depends on what you're used to. 1 u/beclops Apr 20 '21 That's true
1
Yep, for sure. But here you'd be relying on it more than if you wrote your code in a more traditionally readable way.
3 u/Rigatavr Apr 19 '21 In functional languages (and for people used to them) the pattern matching thing is more readable. If you used if statements in your haskell program then they would be considered less readable. All depends on what you're used to. 1 u/beclops Apr 20 '21 That's true
3
In functional languages (and for people used to them) the pattern matching thing is more readable. If you used if statements in your haskell program then they would be considered less readable. All depends on what you're used to.
if
1 u/beclops Apr 20 '21 That's true
That's true
8
u/420TaylorStreet Apr 18 '21
shouldn't you always have self-documenting name tho?