Skip to main content
Tweeted twitter.com/StackWorkplace/status/1097511216115867650
Copy edited (e.g. ref. <https://en.wiktionary.org/wiki/programming#Noun>). Removed historical information (e.g. ref. <http://meta.stackexchange.com/a/230693>).
Source Link

How should I react when a co-worker says his 3000 line method is optimized.? Should I report it to my boss?

I have a co-worker who said his 3000 line method is the most optimized possible. How do I react professionally to that?

Should I communicate this to the boss, who does not know anything about programingprogramming?

Note that we are a small team of only 3three programmers that are at the same level and each one has his own piece of the project that we manage and code ourselves as we want, while that piece of code do what the boss wants it to do.

EDIT:

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that piece of the project he was working on. How the hell do I read a 3000 line method?

My first thought will be to start all over again from zero and as I already did that with my current piece of project, having in mind that "the boss" doesn't understand anything about programingprogramming and he only cares that the program works and the time it takes us to make it work. I am pretty sure he will get at least a little mad.

  • I had seen the method, it does a lot of things (a lot) and it has a conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method, but I don't think he sees the benefits. He just said that he did "something" like that because every conditional block is inside a C# region.

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particular part of the program

  • The language used to programingprogramming is C#.

  • The speed of the code is not relevant here.

  • Code Reviewsreviews do not exist here. As I said, each one of us works on his own and so long as everything works, no one cares about the how it works.

  • Assume that every single line of those 3000 lines are from actual code, not from spaces or comments.

How should I react when a co-worker says his 3000 line method is optimized. Should I report it to my boss?

I have a co-worker who said his 3000 line method is the most optimized possible. How do I react professionally to that?

Should I communicate this to the boss, who does not know anything about programing?

Note that we are a small team of only 3 programmers that are at the same level and each one has his own piece of project that we manage and code ourselves as we want, while that piece of code do what the boss wants it to do.

EDIT:

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that piece of the project he was working on. How the hell do I read a 3000 line method?

My first thought will be to start all over again from zero and as I already did that with my current piece of project, having in mind that "the boss" doesn't understand anything about programing and he only cares that the program works and the time it takes us to make it work. I am pretty sure he will get at least a little mad.

  • I had seen the method, it does a lot of things (a lot) and it has a conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method but I don't think he sees the benefits. He just said that he did "something" like that because every conditional block is inside a C# region.

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particular part of the program

  • The language used to programing is C#.

  • The speed of the code is not relevant here.

  • Code Reviews do not exist here. As I said, each one of us works on his own and so long as everything works, no one cares about the how it works.

  • Assume that every single line of those 3000 lines are from actual code not from spaces or comments.

How should I react when a co-worker says his 3000 line method is optimized? Should I report it to my boss?

I have a co-worker who said his 3000 line method is the most optimized possible. How do I react professionally to that?

Should I communicate this to the boss, who does not know anything about programming?

Note that we are a small team of only three programmers that are at the same level and each one has his own piece of the project that we manage and code ourselves as we want, while that piece of code do what the boss wants it to do.

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that piece of the project he was working on. How the hell do I read a 3000 line method?

My first thought will be to start all over again from zero and as I already did that with my current piece of project, having in mind that "the boss" doesn't understand anything about programming and he only cares that the program works and the time it takes us to make it work. I am pretty sure he will get at least a little mad.

  • I had seen the method, it does a lot of things (a lot) and it has a conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method, but I don't think he sees the benefits. He just said that he did "something" like that because every conditional block is inside a C# region.

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particular part of the program

  • The language used to programming is C#.

  • The speed of the code is not relevant here.

  • Code reviews do not exist here. As I said, each one of us works on his own and so long as everything works, no one cares about the how it works.

  • Assume that every single line of those 3000 lines are from actual code, not from spaces or comments.

Question Protected by Jane S
Mod Moved Comments To Chat

How should I react when youra co-worker says his 3000 linesline method is optimized. Should I report it to my boss?

I have a co-worker who said his 3000 linesline method is the most optimized possible... How do I react professionalprofessionally to that?

Should I communicate this to the boss (who, who does not know anything about programing) ?

Note that we are a small team of only 3 programmers that are at the same lvllevel and each one has his own picepiece of project that we manage and code our selvesourselves as we want (while, while that peacepiece of code do what the boss wantwants it to do)

Sorry for my poor English...

EDIT:

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that peace of project he was working on.. how the hell do I read a 3000 lines method? My first thought will be to start all over again from 0 and as I already did that with my current peace of project and having in mind that "the boss" doesn't understand anything about programing and he only care about the program works and the time it takes us to make it work. I am pretty sure he will get at least a little be mad

    My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that piece of the project he was working on. How the hell do I read a 3000 line method?

My first thought will be to start all over again from zero and as I already did that with my current piece of project, having in mind that "the boss" doesn't understand anything about programing and he only cares that the program works and the time it takes us to make it work. I am pretty sure he will get at least a little mad.

  • I had seen the method, it does a lot of thing (a lot) and it has conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method but I don't think he sees the benefits. he just said that he did "something" like that because every conditional block is inside a C# region...

    I had seen the method, it does a lot of things (a lot) and it has a conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method but I don't think he sees the benefits. He just said that he did "something" like that because every conditional block is inside a C# region.

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particularyparticular part of the program

  • The lenguaje uselanguage used to programing is C#.

  • The speed of the code is not relevant here.

  • Code Reviews doesdo not exist here.. asAs I said, each one of us workworks on his own and as farso long as iteverything works, no one cares about the howhow it works.

  • Assume that every single line of those 3000lines3000 lines are from actual code not from spaces or comments.

How should I react when your co-worker says his 3000 lines method is optimized. Should I report it to my boss?

I have a co-worker who said his 3000 lines method is the most optimized possible... How do I react professional to that?

Should I communicate this to the boss (who does not know anything about programing) ?

Note that we are a small team of only 3 programmers that are at the same lvl and each one has his own pice of project that we manage and code our selves as we want (while that peace of code do what the boss want to do)

Sorry for my poor English...

EDIT:

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that peace of project he was working on.. how the hell do I read a 3000 lines method? My first thought will be to start all over again from 0 and as I already did that with my current peace of project and having in mind that "the boss" doesn't understand anything about programing and he only care about the program works and the time it takes us to make it work. I am pretty sure he will get at least a little be mad

  • I had seen the method, it does a lot of thing (a lot) and it has conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method but I don't think he sees the benefits. he just said that he did "something" like that because every conditional block is inside a C# region...

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particulary part of the program

  • The lenguaje use to programing is C#

  • The speed of the code is not relevant here

  • Code Reviews does not exist here.. as I said each one of us work on his own and as far as it works no one cares about the how it works

  • Assume that every single line of those 3000lines are from actual code not from spaces or comments

How should I react when a co-worker says his 3000 line method is optimized. Should I report it to my boss?

I have a co-worker who said his 3000 line method is the most optimized possible. How do I react professionally to that?

Should I communicate this to the boss, who does not know anything about programing?

Note that we are a small team of only 3 programmers that are at the same level and each one has his own piece of project that we manage and code ourselves as we want, while that piece of code do what the boss wants it to do.

EDIT:

  • My biggest concern here is that my co-worker might end the relationship with the company at some point and I will have to take care of that piece of the project he was working on. How the hell do I read a 3000 line method?

My first thought will be to start all over again from zero and as I already did that with my current piece of project, having in mind that "the boss" doesn't understand anything about programing and he only cares that the program works and the time it takes us to make it work. I am pretty sure he will get at least a little mad.

  • I had seen the method, it does a lot of things (a lot) and it has a conditionals block (big ones) meaning that if he calls the method with parameter A = 1 the first block is executed and the others ignored and so on... I have told him that he could split those blocks on different methods so it will be easy to read and understand hopping that he would see the benefits of that and would do it with the rest of the gigantic method but I don't think he sees the benefits. He just said that he did "something" like that because every conditional block is inside a C# region.

NOTES FROM COMMENTS:

  • As my co-worker said it is a critical method because it does every single calculations of a particular part of the program

  • The language used to programing is C#.

  • The speed of the code is not relevant here.

  • Code Reviews do not exist here. As I said, each one of us works on his own and so long as everything works, no one cares about the how it works.

  • Assume that every single line of those 3000 lines are from actual code not from spaces or comments.

edited title
Link
Angel Q
  • 727
  • 1
  • 6
  • 10

How should I react when your co-worker says his 3000 lines method is optimized. Should I report it to my boss?

added 129 characters in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
deleted 1 character in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
added 578 characters in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
added 103 characters in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
added 365 characters in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
added 310 characters in body
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading
Source Link
Angel Q
  • 727
  • 1
  • 6
  • 10
Loading