r/programming • • Dec 15 '18

The Best Programming Advice I Ever Got (2012)

http://russolsen.com/articles/2012/08/09/the-best-programming-advice-i-ever-got.html
1.7k Upvotes

313 comments sorted by

46

u/AttackOfTheThumbs Dec 15 '18

Usually, if I think something is weird in the code, I check the tagged developer, and then talk to them about it. Sometimes there's a reason, i.e. a specific work around, framework for in progress features, etc.

IMO, there's no reason to ever purposefully make anything slower, but other times, maybe your compiler cannot optimize those inefficiencies away, that exist for maintainability.

I do heavily disagree with using your own time to do this kind of thing. You are not being paid. Bad idea. Sets a bad precedent.

1

u/Ghosty141 Dec 16 '18

I do heavily disagree with using your own time to do this kind of thing. You are not being paid. Bad idea. Sets a bad precedent.

Why does it matter if he gets paid or not? Apart from that, the fact that it wasn't known why the application was that slow is the real problem.

2

u/AttackOfTheThumbs Dec 17 '18

Simple, he just did free work. In future, they will expect more free work. This is how it works.

25

u/LUV_2_BEAT_MY_MEAT Dec 15 '18

I don't see why he rewrote the whole system and demoed it for everyone int the company before asking the original Dev why they wrote it that way.

There's a difference between not "don't mess with someones code" and "don't try to convince upper management a whole team of people is incompetent behind their backs"

-6

u/Man_with_lions_head Dec 15 '18

Because he was selfish, while trying to blame others.

He thought he could solve the problem by himself, get recognition for being a fucking genius, get a raise, and something to put on his resume.

It was total selfishness on his part. Trying to grab all the lightning and thunder for himself, and be hailed a hero and savior.

You are totally 100% correct.

6

u/matheusmoreira Dec 16 '18

He thought he could solve the problem by himself

He did solve it by himself. Why do you believe otherwise?

→ More replies (5)

120

u/am0x Dec 15 '18

This was the one thing that I really enjoyed when I was on an extreme programming team. Since you pair program and pairs are swapped almost daily, the code is no longer one persons on the team. The entire team has ownership. This encouraged peaceful discussions about best practices pretty much every single day.

180

u/ulyssesphilemon Dec 15 '18

Constant pair programming sounds exhausting.

32

u/MetalKid007 Dec 15 '18

Plus, bathroom time gets awkward. have you ever gotten advice that you need to hover? :)

90

u/the_gnarts Dec 15 '18

Constant pair programming sounds exhausting.

It is. Also terribly distracting for anyone else in the room due to the need for communicating even the smallest instructions vocally when you’re not currently at the keyboard.

30

u/millenix Dec 15 '18

In times when I've had private office/cubicle space, I consistently found I did more face-to-face collaborative work than when I worked in more open spaces. For exactly this reason.

6

u/Ghosty141 Dec 16 '18

Studies have shown multiple times that open offices do not benefit communication and "team spirit". It's so weird how they still get all the praise.

5

u/AngledLuffa Dec 16 '18

Why would you ever not be at the keyboard? Just get one of these

4

u/the_gnarts Dec 16 '18

Looks unhygienic.

