I'm just embarking on a fairly large webapp/api project which I know I'm going to need to bring some a front end freelancer onboard to make a react based web-app front end (My existing team will be working on the backend).
I am really concerned about getting maintainable code from any freelance talent I bring in, e.g. well written SASS/LESS. Paying for a working front end at a project price (can't take day-rate risk at this time) doesn't seem to incentivise writing maintainable code which my team will be able to look after for years to come.
Beyond asking (and praying) for maintainable code, what can I do to help increase the chances of getting better commented, maintainable code?
Thanks!
This is a curious statement because time and materials arrangements don't guarantee maintainable code either. Poorly managed, T&M is more likely to incentivize billing than it is quality work product.
The keys to a successful outcome here, regardless of engagement structure, are:
1. Contract with an experienced freelancer with whom you've discussed the importance of code quality and maintainability. Screen out candidates who can't speak intelligently about these topics and can't point to real-world examples of quality, maintainable code they've delivered.
2. Establish clear requirements before the engagement begins and incorporate them into your contract. A fixed-price contract can actually provide you with more leverage in this regard, as you can tie milestone payments to code reviews. Of course, you must perform these code reviews and take them seriously.