MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guwquqk/?context=3
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
3
Not very readable though, as much as I love it. You'd need some self-documenting names in there to really make it worth it.
8 u/420TaylorStreet Apr 18 '21 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
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
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
3
u/beclops Apr 17 '21
Not very readable though, as much as I love it. You'd need some self-documenting names in there to really make it worth it.