I prefer one of those [dedicated pair programming seats] (https://i.imgur.com/e1jSFts.jpg) that some shops have. Much more comfy.

7

u/brtt3000 Dec 15 '18

Being able to talk freely with direct coworkers/teammembers is the best thing for productivity and collaboration. Sitting with people with other projects or job functions has a chilling effect on the flow of communication.

6

u/ChipThien Dec 16 '18

I love it. I have enough energy to come home and work! The key element is to have amazing coworkers. I attribute lots of laughing and personal growth to pair programming in addition to making great products for my employer.

12

u/am0x Dec 15 '18

It is, however the end product was always better. Then again you a are consuming two resources, so it also hurts the budget.

There are pros and cons to each way and not all projects fit the need for one or the other. However, every developer that came out of the extreme programming team had grown more in a year than any other developer had over 3 years.

15

u/meltingdiamond Dec 15 '18

People, not resources. Treating people as things is the root from which the tree of evil grows.

5

u/am0x Dec 16 '18

Eh maybe, but for overall company success you Need to think that people are a part of the budget. Too many developers don’t think at all in terms of business and that is equally as bad. If you are costing the company money, then why keep you?

3

u/jdgordon Dec 16 '18

People are resources and computers are assets! Quite literally the reverse of what those words mean

4

u/pavel_lishin Dec 15 '18

This would not be a good environment for me. I'd be too stressed by the end of the week to care about personal development, and would give zero shits about the quality of the end product.

5

u/am0x Dec 16 '18

Yea you probably wouldn’t be a good fit for the team. It was very interactive and extremely driven by learning a and researching best methods. It was never stressful. People were never angry, it was more of a team collaboration. Some people prefer to play a singles sport like golf and others like team sports like basketball.

→ More replies (1)

2

u/[deleted] Dec 15 '18

Is it better or is it safely mediocre?

3

u/am0x Dec 16 '18

It’s the best codebase I have ever seen. Test driven, extremely thought out, refactored on the spot as needed, etc.

1

u/[deleted] Dec 19 '18

Safely mediocre is better than most codes I've read so...

2

u/yatpay Dec 16 '18

I found it undeniably lead to better code but made me hate my job and become exhausted within just a few hours. Super useful.. in small doses.

2

u/[deleted] Dec 19 '18

On the plus side, I don't think it ever really happens. On my team managers were holding guns to people's heads to peer program all the time and the moment they would leave the room the programers subdivided tasks so each person could program in peace.

17

u/nomadProgrammer Dec 15 '18

Fuck doing pair programming every day all would be too exhausting for me

2

u/am0x Dec 16 '18

That’s why there are singles sports like golf and tram sports like basketball.

Even then, it wasn’t very exhausting. I was learning and engaged so much, but I am very passionate about programming, that the conversations I had with people were super fulfilling. Imagine getting to program with the best programmer you know...how they think, why they do things a certain way, how they refactor, what their workflow is like...it was amazing. I learned more Doug that for about a year than I ever did in college or doing research.

→ More replies (1)

4

u/[deleted] Dec 15 '18

That wouldn't have avoided this situation at all. It was an interdepartmental squabble and the guy he would have paired with would have told him to stay out of it, but not why. I doubt the devs on the ground had much insight into why the app was as bad as it was. Given the curiosity of the dev in question, it probably would have played out exactly the same.

Pair programming is not a silver bullet.

192

u/rzurek Dec 15 '18

This is the best advice. Your users experience should always come before your or another developer's ego. This is not easy though.

129

u/[deleted] Dec 15 '18

Dev ego is what is destroying the project I worked on for a couple of years. I switched project out of disgust for how one man's ego could drive a good idea into the ground.

Though I don't believe we should be anti ownership. Just fire "rockstars" that drag everyone down with their beginner expert attitudes.

81

u/[deleted] Dec 15 '18

Just two months ago I left a shop where dev ego was causing the project forever to be delayed (they had taken 3 years on something and weren't done, which in my estimation should have taken 1.5 years, give or take). I was hired as a senior level contractor onto a team that already had a senior developer. Not as senior as me, but he apparently was suffering from Dunning-Krueger effect. In our first interaction he was incredibly condescending, telling me that when I found a good use case for something in particular to then "get back to him".

This sort of interaction went on on and off for a few weeks, during which time I also found out that he had all sort of conflict with other, salaried members of the team, and that even a manager who however did not have hire/fire control, wanted him off. Long story short, the last straw was when this buffoon told me, in response to me suggesting an improvement, that "it's unacceptable for you to contradict me".

Interestingly, and this is why I say he suffers from Dunning-Kruger, I subsequently found a line of code he'd just committed to the code base a month before, that was 275 characters long! Also he created a data structure that I could prove was 500 times slower than it needed to be. I didn't go looking for trouble, I was assigned a story that required me to be in this particular code. My observations fell on deaf ears though. I asked twice to get moved to another team and me, being the expendable contractor, got let go. I doubt they learned any lesson.

46

u/OBOSOB Dec 15 '18

Long story short, the last straw was when this buffoon told me, in response to me suggesting an improvement, that "it's unacceptable for you to contradict me".

I am dealing with a person who has said something almost identical to this to me (and a colleague) in the last few days. I can't get over how apt this whole thread is right now.

2

u/project2501a Dec 15 '18

ask for someone from hr to hold minutes of every meeting from now on

29

u/seemone Dec 15 '18

"it's unacceptable for you to contradict me".

That’s when I smile and then turn into the [Credible Hulk] (https://i.imgur.com/SwnwArh.jpg).

7

u/pier4r Dec 15 '18

Such people don't listen

2

u/seemone Dec 15 '18

From that point on I would be speaking for all the other people, especially his boss.

2

u/loup-vaillant Dec 15 '18

Sometimes, their boss might.

24

u/[deleted] Dec 15 '18

[removed] — view removed comment

2

u/jdgordon Dec 16 '18

You don't need to worry about burning Bridges with future potential clients if word gets round you're difficult (even if not)?

→ More replies (1)

44

u/[deleted] Dec 15 '18

Humble, Hungry and Smart.

I won't work with dev's that are not Humble anymore. One dev in a team that is not humble can, no...WILL destroy the entire team.

The dev that is a god-dev that can do the work of dozens is a complete myth now, and the ones that think they are or are treated like they are are a detriment to any team or dev environment.

20

u/pixelrevision Dec 15 '18

Everyone I have worked with who actually was amazing was always open to new ideas. Delicate balance as new people can flood in new ideas that can derail a project just on quantity alone. But a really sharp dev will spot the idea that makes the better tradeoff after a little reflection.

36

u/[deleted] Dec 15 '18

God devs don't exist but negative and zero work devs do. Those make other devs look good in comparison.

27

u/CrabCommander Dec 15 '18

Please don't remind me, I'm still trying to forget about some of the negative work devs I've encountered.

Nothing quite like getting a knock on your door for help on a basic bugfix that has been assigned for more than a week, only to find out they hadn't actually done anything on it.

6

u/pier4r Dec 15 '18

When was a single person able to do the work of many others ? (The others that do an honest work, not the unproductive ones)

Genuinely curious.

8

u/LaurieCheers Dec 15 '18

2

u/pier4r Dec 16 '18

Indeed he is saying that you can be 10x, 100x more effective than those that have a poor attitude or low skills.

For this I have no doubts. What I meant is: being 2, 5, 10 or more times productive of a person equipped with functioning common sense and functioning work ethic.

It is highly unlikely.

Though thanks for the link.

3

u/LaurieCheers Dec 16 '18

Well, his main point is that with enough experience, you can anticipate what plans will be easiest and most effective before actually doing them, which saves massive amounts of time. That's not really the same thing as common sense or work ethic.

→ More replies (2)

2

u/ArkhKGB Dec 16 '18

The dev that is a god-dev that can do the work of dozens is a complete myth now

Dev yes. Now if they do more than devs they can: being involved enough to get to people's need can often get you a lot. Often people will ask you for the moon: that's when junior dev usually get to their safe zone and start coding. If they asked what the goal of the demands were, spoke with the clients and extracted the real needs they'd see how they could just deploy some software and have almost no need to code. And that's how you get the work of 10 people done: by leveraging already done work.

2

u/Sushisource Dec 16 '18

Although I agree 100% that unhumble or ego-driven devs can ruin projects, I do think that it's stupid of us as an industry to pretend like there isn't a wide distribution of talent and there really are devs who are maybe 2x or 5x better than an average dev. Dozens seems fairly obviously extreme, but I think we do ourselves a disservice when we don't account for the different levels of talent on a team, and deal with them in a honest and open way.

5

u/powdertaker Dec 15 '18

The problem is, many people enjoy digging through other's work but how would you feel when someone digs though yours? Before changing someone's work, have you had a real conversation with them about it? Ultimately, if people are expected to "own" a piece of a project it's their call. Without that, then things can turn into a battle of who's going to change what with no more of a rationale than "My way is better" and it's almost always possible to point to something that can result in some type of improvement no matter how small.

6

u/[deleted] Dec 15 '18

Sorry I don't see how your response is relevant to mine. I was talking about rockstars, anti ego, and being pro ownership.

7

u/juuular Dec 15 '18

I write all my code as if someone else could see it.

I really wish I was in a job where other people could see my code, I really try to make it beautiful.

13

u/SuperMancho Dec 15 '18

Article: Actually it was terrible advice, advice that I've gone out of my way to ignore in the years since.

Every programmer knows it's terrible advice. This advice has no bearing on another developer's ego. Deploying code and value propositions are outside of the discussion about the utility of the advice.

3

u/silent-a12 Dec 15 '18

Users are also dumb af sometimes so...

2

u/ClysmiC Dec 16 '18

What?? To me, it sounds like ignoring the advice dramatically improved user experience.

→ More replies (1)

59

u/BABAKAKAN Dec 15 '18

No matter how much I try, I can't seem to understand the concept of staying the Hell out of other's code...
I don't really understand why they were so angry about it...

They knew, but they kept it to themselves because in that organization, there were some things that were more important than making the system better.

Still can't understand it.


Can someone ELI5 this to me?

128

u/Erosion010 Dec 15 '18

The author got yelled at for changing other peoples code.

The advice he took to heart is that he did the right thing and that the boss was in the wrong.

They knew, but they kept it to themselves because in that organization, there were some things that were more important than making the system better.

Sometimes playing office politics gets you a pay raise and working on things users want will not. There was an article a while back where a dev at a big company (google?) took on a bunch of maintenance work and make sweeping improvements, but always got overlooked for promotions and raises because he did not work on new features.

26

u/BABAKAKAN Dec 15 '18

I get it now, thank you :)

The advice he took to heart is that he did the right thing and that the boss was in the wrong

This alone clears nearly all my doubt. Thanks.

10

u/sd522527 Dec 15 '18

That Google article is so accurate it hurts.

9

u/nord501 Dec 16 '18

5

u/cdsmith Dec 16 '18

Wow, that was quite a read.

Before starting any task, I asked myself whether it would help my case for promotion. If the answer was no, I didn’t do it.

My quality bar for code dropped from, “Will we be able to maintain this for the next 5 years?” to, “Can this last until I’m promoted?” I didn’t file or fix any bugs unless they risked my project’s launch. I wriggled out of all responsibilities for maintenance work.

For context, though it varies by location and other details, based on the job level info provided, this is probably someone who was making somewhere between $200,000 and $300,000 per year in total compensation. Yet they still couldn't get on board and do a job they could be proud of, and felt the need to try to hack the job performance metrics to get even more? At least they left and tried to find an environment in which they could be happier about their work. It's just mindboggling to me, though, how they ended up on this path in the first place. Sounds like there were a few poor decisions about promotion, but it's not as if this person was being exploited for low wage work.

10

u/matheusmoreira Dec 16 '18

It's just mindboggling to me, though, how they ended up on this path in the first place.

That's the problem with incentives. It destroys intrinsic motivation and integrity. He's not really hacking the metrics, he's giving the promotion committee exactly what they want. To do otherwise is to accept lesser rewards for equally valuable work that just happens to not be incentivized. It will corrupt anyone's integrity if it goes on long enough.

Same thing happens at school. People quickly learn what professors look for in their evaluations so they can give them exactly what they want. It's convinced me that student evaluation is untrustworthy as a measure of anything but how good students are at giving the answers people want.

5

u/[deleted] Dec 15 '18

can you please link the article?

25

u/TheDonOfAnne Dec 15 '18

I think they might be referring to this one.

8

u/Erosion010 Dec 15 '18

That's the one! Thank you! You're a good person, I couldn't find it when I looked =(

1

u/Bunslow Dec 15 '18

Isn't Valve the same way?

0

u/[deleted] Dec 15 '18

[deleted]

2

u/geft Dec 16 '18

Because their pay depends on new features, not refactors.

16

u/powdertaker Dec 15 '18

A person's work is a direct representation of their thoughts and thus a very personal thing. We all enjoy, and take pride in, creating something that we believe works. We may say that work shouldn't be personal, but in reality it is. If you go digging around someone else's code uninvited, you are directly disparaging that person. You may not intend that, but most people will perceive it that way. Think about how you would feel to come in one day and find the work you had put many hours (or days) into changed with no warning and a justification of "My way is better"? While it's easy to say "The project comes first and I have no ego" that's not realistic. In the end, it's about respect. It's not so much that no one should not ever look at someone else's code it's really about how people go about doing it and showing the author the respect they are due.

5

u/matheusmoreira Dec 16 '18

Think about how you would feel to come in one day and find the work you had put many hours (or days) into changed with no warning and a justification of "My way is better"?

Why should people have to care about that? If others come up with something demonstrably better than whatever came before, it shouldn't really matter how the original authors feel about the change.

I'd certainly expect stronger reasoning than "my way is just better" though. Imposing world views on others and expecting them to simply accept without argument is indeed insulting.

In the end, it's about respect. It's not so much that no one should not ever look at someone else's code it's really about how people go about doing it and showing the author the respect they are due.

So what's the respectful way to improve a system? Are people supposed to convince the original authors to do it? Even suggesting that something needs improvement can be interpreted as an insult because it implies that the author's original understanding of how things are supposed to work is wrong or incomplete. Every suggestion also forces them to make a choice and take risks: they look bad if they implement a bad idea and they look bad if they don't implement a good idea. Fixing defects necessarily involves pointing out mistakes others have made.

By taking the author's feelings into account, we quickly reach a point where the respectful thing is to do nothing until they realize there's a better way all by themselves.

4

u/[deleted] Dec 16 '18

You have to realise that when you're working on a team, you're working with humans just as much as machines. If you want to change something, you have to get them on your side. To this end, being right is less important than being nice.

Imagine you made a piece of software with testability and extensibility as the top priorities and someone comes in and completely rewrites it with performance in mind. They took out your beautiful code and replaced it with a tonne of gotos. It's unmaintainable but it's definitely a bit faster. They demonstrate their superior code to the boys upstairs. They talk to you about it. You say testability and extensibility are more important. They'll ensure less man hours are spent on maintenance and avoid technical debt. Fred's code is unmaintainable garbage and probably full of bugs. It skips 10 business requirements that you know of. You've been in this organisation longer so management sides with you. Fred is left to wonder why his objectively better code was thrown in the bin and resents office politics

2

u/matheusmoreira Dec 16 '18

The problem is the new code is better in some ways and worse in some other ways. It sacrificed abstraction and flexibility in order to obtain performance. Abstraction, flexibility and testability are generally considered to be good things but they are not quantifiable and thus there's no objective way to prove that the new code is worse. Just because there's no data proving something doesn't mean it's not true, though.

These are actually two different projects. Someone created the original with certain design goals in mind. Then someone else with different goals came along, forked it and reworked it into something else entirely. The only real way to figure out which one is better is to see what happens to them in the long run. Maybe the original version will be able to gain features faster, have less defects and be less costly to maintain. Maybe the speed gains will turn out to be so crucial to the software that the new version will prevail despite the sacrifices made to attain those gains.

Sounds like the latter is what happened in the article: the graphics rendering speed gains were significant to the point it changed how people used the software for the better. They shouldn't hold that against the author just because half the company wanted to keep a server/client architecture. After every change, someone's original code gets deleted and new updated code is introduced to replace it. This particular change just happened to be contentious because people were busy fighting an ideological war over architectural paradigms.

I know of another concrete example. People made git precisely because existing version control systems weren't good enough. They decided that git had to be fast precisely because fast tools change how you work with them. The rest is history.

Eventually, git got so popular that people started trying to build applications on top of it. Turns out creating and communicating with a separate git process was too slow. People wanted a library but the reference implementation wasn't really designed to be used as one. So they made a separate project: libgit2.

2

u/[deleted] Dec 16 '18

Abstraction, flexibility and testability are generally considered to be good things but they are not quantifiable and thus there's no objective way to prove that the new code is worse.

Exactly. There's no such thing as objectively better code. You have to argue your ideas are better. That's a lot easier when you're not an asshole. OP got his code released because he stumbled into a war that was already being fought. If there weren't people on his side of the argument already he'd have had no chance.

As for libgit... git is still around. Sounds like 2 projects for 2 purposes coexisting. Imagine if they'd just submitted a PR with a complete rewrite

→ More replies (1)

1

u/[deleted] Dec 18 '18

Sometimes it is about optimizing one aspect of the software (e.g. what you said about performance vs maintainability), but sometimes some things seem plainly wrong. In such situations you should try to speak to the developer who wrote the code, ask about it and try to "negociate". And in that situation one of the possible outcomes in my experience is "Whatever, you may be right, but I am not going to change anything"... in which case I would argue that you should wait for the right moment and then change the code without saying anything.

2

u/BABAKAKAN Dec 16 '18

Isn't that the reason online communities like github exist? So that people can work together and create a overall better product with everyone getting their credit.
I kinda get your point though... Thanks

5

u/iamanenglishmuffin Dec 15 '18 edited Dec 15 '18

I can add a personal anecdote.

Our code base is poorly written and has a lot of inefficiencies, but it works well for our use case, and 2 devs who have worked on it since the beginning know its ins and outs. The reason it is poorly written is because ever-changing requirements and an under staffed team have caused hack-job work and increased our technical debt. It's also in PERL which is fine but archaic. But now it meets our current requirements, and incrementally re-writing it in a modern language and adding new code for new requirements is possible with reasonable time and resources allocated.

Our non-tech C-suite has decided we will be going with off the shelf PHP software because they believe our new requirements can easily be implemented, and that it will be somehow less costly / less time consuming to maintain going forward. They also think our existing requirements (everything our current system does) can be easily implemented in off the shelf software.

So they've put most of our team into trying to customize this off the shelf software to meet our requirements.

I'm tasked with using our existing code base to preprocess data before it's imported. They've asked me to write all my new code in Java in an obscure modded version of Eclipse because that way it has a GUI that can be run by people who can't code or don't have access to our backend. For now I'm the only one running these processes. My new code preprocess our data which can then be uploaded to the server for additional preprocessing. I have a vm running a branch of our perl code but I don't have permission to push updates to master.

I could hypothetically edit a lot of perl code in my vm to meet our preprocessing requirements with our current code base. I could update the preprocessing web interface to include the functionality of my Java code. I could present it to them and be like look at how great this is.

But they would just say "this isn't what we asked you to do. You have wasted your time".

Edit: to clarify my point... If our team went rogue and started updating our existing code base and ignoring the off the shelf stuff, we'd all be fired. Stay in your lane and don't go rogue. Your employer is paying you to do what they've asked you to do.

2

u/hypnosquid Dec 16 '18

But they would just say "this isn't what we asked you to do. You have wasted your time

Your employer is paying you to do what they've asked you to do.

So painfully true and so hard to swallow sometimes.

1

u/[deleted] Dec 16 '18

Because the programmers were looking to the long term, a notion that businessmen usually can't comprehend. So best to leave the programmers to it, otherwise they won't get to complete what is actually a pretty cool idea. Only problem it seems is that the idea was so long term as to be open-ended, the guy was right to interfere.

15

u/[deleted] Dec 15 '18

Developer ego is the biggest thing I hate in the industry. This goes both ways though. There is the dev ego where they are set in their ways and don't want things to change and look at it a different way, and then there is the dev ego of the self-proclaimed coding geniuses who know best on literally everything and make it a point to tell you why their way is superior, even if that is questionable. If you don't accept their BEST superior methodology, you are not as pure a programmer as them. I've met those types too. Sometimes they are right. Sometimes they just want everyone to see how "smart" they are. Kind of reminds me back in class back in the day when people would raise their hands to ask a question, but not because they wanted an answer, they just wanted the professor and everyone in the classroom to see how smart they are.

75

u/devraj7 Dec 15 '18

The real advice here is that if you're a developer who is trying to build a career, you need to improve your sense of politics and empathy. Being good technically will not be enough.

Politics is obviously important to understand when to speak up and when you should hold your peace. It's sometimes frustrating to have to keep yourself from doing the right thing technically, but it's sometimes the right move in order to secure a better future for yourself and your family.

Empathy is critical in order to understand the people you work with, what makes them tick, what they are after, what they expect from you, and how they can help you further your career.

And most importantly, none of that can really be faked. You need to be truly interested in the people you work with if you want to understand them and develop good relationships with them.

15

u/dudinax Dec 15 '18

In my experience the clueless bomb throwers usually end up doing a lot of good. They advance the project over artificial barriers that us socially conscious types won't touch, and they do it at the expense of their own social standing.

12

u/pixelrevision Dec 15 '18

Honestly? This also sounds like a political fight that just needed to be fought out anyway. “Is it more important to have our current customer experience be better or keep going with this server based implementation because this is the future?”

Very rare to be able to have an opportunity to pivot like that with a weekend worth of code. Unfortunately a lot of companies are not structured to be able to work like this and so a change might mean an entire department gets laid off.

50

u/[deleted] Dec 15 '18

This sounds like load of crap. You shouldn't have developer ego. There is no I in Team. You should work as a team solving problems. I hate when I have worked places like that. " Don't touch that code, only X does that ". Developer ego kills products. The kind of people that don't like code reviews because their code is perfect. It's all about the way you share your ideas. Don't go to the boss and say that code totally sucks and is made by apes. Talk with the team and say what would make it even more awesome.

21

u/LeagueOfLegendsAcc Dec 15 '18

Sometimes that doesn't work. I have a manager who inherited a mostly working system with a few quirks in it. Super obvious stuff, but he wasn't formally trained for his job so he just does things a certain way because that's how he was taught. He still has such a huge ego that he routinely tells me to not argue with him then proceed to walk away without providing any real guidance.

I've recently adopted the strategy of just saying yes to everything and going above his head for approval for my work. It helps that he's naturally an angry person and I come off super chill so most people side with me by default.

6

u/I_AM_A_SMURF Dec 15 '18

Managers should not be involved in writing code IMO.

3

u/LeagueOfLegendsAcc Dec 15 '18

Luckily we aren't programmers, we do 12v rv electronics.

1

u/cephalopodAscendant Dec 17 '18

I agree that you should work as a team and avoid having an ego, but what should happen has little influence on what does happen. In all likelihood, you will run into a developer with a sensitive ego at some point in your career, so it's a good idea to learn how to deal with them.

1

u/notathr0waway1 Dec 16 '18

Wow. Why so much hate? The stuff devraj is saying is spot on. Holding back is almost never going to serve you wrong, but jumping ahead is often riskier than it's worth.

I've spent my entire career trying (and failing) to curtail my impulse to jump ahead, do the right thing immediately, and assume everybody just wants the best thing built as efficiently as possible.

The more I listen, pay more attention to "the vibe" of a group, and keep my mouth shut/emails unsent, the better I do.

I think after many years of practice holding back, the best leaders learn to speak up very selectively on very high probability wins. All while remaining optimistic (that's another of my problems).

19

u/auxiliary-character Dec 15 '18

Why? So you can leave the the CAD system slower than it otherwise would be? Fuck that.

Learn to be the better programmer and listen when you're not. Politics begrudgingly yields to performance.

21

u/Joel397 Dec 15 '18

Except sometimes you don't have the whole picture and aren't qualified to GET the whole picture. And politics is just talking to people; I've seen issues solved and projects started that took dozens of emails back and forth to talk about, and only one lunch conversation to fix/start. In other words, politics can yield performance.

4

u/wewbull Dec 15 '18

What if your company doesn't want it to be faster, because that would decrease the number of licenses they sell? They are fast enough, thank you very much.

15

u/LaurieCheers Dec 15 '18

Then your company is waiting to be out-competed by a better product, and good riddance.

3

u/brtt3000 Dec 15 '18

True but programmers aren't business executives.

3

u/[deleted] Dec 15 '18

[removed] — view removed comment

3

u/brtt3000 Dec 15 '18

If you pay per CPU core or other licences fuckery you know what is going on.

6

u/elsjpq Dec 15 '18

No the real advice here is to eliminate politics that impede technical goals

→ More replies (1)

2

u/[deleted] Dec 16 '18

Bullshit, it was the company that was torturing the employees by giving them horrible software. Where's the empathy in that?

1

u/Gotebe Dec 15 '18

I, OTOH, explicitly tell people "I am not here for a career"- and I mean it.

There's obviously situations where it can go either way (or in multiple ways), but going with the politics over having a better product I refuse to do.

Disclaimer: I feed a family of five (alone ATM). One kid is at the Uni, we're all going skiing next week, we usually take a week at the seaside and a week in the mountains in the summer... Career can stuff it, we have enough without it. Can we have more if I had a career? Yes, but the price is too high. Kids can choose the career path when their time comes.

40

u/Green0Photon Dec 15 '18 edited Dec 15 '18

Soooooo, should we, or should we not?

Edit: now I'm imagining the author making the changes so that running in one process is optional and making it an in-app config item, with people not noticing for awhile.

82

u/Krackor Dec 15 '18

The author is saying that you shouldn't withhold criticism of other people's code. The advice given to him by big boss if the CAD company is a mantra that the author uses to remind himself that it's bad advice. When the author feels the urge to reinforce siloing, he uses the mantra to remind himself to break down the silos.

29

u/tremlas Dec 15 '18

I think he's saying something subtly different: Welcome and encourage criticism/comments etc (I.e., encouraging you to be on the receiving end, not just the sending end of the citicism)

2

u/Electro_Nick_s Dec 15 '18

I think the subtilty of the difference between what you said and what the person you responded to said was lost on me. Would you mind explaining it?

1

u/tremlas Dec 16 '18

The difference is between being prepared to give criticism and being prepared to take criticism. Both are important but most people find taking criticism to be much harder.

19

u/James-Lerch Dec 15 '18

I despise the Silo Mentality.

  • "James you are leading the support team, don't waste cycle's QAing updates and new releases!"

  • "James, what the hell happened to this quarter's customer sat score?" --after releasing an update where customers couldn't access the user interface after upgrading because Dev signed it with the wrong cert and QA also trusted the same wrong cert....... <sigh>

2

u/realityChemist Dec 15 '18

It sounds like this may have actually happened to you?

4

u/James-Lerch Dec 15 '18

Sadly more than once, and I do my best to repress the memories of 'Cross-Silo' approval processes and workflows that failed to consider the need to replace an existing approved product update which had already been published.

22

u/AStrangeStranger Dec 15 '18

It is not their code it is the company's - if there is an ego problem the company has a problem that needs sorting.

When in a company that has ego problems either be the heavy weight who can suppress the rubbish or tread carefully when encountering it.

4

u/jk147 Dec 15 '18

I think his point was, a work place is not as simple as just "code." Often times devs think they are hired to just write a piece of awesome software and that is it. In reality any position you get into will have some politics whether you like it or not. In my experience it is important to feel out the dynamics of the team first and go from there.

Also it doesn't hurt to ask around and make suggestions. There may be plenty of reasons why a particular thing doesn't make any sense.

7

u/[deleted] Dec 15 '18

I understood his "best advice" to be not a blanket "stay away from other people's code" that he literally received but rather the more reasonable "always consider whether you should stay away from other people's code" that he took away.

It's a case-by-case thing where more than technical challenges and improvements are concerned.

2

u/Kaze79 Dec 15 '18

In his opinion we should not.

The advice was bad but it was a valubale lesson to him. Whenever someone suggests something or has feedback on the writer's code, he remembers the Stay the hell out of other people's code and actually listens harder because he doesn't want to be like his former boss.

That's the way I interpreted the story.

37

u/ludonarrator Dec 15 '18

I'd much rather have a supervisor like Torvalds, who tears me apart for poor code, than someone like the dude who says, "stay the hell out of other people's code."

2

u/atred Dec 15 '18

I agree, even more, Torvalds is not firing people or give performance reviews. What he does is point out stupidity at most you can feel your ego trampled, but you should learn from that.

0

u/[deleted] Dec 16 '18

[deleted]

1

u/atred Dec 16 '18

You mean kernel development or another environment?

0

u/[deleted] Dec 16 '18

[deleted]

→ More replies (1)

16

u/dudinax Dec 15 '18

" In the future, stay the Hell out of other people's code. "

Programmers need to get over themselves. If you've got an idea to speed up my code 100 fold, I want you to try it, and if you're right I want to understand what you did.

1

u/[deleted] Dec 16 '18

If you want to keep your miserable job, take that advice to heart.

If you want to be happy at your job, FUCKING RUN!

8

u/[deleted] Dec 15 '18 edited Dec 15 '18

I'm not sure I'd like to work anywhere that holds a programmers work as immutable. Sure, it can suck if someone takes something you're proud of and improves it, but if it's ultimately better for the product, who cares? You might even learn something along the way! Seems like a win-win for me

1

u/boucherm Dec 16 '18

Maybe the authors/maintainers had plans to improve perfs while retaining the possibility to do something, and that is ruined by the new guy's hack. Before modifying the code maintained by other people, and showing the results to the bosses, the polite thing to do is to talk to these people and make sure you are not ruining their plans. You may want to do it in written form.

87

u/_tpr_ Dec 15 '18

But we know empirically that high levels of ownership result in lower defects. While Russ Olsen's contribution may have helped, his boss was right. You should bring up concerns about speed with code owners, and show them why the system is slow, and then let them solve it.

Sure, we shouldn't be egotistical about code. But I think the reticence most people feel about allowing others to work on their code is justified: they've experienced bugs as a result, or have seen the errors others' have introduced.

102

u/panorambo Dec 15 '18 edited Jun 10 '20

If you just politely tell the programmer who has implemented a poor solution that their solution is poor, they'd typically dismiss you for lack of evidence. Empirical evidence -- a modification of their implementation that is much faster, that clearly shows where the defect is -- may be your best persuasion argument against their ego and stubborn attitude. In fact, empirical evidence is what engineers should accept for persuasion, no less. So you can't be blaming the guy either, for wanting to see how you can pull off improving what they maintain is the best implementation (tm).

Regarding the code ownership -- it may be so that the person who wrote the entire software did a good job with everything but the client-server model implementation. In that case, let them own whatever you didn't change, and you yourself will take ownership of the latter. Ownership can change. It doesn't mean it gets lower for everyone involved, it just gets juggled around, and if someone can't own good code, someone else should write it and own it.

If bugs get introduced into your code by someone else, in an attempt at overall improvement -- that's a fact of life. When you work in a team, you must accept things that are outside of your control. Not a reason to maintain bad code, though, regardless of who wrote it.

7

u/_tpr_ Dec 15 '18

You are defending something that needs no fair defense -- if you just politely tell the programmer who has implemented a poor solution that their solution is poor, they'd typically dismiss you for lack of evidence.

You're arguing against a straw man.

If bugs get introduced into your code by someone else, in an attempt at overall improvement -- that's a fact of life. Not a reason not to change code written by someone else.

This line of argument can be used to justify literally anything. Many doctors initially resisted the idea of washing their hands before surgery. Their intentions may have been good, but they should have consulted the research and tried to conform to it when evidence was clear-cut.

6

u/loup-vaillant Dec 15 '18

Many doctors initially resisted the idea of washing their hands before surgery. Their intentions may have been good,

They were not. When Ignaz Semmelweis discovered that properly washing one's hand with chlorine after an autopsy would dramatically reduce occurences of Puerperal fever, some doctors went out of their way to perform autopsies just before assisting childbirth, and raised the mortality rate of the mothers they "cared for" to a virtual certainty (over 9 mothers out of 10 were dying at their hands).

While only a few were this purposefully murderous, most of the profession was too busy looking good and denying that they were the cause of the infections to do anything about it. Nobody actually look at the empirical evidence and said something like "okay, chlorine hand washing is correlated with lower childbirth deaths somehow. We don't know why, but we should probably try this out, just in case it saves many many lives."

Antisepsis caught on only much later, when people like Louis Pasteur and Joseph Lister developed germ theory. I suspect it was because this time, doctors understood what was going on, and therefore wouldn't be perceived as performing rituals they don't understand.

For many people, even today, social status is more important than the lives of others.

2

u/matheusmoreira Dec 16 '18

Some doctors, for instance, were offended at the suggestion that they should wash their hands, feeling that their social status as gentlemen was inconsistent with the idea that their hands could be unclean.

World was certainly strange back then...

3

u/panorambo Dec 15 '18 edited Dec 15 '18

Wait, I merely argue that bringing up concerns to code owners expecting them to solve it, is not going to work, in my experience, even if you show them why it's slow. The only evidence accepted by an engineer, and rightfully so, is showing them a working solution. If the engineer believes they "need" a network distributed client-server framework to solve a problem, then that's what they thought was best, and short of showing them something better you won't be convincing them. That's my experience with stubborn computer scientists.

To be fair you're right about bugs -- new code may introduce new faults, with emphasis on "new". But degraded performance from a user's point of view is bad too. One absolutely needs to assess where there is more risk -- introducing new faults but taking the chance on improving performance, or keeping old code. I also struggle to understand the doctor comparison, how do doctors relate to computer scientists here? Is it that we do things without regard of empirical evidence too often? Is that the point of comparison?

1

u/NotARealDeveloper Dec 16 '18

if you just politely tell the programmer who has implemented a poor solution that their solution is poor, they'd typically dismiss you for lack of evidence. Empirical evidence -- a modification of their implementation that is much faster, that clearly shows where the defect is -- may be your best persuasion argument against their ego and stubborn attitude.

So true. I am currently just rewriting shitty code instead of getting in an argument with my tech lead on why his code is slow. I just finish it, make a presentation and it gets implemented with little to no discussion.

But when it's convention based, it is really hard. e.g. there are datebase queries that are one liners that are so damn long. Instead of using word wrap which creates code that looks like a thrid grader's essay, I added returns. That generated a huge discussion...

1

u/spinlock Dec 16 '18

Exactly. I've seen an entire team go down because one asshole promised that doing everything differently - and fucking the team that had just delivered working software - would be so much better.

It wasn't.

Then all the good programmers who delivered the product that turned the company around fucking quit. The only thing we did wrong was we followed strict programming patterns so the product was stupid easy to maintain.

28

u/SushiAndWoW Dec 15 '18 edited Dec 15 '18

But I think the reticence most people feel about allowing others to work on their code is justified: they've experienced bugs as a result, or have seen the errors others' have introduced.

Yeah, except when the thing works so poorly it's not fit for purpose; that's also a big error.

If something needs to be done, the solution is not always for other people to avoid working on someone else's code. Some maintainers might never change the architecture because they know it too well and are comfortable.

In that case, one solution is for someone else to push through changes, and then for the maintainer who's familiar with that code to review the changes and fix shortcomings that the less familiar person has glossed over.

For highest quality, you need both a fresh set of eyes and a familiar set of eyes. Not just one or the other.

15

u/StillNoNumb Dec 15 '18

Exactly. Russ Olsen could've and should've brought up the idea to those who are responsible. It took him a weekend to rewrite the architecture - the code owner maybe could've done it in a few hours. And maybe, additional technical debt was introduced by his fix - which the code owner could've prevented. And maybe there's a reason why the code owner did it this way and he already considered his approach - so no one's wasting time.

And maybe Russ Olsen did just that but received no response - in which case, obviously doing the job yourself is the only remaining solution. But, if that's the case, then I think the article is clearly missing that part. Talking to the author or maintainer is always always always the first thing you should do when you find what seems to be a mistake in their code. We're humans; we're strong because we cooperate.

9

u/quintus_horatius Dec 15 '18

Exactly. Russ Olsen could've and should've brought up the idea to those who are responsible.

He brought it to his boss, and his boss said it was good. His boss brought it to HIS boss, and that boss said it was good.

If the change was a bad one, it should have died there. It didn't.

People were pissed because they backed the wrong horse and had a hard time accepting that. Per the story, his innocent change to boost performance shipped despite their objections because it was clearly superior.

This is a case of The Emperor's New Clothes, and Russ was the innocent child who called it for what it was.

2

u/binford2k Dec 15 '18

He did talk to them first--after validating that his approach was faster/better. Instead of just bright ideas, he came to them with something workable.

0

u/[deleted] Dec 15 '18

[deleted]

→ More replies (7)

2

u/kankyo Dec 15 '18

Results in lower defects on average over time in non-dysfunctional teams.

2

u/matheusmoreira Dec 16 '18

You should bring up concerns about speed with code owners, and show them why the system is slow, and then let them solve it.

And if they don't?

1

u/_tpr_ Dec 17 '18

Then you have a project management problem, not a code problem. You would work through it the same ways you work through other project management problems.

21

u/[deleted] Dec 15 '18

I have mixed feelings about messing with other people's code.

Some people have certain ideas about how code should be written and organized, and I strongly with some of these ideas, because they are not based in reality at all. When people try to get me to organize code in the way they would like to, I get pissed.

On the other hand, if the code is doing something really stupid and it has effects that are real then it should be called out, and there's no excuse to not fix it.

0

u/[deleted] Dec 15 '18

[deleted]

1

u/tabarra Dec 15 '18

I tried this when I created a 5 people dev team this july.
It didn't worked that well because we tried to come with coding styles for a NodeJS project, and no one there actually knew it that well.

The best policy is to communicate, and put people in contact with code written by coworkers. As long as we all are willing to compromise on something, in the end we can do get pretty flexible about a few things without compromising our code base.

But YMMV. My Team is actually pretty cool and I'm glad I can work with them.

1

u/[deleted] Dec 16 '18

if you're one of those programmers that thinks "do not repeat yourself" is a silly concept

I hope you're not one of those people who believe in mantras without understanding the why behind them.

https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstraction

If you are one of those programmers who think "SOILD" principles are things that should be followed, I don't want to work with you. Frankly I wouldn't be able to take you seriously.

0

u/[deleted] Dec 15 '18

[deleted]

→ More replies (2)

7

u/Snarwin Dec 15 '18

This is really difficult to read on mobile.

7

u/Crypto_To_The_Core Dec 16 '18 edited Dec 16 '18

Yep, similar things happened to me.

Example: fairly early in my career, I was working at a company where about 8 teams of devs were developing their own parts of a massive application. The application was a bit of a dinosaur well before its time - because it had been developed quickly, and had been added to and had been enhanced and changed and added to for at least 5 years.

Nobody, it seems, had the time - or had taken the time - to design things properly.

And I quickly noticed that the same code was duplicated everywhere. If the same screen, or validations, or report was needed in multiple parts of the application, the dev teams wrote their own code and they didn't share it with other teams. The same coded to validate customer inputs (name, date of birth, etc), the same code to generate input screens, the same code to generate reports or totals or summaries, etc.

So, if any part of this changed - a new or changed validation rule, a new field on a report, etc - the system had to changed in many places, and the places where not always obvious, because everything was designed, named, developed differently. Each change request had to go through all 8 teams because nobody knew where or how the change might affect something. There was so much duplication and redundancy and wasted effort.

So, I developed a set of common routines that did the work and replaced dozens of duplicate modules, or else reduced programs down to simple function calls followed by whatever custom processing they had to do. It was the right thing to do, so I did it.

I did not change anyone else's code. I did not tread on anyone's toes. I created new programs / functions / modules that others could call / use to reduce duplication and redundancy.

I showed another team what I was working on and they loved it - this is awesome, why hasn't anyone done this earlier ????

And I showed my boss, and he was so excited that he dragged me into his boss office so I could show him and he was even more excited - and demanded to know why the hell hasn't anyone done this earlier ????

I only spoke to the other team, my boss and his boss. I'm a very quiet person. I didn't go bragging about anything to anyone or big noting myself or putting anyone else's team or work down. All I said was that we can reduce duplication and redundancy.

All was good, or so I thought.

The next day I came into work, and I was told to come to a room where my boss, my boss's boss, and the team leaders for most of the other dev teams who proceeded to rip me to shreds, saying stuff like "I've been developing software for 30 years kid, you are not going to come in here and show me how it's fucking done", and another team leader was so angry that he wanted to drag me out to the car park and beat my head in (and he said this in front of everyone), another team leader lied his ass off and said "there is no duplicate code, there is no redundant code", and so on. Really horrible behavior. Extremely unprofessional. My boss and his boss sat there looking down, very embarrassed and did not say a thing. Clearly the dev team leaders had banded together and wielded the power at this company. My boss' and his boss were freelancers who could have their contracts terminated at any time, so I guess they did not want to make waves. They were puppets.

So what happened ?

3 of the dev teams used my common modules and saved themselves tons of duplication and work, and the other 5 dev teams stood their ground and kept their shitty duplications and redundant code and doing things "their horrible old way".

I didn't hang around at that client long. Bigger and better projects with better people awaited.

Thought about this a lot over the years ... I don't care who you are or how much experience you have, if you got ideas to make something better or faster or more streamlined or to reduce waste or redundancy, then I want to hear it and will do whatever I can to make the project better.

5

u/acroback Dec 15 '18

Engineer in me says "this is wrong advice".

But mentor in me says "this is right advice".

The reason is, there is no set way to draw boundaries.

I repeatedly see engineers rewriting common libraries and then missing the big picture in the process.

Now I have a code piece in library which has so much false sharing that it sucks balls in term of performance. Trust the process at work, do hacker work in your free time. No one is judging you based on how many lines you write in others code bases.

5

u/GravityTracker Dec 15 '18

Had this happen to me, except I was the team lead. I'm a pretty egalitarian person and don't view the project as my project, but our project. I found something I wanted to improve and changed it. A few days later, my boss came to me and said, did you change some_developer's code? I said, "yeah, why?" Well, they're really upset about it. Can you apologize? Errr, I guess?

Some people are so weird.

1

u/harald921 Dec 30 '18

While working as an intern I was working on a product with one other intern. There were a few times where I opened up a few things he wrote and just knew that it had to be fixed. So I did.

It felt really weird in those cases. I more or less had to rewrite everything he did, and he took it very personal. "But it worked!" he said. Yes I guess it technically did work, but just because it didn't collapse and explode at first nudge it doesn't mean it's good enough.

8

u/Nixargh Dec 15 '18

I did a similar mistake early in my career. I worked as a low level developer in a web agency. We were doing an eCommerce solution for a very respectable client in our country. The code was in fact utter rubbish, but somehow it wildly outperformed their previous solution.

Anyway, they insisted on having one of these "infinite scroll" pages, where more products would be loaded automatically when you reached the bottom of the page.

Problem was, it was painfully slow, and the client was complaining. So I spent an evening fixing it, and brought the load time down from several seconds down to a virtually instantaneous load. You never saw a loader, the new products were just there. I was quite proud with my work!

Cue my surprise next morning. The client had been calling, and he was furious. Therefore, so was my manager. And because it was an important client, it got escalated directly to the CEO.

I tried to explain my case to everyone, but to no avail. There was no possible way I could have done that much of an improvement to the page – somehow, I must have cheated. Specifically, the client believed I was just loading in all the products at initial page load, since they weren't able to provoke a spinner when scrolling.

So, with my job in jepeardy, I apologised and promised to fix it. By putting in a setTimeout, and forcing the loading spinner to show for a minimum of 600ms.

It frustrated the hell out of me, but I did learn that a client might not actually want your miracles. Especially not from a junior. They just want stuff done, and in a fast and believable manner.

Today, with more seniority backing me, my words might have had more weight ... I'm not sure it would save my bacon, but I would give less of a damn about it, and I certainly wouldn't downgrade my solution.

5

u/benji Dec 16 '18

If you were the junior, and the senior devs above you weren't able to analyse the code well enough to prove whether the way you'd improved it was legit or not, then they were incompetent imo.

4

u/saltling Dec 16 '18

Exactly, sounds like /u/Nixargh was the only actual developer at the company.

2

u/Nixargh Dec 17 '18

It was a smallish web agency, I guess around ten developers at that time. Unfortunately, this was an important client for the company, so my solution wasn't analysed by senior techs after the fact, to prove whatever I did was correct – the client didn't like it, so I was simply told to "fix it".

1

u/Nixargh Dec 17 '18

It was a smallish web agency, I guess around ten developers at that time. Unfortunately, this was an important client for the company, so my solution wasn't analysed by senior techs after the fact, to prove whatever I did was correct – the client didn't like it, so I was simply told to "fix it".

4

u/bwmat Dec 16 '18

I wouldn't be able to back down in that situation, even if it got me fired.

2

u/saltling Dec 16 '18

How could everyone up to the CEO be ignorant of the work you actually did? Was there no code review?

3

u/Nixargh Dec 17 '18

Code review? Hahaha! This particular project didn't even have version control.

Unfortunately, this was an important client for the company, so my solution wasn't analysed by senior techs after the fact, to prove whatever I did was correct – the client didn't like it, so I was simply told to "fix it".

4

u/FriendlyDisorder Dec 15 '18

That was an interesting article. A "stay out of my territory" attitude has no place in development. I am always thankful for a good, thorough code review and when other people improve my code. I just want to make our internal and external customers happy.

I happened to work for a startup CAD company who embraced the Internet before it was a big thing. Our software could let a team of engineers interact with a 3-D model online. The UI was painted locally on all clients, but the operations to the model (camera position, zoom, solid and drawing manipulations, etc.) would be transmitted across the Internet through our proprietary server(s). It worked very well.

Happily, we were fairly ego-free, and nobody minded the occasional foray into other people's code. In fact, despite being a back-end developer, I fixed an ancient bug in the UI layer's mouse rotation of the model. The main UI developers smiled and nodded at the bug fix. I was personally thanked by a few of our consultants and salespeople. They had been annoyed by that bug for years.

3

u/[deleted] Dec 15 '18

I love this: that the best programming advice is something you should never follow - and that's why it's the best advice. It's a cautionary tale you keep in the back of your head at all times to keep your own ego in check.

Most of the bits of code you touch in your career is "someone else's code". It's a rare and beautiful and almost certainly embarrassing moment when you get to work on greenfield - but mostly, you're maintaining or adapting or building upon something that already exists.

Never be afraid of stepping on toes - and never give someone shit for stepping on yours. Everyone's there to improve the product. It's not about you.

3

u/upandrunning Dec 15 '18

The intersection of mandated ignorance and maintenance.

3

u/[deleted] Dec 15 '18

That was awesome, thanks for sharing OP

3

u/matheusmoreira Dec 16 '18 edited Dec 16 '18

there were some things that were more important than making the system better.

I can't think of anything more demoralizing than this. If someone told me this, I'd stop caring about the system. What's the point of working on it?

Everybody has their own ideas of how everything should be. Programming is unique in how it gives people almost god-like powers to shape the computer's world into whatever they want it to be with no consequences. It's addicting. Being told you can't exercise this power because you're going to step on other people's toes is a quick way to kill the desire to program.

3

u/ThinkBiscuit Dec 16 '18

Not a programmer (got here through front page), but the advice is sound.

In my company there are so many people that when a problem is clearly apparent in process, they just shrug their shoulders and say ‘that’s the way it is, it’s not in our remit’, and leave it at that.

The thing is, whoever the end client is, they don’t give a shit about internal politics or processes. They just want their work done as quickly and as seamlessly as possible. Every other problem belongs to the supplier, and is theirs to sort out.

1

u/[deleted] Dec 16 '18

Let's say that the interest of individuals != interest of the company, if it has bad organization or leaders that don't care about their colleagues.

3

u/vattenpuss Dec 16 '18

This is certainly not exclusive to programming. This advise applies in any corporation.

2

u/vplatt Dec 15 '18

FTA:

In later years, as I found myself building and managing software teams, I've realized that there were probably a dozen programmers on that ancient project who knew why the system was so slow and how to fix it. They knew, but they kept it to themselves because in that organization, there were some things that were more important than making the system better. In the future, stay the Hell out of other people's code. assumes there will be a future. But the best way to have a future is to be part of a team that values progress over politics, ideas over territory and initiative over decorum.

Love this!

2

u/Elelegido Dec 15 '18

This client/server multi process architecture for no good reason reminds me a lot to the LSP (Language Server Protocol) from Microsoft. Instead of producing a library with a common ABI, let's produce a whole server running on a different process so all the coding editors can implement now the same annoying input lag.

2

u/jjfawkes Dec 16 '18

Fuck those assholes, you did an awesome job fixing the bug and you should have been recognized for that.

4

u/[deleted] Dec 15 '18

This advice is so stupid.

  1. Code is bad. Call it out. Create technical debt. Put it at the bottom of the priorities but remember it's there and it's bad.

  2. Don't laugh at bad code. People don't want to write bad code. No one does. They either had not enough information, it was their first time solving this problem, they had lack of funding, lack of time or something else. Usually there is a good reason why code was bad.

  3. If you call bad code bad - be sure to know WHY it's bad. Just because it's not how you used to do it does not mean it's actually bad. But if you can points out flaws and you have better ideas. Say it.

  4. Fix bad code. It's really that simple. If you build on top of it, you will make it worse just by the fact you did that. And your project will turn into unmaintainable pile of crap.

  5. Don't fix bad code if it's providing good interface or is covered by good facade and you don't need to modify it often. You have other priorities. Rework it if you have nothing else to do.

  6. If you fix bad code - make sure yours is not just as bad but in different way. Unless that different way have no impact on the project. Sometimes bad solutions are good in certain situations - making them good solutions.

One of the perks of working in a team is that you can teach people something and you can also learn from them. So pointing out flaws and introducing better solutions EVEN if you can't implement them is ALWAYS a good thing. People will remember that and do better in the future.

If you stay away from other people code - no one will ever really improve. It's actually your ego saying "stay away from my bad code, I'm old, I don't want to change things and I'm too much of a snowflakes to take criticism".

60

u/MuchWalrus Dec 15 '18

Did you read the whole thing?

1

u/[deleted] Dec 15 '18

I suppose it might suggest that the article is a bit obvious. Is this a "don't stick your hand in the fire" type message where it's definitely good advice because the alternative is obviously wrong?

1

u/tabarra Dec 15 '18

To be fair, the wording could be better in the end.

47

u/Kwantuum Dec 15 '18

So you didn't read the article. Splendid.

27

u/MorboDemandsComments Dec 15 '18

I don't think you actually read the article. The article's advice, which I feel is applicable to all of life and not just programming, is that you should always give people a chance and listen to their advice without immediately rejecting it merely because it insults your ego.

→ More replies (1)

8

u/Shaaru Dec 15 '18

You have some good points there, but I think you might've missed the intention of the article. The reason it was the best advice, is because the author knows not to follow it, and it stuck with them for that reason.

→ More replies (2)

6

u/nsiivola Dec 15 '18

Upvoted: I don't care if his takeaway from the article might not be what the author ment, or if he stopped reading when the moneyquote appeared--the list is spot on anyhow.

→ More replies (3)

2

u/liddieskeet Dec 15 '18

I thought this was going to be about lazy people being mad about losing frequent breaks and having to work more.

2

u/[deleted] Dec 15 '18

Actually it was terrible advice

Well that was a waste of time.

2

u/Man_with_lions_head Dec 15 '18 edited Dec 15 '18

This is not about programming at all.

It is about teamwork and communication.

There might be bigger issues than what you know about that come into play, and by going off and doing something on your own, can fuck up a strategy.

Maybe they wanted it done one way, because it had nothing to do with performance at all. Maybe the person wanting it done the slow shitty way had a friend in Facebook or Google who knew that Facebook was ready to acquire a company who did it the networked slower way, for reasons of their own. By doing it this way and making it change, it could take it off the table as a company to be aquired for $5 billion dollars, so that one action could have cost everyone their millions of dollars, even the janitor could have been a multi-millionaire. Maybe the guy trying to get it done the slow way was privy to the information of being an acquisition, but couldn't share it with anyone, because of all kinds of reasons. You don't know the business reasons, you are just looking solely at the technology. If anything, it is super selfish to make better code without looking to anyone else because it smacks of your wanting to be a hero and savior, and also to pad your resume: "Made the system 5,000% faster because of me, me, me. I did this, me."

I have personally tried to get shit done before, a project, and try to negotiate it through corporate hurdles. You have to go one step back, two step forwards, side step here and there. You're doing it all according to plan, then all of a sudden, out of nowhere, someone who has NO fucking idea what you're doing sticks their nose into it, gets others involved, and fucks up your plan, fucks up the long-term goal, for the good of the company, because almost everyone only sees the short-term, and not the long game. It is SO frustrating to see 2 or 3 years of work get fucked out, because of one cowboy that thinks they know it all. If they just would have fucking ASKED me, instead of "It's better to ask forgiveness than permission," no, fuck you very much. You fucked up my game, our game.

Every comment I have read on here does not address the bigger picture, that there might be some information that you don't know about, that might be extremely relevant to doing it one way rather than the other, and that you just don't know. Reasons for a business purpose, that upper management does not have to share with you.

I'm not talking about this specific case here, I'm talking about a more abstracted general overview. But, the number of times someone has fucked my shit up because they stuck their nose where it doesn't belong. I KNOW what they were trying to do. They didn't know what I was trying to do.

→ More replies (2)

1

u/dxk3355 Dec 15 '18

You only have to stay out of other peoples code because they didn't put any damn comments in it.

1

u/Njall Dec 15 '18

As advice goes, and as Russ Olsen points out, "... stay the Hell out of other people's code" is really stupid. Particularly so when honing the bleeding edge of technology. The boss who said this was telling him, "We don't need your help pushing the sledge up the hill. Now get back to work pushing."

Olsen's most sage advice is quite good. And it is simple. Do your best to keep your ego out of your interactions. When you find someone is wrong, learn to lead them through your thoughts which resulted in deciding they're wrong. You might be pleasantly surprised when most arrive at the same conclusion; and, hopefully, happy when they counter your thoughts with better thoughts which change your decision.

As with all things human, we are herd beasts and sometimes have to recognize we aren't at the front of the herd. In those situations, find another herd if you can, otherwise, do your best to moo with the rest of us.

1

u/fromdev Dec 15 '18

I am seeing this right now at my work place. A guy joined 2 years ago filed 3 patents about awesoome product ideas got awards and everything to please him but not acceptance. He is leaving us this january.

Politics causes ugly loss to business.

1

u/Vilkaz Dec 15 '18

That's horrible advice if you don't know the context :)

We are allways making code reviews and questioning each other if some colegues know a better way to solve the Problem.

Communication is key, never simply "fix" code, maybe you simply do not understand why it was there, specialy if you are new in some old systems...

But also, allways question everything :) how else can the old guys learn the newest tricks :)

