Re:Ask HN: How do you become productive in a new project as ...
by gjjrfcbugxbhf on Tuesday May 23, 2017 @08:21AM
(#14400569)
The existing devs will hate you. They already knew how it worked - now they may not even you've finished - and unlike normal refactoring you never knew how it was supposed to work.
This is a good way to cut the velocity of whole project so you don't look as lost though.
Re:Ask HN: How do you become productive in a new project as ...
by daveguy on Tuesday May 23, 2017 @09:21AM
(#14400915)
I don't think the point is to move the refactor into production. The refactor is a learning exercise. But if you start on the least understood, ugliest parts of the code the devs might welcome a refactor of those bits.
Re:Ask HN: How do you become productive in a new project as ...
by maxxxxx on Tuesday May 23, 2017 @08:31AM
(#14400628)
I sometimes do this with code that nobody understands but generally you should first talk to the people already there and understand the code.
Re:Ask HN: How do you become productive in a new project as ...
by WrtCdEvrydy on Tuesday May 23, 2017 @01:53PM
(#14403447)
Note, I did not say "commit to Production". Just set up the feature branch and tear it apart. Most code out there has 0 comments and uses conventions from when it was written (god help you if it's a legacy product)
Re:Ask HN: How do you become productive in a new project as ...
by gjjrfcbugxbhf on Tuesday May 23, 2017 @02:34PM
(#14403891)
In that case this is a good idea... I apologize for my skeptism. I've experienced the someone doing this and then committing to production though - I left that team as soon as possible...
Re:Ask HN: How do you become productive in a new project as ...
by WrtCdEvrydy on Wednesday May 24, 2017 @11:45AM
(#14410858)
Yeah, that is super sketchy.
Nah, I usually just do a feature branch, refactor items with better stuff and we can then cherry-pick anything that's sexy and still fits our business needs once we've talked it over.
Seriously, the most useful thing I've ever done is just refactoring half of a project to see how it works.