Arc Forumnew | comments | leaders | submitlogin
1 point by Adlai 5672 days ago | link | parent

Any reason why you completely redefine ac-qq rather than just putting new code into ac-$?


1 point by rntz 5672 days ago | link

DRY (Don't Repeat Yourself). I'm generalizing an existing function. Doing it this way keeps the code shorter, and in the event that 'ac-qq1 has a bug, then 'ac-qqx probably does too, and if I do it this way then when I (or someone else) tries to merge fixes for 'ac-qq1 they'll get a conflict indicating that they need to modify the fixes for 'ac-qqx rather than having it silently succeed, leaving bugs in 'ac-qqx.

-----