1

u/[deleted] Dec 16 '18

Man, I have definitely faced similar situations. Fortunately, in my encounter, the higher-ups and architects recognized the good that I was doing and it helped me more than hurted me. But there were some tough meetings I had to get through in the early days.

1

u/joesii Dec 16 '18 edited Dec 16 '18

I'm not sure if I understand what the lesson he's saying is. I also don't understand the reason why other programmers didn't fix the problem (assuming they were aware of it).

I understood the part about being open to other people's ideas, but that didn't seem like the moral. In fact if that was the moral, it doesn't need this story at all. It's common sense that people should be open to other people's ideas (just that if such ideas are problematic, it should be communicated).

edit: Oh I see, this top comment explains it pretty well. The actual blog post didn't explain it well at all. Granted,even with the new information I have, it still seems like that programmers plan was a bad idea considering the circumstances, if true (a bottleneck which won't be replaced any time soon). So it still seems like there wasn't a problem with the change that was made.

1

u/meltyman79 Dec 16 '18

Fuck politics and long live the Hacker.

1

u/wookiecontrol Dec 16 '18

So what is the the advice? I don’t understand what I am supposed to takeaway from this?

1

u/[deleted] Dec 16 '18

This is the wrong advice from this fiasko.

The real advice is to actually to talk to the developer you want to cooperate with, before deciding unilaterally.

