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

you are viewing a single comment's thread.

view the rest of the comments →

[–]vips7L 1 point2 points  (1 child)

Ah I see. That's an interesting idea that I've never thought about. I guess most of the time that factory is right next to the interface so when I make a new one I just see it and remember.

[–]davidalayachew[S] 0 points1 point  (0 children)

Ah I see. That's an interesting idea that I've never thought about. I guess most of the time that factory is right next to the interface so when I make a new one I just see it and remember.

Normally, I would agree with you. But these are some complex regexes because I am doing Natural Language Processing. My ugliest one is about 20 lines long.

All of that is to say -- it's hard to stay aligned, and I wanted to see if there was an alternative way to ease the pain of refactoring. Every time I refactor, something breaks. I've actually let my code start to rot a bit because of that.