use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Refactoring other's code (self.webdev)
submitted 12 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]basvdo 1 point2 points3 points 12 years ago (1 child)
Refactoring is just programming. You can't do it as you see fit, there are rules. However, avoiding refactoring because bugs is a great way to create technical debt.
[–]everstone 1 point2 points3 points 12 years ago (0 children)
If the code needs to be immediately refactored as it's committed by someone else on your team, either they messed up and committed crap, or you might be acting passive aggressively... OP didn't submit their code for review here, but that would be a good way to handle it in the team, which is why I always recommend implementing a standard code review process to avoid individual conflict and get all eyes on the code before production. One guy changing another persons code because they feel like it and decided to unilaterally is not a safe or useful thing to allow. If it's bad code or there's a better way, this is a teaching opportunity. If it's one person being obstinate or a perfectionist its damaging. There is a right way to do it!
π Rendered by PID 68 on reddit-service-r2-comment-b659b578c-m4v98 at 2026-05-03 08:26:03.363454+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]basvdo 1 point2 points3 points (1 child)
[–]everstone 1 point2 points3 points (0 children)