The problem is that there is design and code. You don't see why code is written as it is before you understand the thoughts behind it.

1

u/KHRZ Dec 16 '18

Got called in by my boss last week, he wondered if I had screwed something up in someone's else code (I hadn't, just added an URL to my page...) Apparantly this was something you had to discuss first. This is an unreleased product, wtf.

In my previous job I went into the core of the database query generating code and did batch optimization for 20x speedups of some page loads that customers were mad about and shitting on the company for at Twitter. Some risk was there of corrupting money data and what not with my meddling, but everyone loved it. :p

1

u/puradawid Dec 16 '18

I would shift this "advice" to architecture - many people are doing architectures as they own it. Naming modules or sub-projects encrypted-geeky names? Sure thing! Making unusual optimisations or adopting really-nice-but-exotic-and-unusable technologies? Wow, cool thing!

I love these people.

1

u/jack104 Dec 17 '18

Being a good software engineer means you have to be fluent in the art of diplomacy. Programmers and S.E.s all have egos to a certain extent (myself included) and if you go around re-working other people's code they are going to be, at the very minimum, irritated and at worst something like the people in this story. If there's a problem and you have an idea to do something of it, you need to run it up the chain of command. For demo or POC purposes there's nothing wrong with pulling down a local copy and tinkering with it but you shouldn't commit it to a feature or working branch until you get the go from the people in charge and (hopefully) from the people responsible for the block of code in question.

