How to teach an unwilling coworker better coding practices

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
-2
down vote

favorite












I have a coworker who is a bit older than me and doesn't follow good coding practices. His coding style is like the wild west - no [encapsulation](I already tried talking and yelling and teaching. ), no reviews (aka run from them, commit on master...). His opinion is that you don't need to encapsulate or make the code more readable, since he can read it just fine.



I already tried talking and yelling and teaching him. Any suggestions on how I can get him to change his coding practice?










share|improve this question























  • Do you directly work on the same pieces of code?
    – Twyxz
    12 mins ago






  • 2




    Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
    – Dan
    10 mins ago










  • Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
    – BoboDarph
    52 secs ago

















up vote
-2
down vote

favorite












I have a coworker who is a bit older than me and doesn't follow good coding practices. His coding style is like the wild west - no [encapsulation](I already tried talking and yelling and teaching. ), no reviews (aka run from them, commit on master...). His opinion is that you don't need to encapsulate or make the code more readable, since he can read it just fine.



I already tried talking and yelling and teaching him. Any suggestions on how I can get him to change his coding practice?










share|improve this question























  • Do you directly work on the same pieces of code?
    – Twyxz
    12 mins ago






  • 2




    Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
    – Dan
    10 mins ago










  • Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
    – BoboDarph
    52 secs ago













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I have a coworker who is a bit older than me and doesn't follow good coding practices. His coding style is like the wild west - no [encapsulation](I already tried talking and yelling and teaching. ), no reviews (aka run from them, commit on master...). His opinion is that you don't need to encapsulate or make the code more readable, since he can read it just fine.



I already tried talking and yelling and teaching him. Any suggestions on how I can get him to change his coding practice?










share|improve this question















I have a coworker who is a bit older than me and doesn't follow good coding practices. His coding style is like the wild west - no [encapsulation](I already tried talking and yelling and teaching. ), no reviews (aka run from them, commit on master...). His opinion is that you don't need to encapsulate or make the code more readable, since he can read it just fine.



I already tried talking and yelling and teaching him. Any suggestions on how I can get him to change his coding practice?







software-industry software-development coworker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 10 mins ago









David K

21.4k1276111




21.4k1276111










asked 15 mins ago









Sangoku

1433




1433











  • Do you directly work on the same pieces of code?
    – Twyxz
    12 mins ago






  • 2




    Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
    – Dan
    10 mins ago










  • Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
    – BoboDarph
    52 secs ago

















  • Do you directly work on the same pieces of code?
    – Twyxz
    12 mins ago






  • 2




    Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
    – Dan
    10 mins ago










  • Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
    – BoboDarph
    52 secs ago
















Do you directly work on the same pieces of code?
– Twyxz
12 mins ago




Do you directly work on the same pieces of code?
– Twyxz
12 mins ago




2




2




Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
– Dan
10 mins ago




Are you his manager? Just because someone codes in a way you don't like doesn't mean they have to change their ways unless it is agreed upon by everyone there.
– Dan
10 mins ago












Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
– BoboDarph
52 secs ago





Answers [workplace.stackexchange.com/questions/74388/… : might give you a hint. The way I was taught is by coercion: your code doesnt make it to master if your PEP-8 (python coding standard) is not clear. My reviewer didn't even care if it compiled as long as it wasn't following the formatting standards.
– BoboDarph
52 secs ago
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "423"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fworkplace.stackexchange.com%2fquestions%2f120800%2fhow-to-teach-an-unwilling-coworker-better-coding-practices%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fworkplace.stackexchange.com%2fquestions%2f120800%2fhow-to-teach-an-unwilling-coworker-better-coding-practices%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

Confectionery