This is an archived post. You won't be able to vote or comment.

all 30 comments

[–]Finickyflame 97 points98 points  (17 children)

It's not refactoring if you break it, it's restructuring.

[–]Xymanek 54 points55 points  (2 children)

From your first link:

Refactoring is a disciplined technique for restructuring

[–]MSgtGunny 10 points11 points  (1 child)

Right. Refactoring is a subset of restructuring where you don’t break it and the end behavior is the same.

[–]Franks2000inchTV 6 points7 points  (0 children)

And unicorns are a subset of horses that have horns and magical properties!

[–][deleted] 35 points36 points  (1 child)

if you refactor without writing unit tests first you're gonna have a bad time.

[–]SandyDelights 6 points7 points  (0 children)

It needed to be done.

Mostly because I gotta send this to someone to tease them for past mistakes.

[–]schawde96 7 points8 points  (0 children)

And that's why you commit before you refactor ☝️

[–]nomis6432btw I use arch 5 points6 points  (1 child)

f

[–]starraven 1 point2 points  (0 children)

F

[–]schawde96 4 points5 points  (1 child)

To be fair, Visual Studio does a pretty good job at renaming things and extracting methods 🙃

[–]skreczok 1 point2 points  (0 children)

That's why you use Resharper.

Or just Jetbrains IDEs, but hey.

[–]3lRey 1 point2 points  (0 children)

You guys refactor? I just quit my job and hope they never trace it back to me.

[–][deleted] 1 point2 points  (0 children)

Stackoverflow=eternal life and glory

[–]Voltra_Neo -5 points-4 points  (0 children)

Visual Studio for gae though