3 ms·
Feel free to demonstrate how in either of the above to highlight a block of code, extract it to a function and replace all the duplicate blocks with a call to t
by erpellan 8y ago
Feel free to demonstrate how in either of the above to highlight a block of code, extract it to a function and replace all the duplicate blocks with a call to the newly extracted function correctly across an entire codebase in a couple of keystrokes.
Or have a go at https://github.com/daviddenton/refactoring-golf https://github.com/daviddenton/refactoring-golf