How we work effectively with legacy code — Inside GetYourGuide I VolHotels


Senior backend engineers, Ondrej Führer and Sergei Kukhariev supply methods on the right way to take care of legacy code. Working with it requires its personal set of expertise, and under, we’ll give an summary of them.

Introduction to legacy code

As software program engineers, we’re regularly studying all through our careers. New tech is all the time across the nook, but good software program habits require follow. Studying supplies in our discipline are largely taught based mostly on greenfield initiatives the place you begin from scratch and be taught one thing new as you go.

Whereas greenfield initiatives are unimaginable for studying, the fact of actual work is sort of completely different. We’re all the time engaged on high of another person’s present work. We’re usually tied up with enterprise constraints or just haven’t got sufficient expertise with the language, undertaking, or software to make a good judgment of which method is true or not. Due to these discrepancies, many engineers search for greenfield initiatives the place they’ll apply their expertise and write code quicker.

However, the grass is not all the time greener — while you restrict your self to new initiatives, you lose a possibility to be taught from the errors of others. Give it some thought. Often engaged on greenfields does not offer you any suggestions.

You merely transfer on and by no means be taught what from you could have finished unsuitable. Legacy code, then again, offers you alternatives to be taught, develop your empathy and reasoning in regards to the code. Positive, it might be irritating at instances, as irritating because it was to put in writing the primary few traces of code.


Source link

You may also like...