How do I keep co-worker from writing horrible code? [closed]
- by Drew H
Possible Duplicate:
How do I approach a coworker about his or her code quality?
I can handle the for in.. without the hasOwnProperty filtering.
I can handle the blatant disregard for the libraries I've used in the past and just using something else.
I can even handle the functions with 25 parameters.
But I can't handle this.
var trips = new Array();
var flights = new Array();
var passengers = new Array();
var persons = new Array();
var requests = new Array();
I've submitted documents on code style, had code reviews, gave him Douglas Crockford's book, shown him presentations, other peoples githubs, etc.
He still show the same horrible Javascript style. How else could I approach this guy? Thanks for any help.