From argument to object
This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?
Start file
organize(cupboard, 3, 2); prioritize(bureau, 8, 7); realize(bannister, 4, 4); moralize(railing, 3,9);
End file
cupboard.organize(3, 2); bureau.prioritize(8, 7); bannister.realize(4, 4); railing.moralize(3,9);
View Diff
1,4c1,4 < organize(cupboard, 3, 2); < prioritize(bureau, 8, 7); < realize(bannister, 4, 4); < moralize(railing, 3,9); --- > cupboard.organize(3, 2); > bureau.prioritize(8, 7); > bannister.realize(4, 4); > railing.moralize(3,9);
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 454 remaining solutions by signing in and submitting your own entry
#455 William Dankspeare / @will_dankspeare - Score: 81 - 06/29/17 @ 17:31
c2w<Esc>ux2w<Esc>uwwdwxx0P<Esc>uuuu0d2w<Esc>uww10x0Pvhc.<Esc><Esc>jww8x0Pvhc.<Esc>jww11x0Pvhc.<Esc>j9x0Pvhc.<Esc>:wq<CR>
0 comments