|
|
|
|
|
by justsaysmthng
3752 days ago
|
|
Either comment your code or move darlings to a properly named function, which is even better. @sentence = capitalizeEveryWordInThe(@sentence) Then you can both unit test (if you're into that kind of thing) and refactor without breaking a lot of things. |
|
Edit. I'm saying I find the one-liner form frequently more understandable than one embodied in a function.