-2

u/bargle0 Dec 15 '18

But the best way to have a future is to be part of a team that values progress over politics, ideas over territory and initiative over decorum.

Be careful, Russ. Thoughts like that today can get you turned in to an un-person.

2

u/cowinabadplace Dec 15 '18

What do you mean?

0

u/takethislonging Dec 15 '18

Companies like this should be named and shamed. Not that it would matter, though, because a tech company with such a horrible culture would be long out of business.

0

u/GregBahm Dec 15 '18

Title of article: "The best programming advice I ever got." The advice: "Stay the hell out of other people's code." The thesis of the article: "Try your best to ignore that advice."

Okay buddy.

0

u/i_feel_really_great Dec 15 '18

Improved code vs. office politics - office politics wins!

0

u/[deleted] Dec 15 '18

Pretty nice article, actually.

0

u/istarian Dec 15 '18

Seems ironic that the people here saying that developer ego is a problem have , imo, issues of their own.

They think it's okay to steamroll over people as long as the product comes out okay. I think the reality of working on a team is that a balance is required. Everybody wants to be appreciated for their effort and it's always going to be a least a little frustrating for someone else to come back later and rip your work out and put there's in which is somehow better, according to them. An overarching design plan seems critical...

I'm not sure exactly what the point of the article is, but even if the software was ultimately better the writer did not help their relationship with anyone else by just up and deciding one day to redo everything on their own initiative because it made things better somehow.

0

u/corsicanguppy Dec 15 '18

In those days CAD, with it's interactive graphics was the highest of high tech.

This is why people get the impression that nerds can't write. At ALL.

0

u/[deleted] Dec 16 '18

The politics can kill a lot of passion and waste a huge amount of resources. It's common to have two departments with similar functionalities to work on exactly the same problem, without the knowledge of what the other is doing at the moment. Competition, especially uncontrolled competition has a lot to do with these kinds of behaviors.