5 ms·
I am taking over a codebase that was written by an outsourced team in Pakistan. The code is in a total chaotic copy-pasta state. I swear the main thing you'll f
by rhacker 9y ago
I am taking over a codebase that was written by an outsourced team in Pakistan. The code is in a total chaotic copy-pasta state. I swear the main thing you'll find in outsourced code is the inability to refactor or re-use code for similar features.
One recent thing I just found is a view that has about 8 source HTML files, all of which is quite complicated angular1 code. Then when the team was asked to have a slightly different button for an ADMIN logging in, they duplicated all the files and changed the button. Since then management had them add new features to the view (that would apply to admins and other users) and they basically coded up the changes requested in different ways in the admin/non-admin views.
Same stuff in the REST code - I don't really get it either - when you talk to the tech leads they are often very intelligent and totally get the criticisms. I think the problem is these outsourcing companies are hiring junior developers and teaching them just enough to write code to just barely get by the requirements. Literally every feature I go through in this code base its like I'm turning over a lovely cake to find worms inside.
- beckler 9y agoif you work with contractors long enough, you learn to write snippets that you expect will get copypasta'd everywhere. the incentive for them is not to make something great, but to just pump out whatever "works" as quickly as possible.
- MartinCron 9y agoI swear some projects are outsourced to a whole different universe, one where people haven’t yet figured out that copy/paste is not a good idea.
- fred_is_fred 9y ago> I swear the main thing you'll find in outsourced code is the inability to refactor or re-use code for similar features. This is my experience too. Teams using modern OO languages, but not redoing common methods in every class. Thereby leading to the same bug needing to be fixed in 5 or 6 places.
- BonfaceKilz 9y agoStory of m'life right now