Skip to main content
13 events
when toggle format what by license comment
Dec 21, 2023 at 23:46 comment added Wayne Conrad +1. The key to understanding duplicated code is that it isn't about textual lines. It's about ideas. The same idea shouldn't be duplicated. The same line of code can be duplicated 100 times, so long as none of those duplicates represent the same idea.
Dec 21, 2023 at 6:43 comment added EvilSnack When the justification for any practice is, "This happened once," it is a strong sign that the practice should be reviewed for need.
Dec 20, 2023 at 20:02 comment added Ben Voigt If you have to find a diff tool to find the differences, refactoring is needed.
Dec 20, 2023 at 19:35 comment added Jasmijn And sometimes, you really need a refactor, where each function is split into two, one of which is shared and can then be merged to a single inherited function and one that is 20% different for each function instead of 10% different.
Dec 20, 2023 at 19:18 history edited Greg Burghardt CC BY-SA 4.0
wrong word
Dec 20, 2023 at 18:29 comment added Greg Burghardt @candied_orange, my only regret is you beat me to "rules weenie."
Dec 20, 2023 at 17:21 comment added candied_orange This deserves a better reception. I stand by my answer but every line here is about thinking for yourself rather than blindly following. +1
Dec 20, 2023 at 16:25 comment added Deduplicator Of course there is also the counterpoint: If they are mostly identical and there are a few (slightly, structurally, functionally) different ones, copy-past-try_update might strike again.
S Dec 20, 2023 at 16:24 history suggested TAR86 CC BY-SA 4.0
fix some typos
Dec 20, 2023 at 15:46 comment added D. Ben Knoble Upvoting for the version-control sleuthing alone; this is my biggest tool where I’m the most senior member of the team by months and the project was a year old when I got there… unfortunately, sometimes for it to be useful requires good version control hygiene :(
Dec 20, 2023 at 15:29 review Suggested edits
S Dec 20, 2023 at 16:24
Dec 20, 2023 at 0:03 history edited Greg Burghardt CC BY-SA 4.0
deleted 1 character in body
Dec 19, 2023 at 23:57 history answered Greg Burghardt CC BY-SA 4.0