Ask HN: What would you do, if your colleague is writing ridiculously bad code?
We are in start up, where no one knew anyone before. We divided our work and couple of weeks / months later when we were putting it together I saw his code. Methods which are hundres of lines long, classes has 2k lines, comments like "// ret" above return statement, "// init" above variable definition, etc. When I said something ( I tried to be polite ), the response was "there is a difference between academic code and real world code", or "ok, do it yourself". I even generated code statistics and describe it - cyclomatic complexity with 41 and NPath complexity with more than 1.8 milion is not good. But nothing changed...