News for hackers. Stuff that matters.
Re:The Worst Programmer by Philip-J-Fry on Saturday September 02, 2023 @12:41PM (#37363109)
I wish I could pair program more. I have so much knowledge to give other members of my team. Domain knowledge, programming knowledge, common pitfalls, etc.

But it's usually contained to someone like a junior calling me up and saying "can you help me?". The answer is always "yes of course!" and I share as much as I possibly can. But it ends there.

I just want to sit down and show them things. Teach them in a way that makes things "click" the way I found they clicked with me. But I don't think management really values this approach. We get siloes of knowledge and then when someone leaves it's all hands on deck to transfer that knowledge.

I'm often brought onto projects as a firefighter because I'm seen as productive. But I think the more important thing for the team would be to have me upskill everyone else below me. But for whatever reason, it's hard to get that point across to management. I can see myself in a few people and that they have potential, they just need encouragement.

Re:The Worst Programmer by psychphysic on Saturday September 02, 2023 @12:50PM (#37363193)
> I wish I could pair program more. I have so much knowledge to give other members of my team.
Re:The Worst Programmer by yjftsjthsd-h on Saturday September 02, 2023 @01:01PM (#37363297)
Yes, that is what was written. Would you like to say something about it?
Re:The Worst Programmer by psychphysic on Saturday September 02, 2023 @01:08PM (#37363361)
I think the quote stands alone.

People are free to draw inferences about how it would be to pair with this programmer and why they are rarely paired.

Re:The Worst Programmer by Philip-J-Fry on Saturday September 02, 2023 @01:41PM (#37363700)
I'm rarely paired because pair programming just isn't something we do in the company outside of just helping people with their little issues. It's not an encouraged practice. There's nothing deep about it. It sounds like you're trying to insinuate something negative about me.
Re:The Worst Programmer by sodapopcan on Saturday September 02, 2023 @04:43PM (#37365364)
I assume they are insinuating that you are coming off as arrogant and only interested in teaching. They should definitely just say so, though.

In a good pairing environment everyone is learning from everyone. You didn't explicitly say you were looking to learn for others though you also didn't explicitly say you weren't. As far as I'm concerned, in the best pairing environments everyone is always pairing with everyone else, not just seniors with juniors. There is the idea that seniors can actually learn from juniors too since juniors will question things seniors haven't thought about in a long time and are living with "I do it like this because it's the way I've always done it" syndrome.

PS, love the username :)

Re:The Worst Programmer by Philip-J-Fry on Saturday September 02, 2023 @06:09PM (#37365938)
>In a good pairing environment everyone is learning from everyone. You didn't explicitly say you were looking to learn for others though you also didn't explicitly say you weren't.

Well that's the thing. The only reason I'm in a senior position at this company is because I never stopped asking questions and I still don't stop asking questions and learning from people more knowledgeable than me. I used to spend hours sitting at one guys desk just asking questions and listening to rants and just gathering knowledge.

I learned that this was the fastest way to progress and get better at the job, but I'm not finding that juniors and other less experienced devs are doing the same thing because they're worried about wasting people's time. And people are less likely to encourage this behaviour because they have high priority work. I got away with it when I joined the company because the rate of change was so much lower and so things generally just took longer.

Re:The Worst Programmer by sodapopcan on Saturday September 02, 2023 @06:15PM (#37365988)
Yep, I feel this is a general broken thing about our industry. I'm very against the whole, "let juniors do easier stuff," mentality. I'm also very against the "you must make big disruptive changes in order to get ahead," as well. The latter often results in people just looking in the wrong places to try and improve things, often by introducing complexity instead of removing it.

I'm pretty jaded by it all. These days I work for a company whose primary business isn't technology and I'm much happier.

Re:The Worst Programmer by johnnyanmac on Saturday September 02, 2023 @02:20PM (#37364068)
>I think the quote stands alone.

I disagree.

>People are free to draw inferences about how it would be to pair with this programmer and why they are rarely paired.

you could. but there's not much to work with. could be helpful but "too valuable" to be a mentor compared to a director or pitching sales or doing conferences. Could be overly pompous and makes things worse. Could simply be office culture and pair programming for more than 15 minutes isn't a thing (like all my previous jobs).

All are extreme assumptions that aren't productive to talk about. Personally: I don't know if I'd want to be in those cultures that enforced pair programming X times a week, but I wouldn't mind , say, a day a month where I could shadow a lead or vice versa and get some intimite knowledge, be it in correcting some pitfalls in my coding or seeing how a more experienced mind ticks. But the chance hasn't come up yet.

Re:The Worst Programmer by awithrow on Saturday September 02, 2023 @02:40PM (#37364249)
Just say whatever point it is you are trying to make instead of making people guess
Re:The Worst Programmer by psychphysic on Saturday September 02, 2023 @05:12PM (#37365570)
I'm actually quite enjoying how divisive a simple quote can be.

I wonder how often I've made a comment and gotten no engagement. This quote seems to have gotten more engagement than the original comment. And quite emotive engagement.

Makes me wonder what that means. Is it genuine curiosity? Or is the quote saying something that the original commenter couldn't see themselves? It's interesting they suggested if I was insinuating something negative about them.

Importantly, they did not ask me. They told me. That too tells us something about what pairing experience with them would be.

Re:The Worst Programmer by yjftsjthsd-h on Saturday September 02, 2023 @05:54PM (#37365869)
> I'm actually quite enjoying how divisive a simple quote can be

The word for that is "trolling".

> Importantly, they did not ask me. They told me. That too tells us something about what pairing experience with them would be.

I asked and you avoided answering. What does that tell us?

Re:The Worst Programmer by psychphysic on Saturday September 02, 2023 @06:16PM (#37365995)
> The word for that is "trolling".

Oh that is fascinating, so highlighting a verbatim quote, in context can be trolling?

What that makes me think of is that people are in denial about what the quote tells us and have displaced those feelings on to me! Amazing stuff.

> I asked and you avoided answering. What does that tell us?

This is interesting because no you didn't ask me what it tells us. You asked if I wanted to say something and I answered that the quote stands alone.

Really interesting stuff in this thread!

Re:The Worst Programmer by dang on Saturday September 02, 2023 @08:57PM (#37366790)
Please don't cross into personal attack.

https://news.ycombinator.com/newsguidelines.html

Re:The Worst Programmer by dang on Saturday September 02, 2023 @08:57PM (#37366791)
We detached this subthread from https://news.ycombinator.com/item?id=37363109.
Re:The Worst Programmer by segfaltnh on Saturday September 02, 2023 @01:04PM (#37363329)
Frankly it sounds like you need to make this happen. I don't know your company culture but at places I've worked Staff+ engineers aren't meant to wait around for permission to be catalysts and mentor other engineers.
Re:The Worst Programmer by Philip-J-Fry on Saturday September 02, 2023 @01:32PM (#37363613)
I'm usually the catalyst for change, but that's usually around tech and process. It's more effort for me to try and change my managers mind on what our development culture should be. The company I work for has a reputation for being a bit of a grinder and I've managed to help reduce that reputation in my team gradually at least.

But at the moment I have work to do and deadlines to meet, so it's a hard sell to suggest stepping back from active development and focusing more on incubating our less experienced devs. Even though it's better in the long term, and my manager would even agree on that, important short term projects just take priority.

Re:The Worst Programmer by nevertoolate on Saturday September 02, 2023 @02:46PM (#37364301)
Optimizing team efficiency is a team effort. It is a false dichotomy that you either work on “important project with deadline” or do mentoring. There are deeper structural problems that you need to solve first imo.
Re:The Worst Programmer by politelemon on Saturday September 02, 2023 @01:05PM (#37363339)
Yes very similar. It makes me very happy when I'm called over by a junior proactively. Not mainly because I'm able to help them, the real reason is that they sensed something about the problem that needed a second pair of eyes, and they didn't waste time. That's them gaining intuition and experience and I get really happy for them.

I don't actually say it though because I don't know how to express it.

Re:The Worst Programmer by raincom on Saturday September 02, 2023 @01:26PM (#37363565)
In almost all companies, even seeking help is frowned upon. One ex-Microsoft manager, now a senior Manager at Atlassian, called that 'hand holding'. Some actively don't want to help out others, due to PIP/bonus culture. At Amazon, some team members explicitly give bad advice when asked for help. That's why we have this culture of "lone rockstars", who spend a lot of time to learn without being mentored.
Re:The Worst Programmer by rawgabbit on Saturday September 02, 2023 @05:00PM (#37365486)
Seeking help isn’t the problem. It is priorities. Usually the best developers are tasked with the more impactful tasks whose deadlines must be met at all costs. As a manager, I would view my task is to shield said developer from distractions so he can save my butt because my job is also on the line.
Re:The Worst Programmer by jonhohle on Saturday September 02, 2023 @05:30PM (#37365692)
If someone is intentionally giving bad advice, that sounds like they deserve some anytime feedback. (is that still a thing?) That is definitely not thinking like an owner.
Re:The Worst Programmer by BirdieNZ on Saturday September 02, 2023 @06:36PM (#37366102)
> One ex-Microsoft manager, now a senior Manager at Atlassian, called that 'hand holding'.

Which senior manager is this, out of interest?

Re:The Worst Programmer by lolinder on Saturday September 02, 2023 @07:09PM (#37366271)
Name-and-shame culture on the internet is toxic and ruins innocent people's lives. When someone conscientiously keeps a person anonymous while describing one or more of their flaws, there's no need to ask them to name the guilty. There's enough unnecessary permanent reputational damage going around on the internet already.
Re:The Worst Programmer by rjbwork on Saturday September 02, 2023 @01:46PM (#37363752)
Apparently I am pretty lucky. My managers are explicitly asking me to help rescue a project AND get the dev who did most of the work upskilled and following some of our patterns from some other successful projects. It is hard to know whether they are actually taking my advice and changes to heart and integrating them into their knowledge base and mindset, or just accepting that they're being asked to make changes by me and doing them.

Mentorship is hard, regardless of management buy in :/

Re:The Worst Programmer by foolfoolz on Saturday September 02, 2023 @02:43PM (#37364279)
this post is really strange because it actually describes a good environment

- code isn’t changing in code review except for really good reasons

- people who need help are reaching out

- projects that need help get additional help brought in

what else are you looking for? this example is about as pair programming as it gets at most places. they’re called silos when people don’t like them and layers of abstraction otherwise but they’re the same thing: no team will have 100% shared info on all parts and knowledge transfers on exits are a decent step to bridge this

if you want to teach the team more, teach them more. usually the best way to do this is in code review. it’s direct comments on code. write a good review you want more people to see? post it in the chat. set up additional time to share ideas with the team. all of these things you can do as an IC while producing code

sorry but this post comes off as “i’m smarter than everyone.” i’m guessing the reason management hasn’t gotten your message is the message isn’t clear. what exactly do you want to do? and what do you need their help for?

Re:The Worst Programmer by Philip-J-Fry on Saturday September 02, 2023 @05:47PM (#37365819)
I don't think code reviews are the _best_ way to teach. Because for a start, you're usually working with a complete task. Someone can have a perfectly fine pull request that implements the feature or solves the bug, but it might not be the best way of going about it.

Now, as a reviewer your spidey sense tingles and you get the feeling there's a better way. But now it's significantly more effort to pull that change apart or start from scratch and experiment with a new approach, then write this all up on the pull request with the caveat "but what you've written works, so in the interest of time we can merge this".

Pair programming would get you on the right track from the start. You are able to assist an inexperienced dev and guide them through the process step by step. Imbuing your knowledge, raising questions, suggesting fixes. This is exactly what the blog post describes. The developer was seen as unproductive because their time was spend pair programming rather than directly doing the work themselves.

I don't see how my post comes across as "I'm smarter than everyone". I know things that less experienced developers don't know, and that's a fact I know from talking to them and reviewing their code. But the culture just isn't there to be able to spend significant portions of my day effectively being their teacher (which I would love to do!). Instead it's often "the blind leading the blind" while the more senior members of the team are off delivering important projects and not having the capacity to imbue their knowledge onto the less experienced members of the team.

It's a culture thing and I wouldn't say it's a good environment for nurturing new staff. Spending 2 hours in a Teams call or at someone's desk is uncomfortable for both parties in a company that doesn't encourage this sort of collaboration. And so there's a sense to not "waste someone's time". The person you're helping sees themselves as a burden rather than seeing themselves as a student. And as a teacher, you're conscious of the other work you're supposed to deliver because it's not expected for you to be spending significant parts of your day pair programming.

Re:The Worst Programmer by foolfoolz on Sunday September 03, 2023 @01:41AM (#37368007)
> But now it's significantly more effort to pull that change apart or start from scratch and experiment with a new approach, then write this all up on the pull request with the caveat "but what you've written works, so in the interest of time we can merge this"

this is your issue. you’re approving prs due to perceived time constraints that you wish you could say no to. are these time constraints real? even for significant prs of 1-2k lines responding to a comment of rewrite another way only takes 1-2 days. code review isn’t about finding the best solution. it’s the best solution given the current trade offs. things to ask yourself are

- are the time constraints real?

- does the team agree on the “right” way?

if there’s time constraints sure i get it. these are external commitments. public deadlines. it’s hard to ask for additional work like this. but in my experience these are rare. usually management is smart enough to avoid external deadlines

does the team agree this is the right way? are you pushing your own narrative? if it’s a team strategy, it’s very easy to tell people to rewrite an entire pr for. if it’s your opinion but you can defend it, make your case, and if it’s strong you can still get someone to write it. is this so bad it’s going to be rewritten soon?

> the more senior members of the team are off delivering important projects and not having the capacity to imbue their knowledge onto the less experienced members of the team

i thought you were saying you are this senior engineer?

i don’t get this. you want to spend more time helping people but think it’s uncomfortable to be on a call with someone for 2 hours getting through a problem. you want to pair program and feel this way about a shared coding session? i’ve spent literally 7 hours on zoom screen shares. if you’re actually helping people they appreciate it

you say the culture isn’t there to support this but then list examples of good places you could create this culture and choose not to

if you truly are this smarter, better engineer that should spend all your time helping your team, why aren’t you doing these things on your own?

Re:The Worst Programmer by Philip-J-Fry on Sunday September 03, 2023 @05:26AM (#37368959)
I think you're viewing this in a very idealistic way and not a way many companies actually operate.

You can me ask "why don't you do X". And the answer is that the culture does not support it. I have work to do, work I've been given because as senior members of the team we are pushed into bigger and more important projects. The less experienced members of the team just have more time to do things.

For me to spend 7 hours a day sitting in a call with someone would mean 7 hours of not delivering work that my manager and project managers expect to be delivered. No person in the business is going to want to spend 7 hours on a call because the culture does not encourage it. This is why I said it is uncomfortable for both parties. Taking hours of someone's time isn't seen as a good thing, it's seen negatively. Of course the person you're helping appreciates it. But the culture makes them feel guilty for asking.

Should that be the case? No. Is that the case? Yes. Am I working toward that not being the case? Yes.

I don't know why you think I'm not trying to change the culture. I've literally listed all the issues and ways to fix it. It's not an overnight switch.

Re:The Worst Programmer by liquidpele on Saturday September 02, 2023 @04:11PM (#37365089)
Have juniors plan out work first in design doc form and broken up into small deliverables. Helps to catch things early when they start down a rabbit hole.
Re:The Worst Programmer by sodapopcan on Saturday September 02, 2023 @04:36PM (#37365286)
Pairing gets a lot of hate and is very misunderstood. It can be terrible, though, if the org doesn't encourage and teach it. There are also lots of things about pairing that are misunderstood, especially that things take more time.

I was on a team that paired all the time and it's sort of ruined me for anything else. We switched pairs daily and everyone would pair with everyone else (on the team). When a junior joined the team they would very quickly lose their junior status.

Re:The Worst Programmer by jimmaswell on Saturday September 02, 2023 @05:28PM (#37365676)
Pair programming sounds so stressful and unproductive to me. You can't read someone's mind. Any interjections while someone is in the middle of coding can't be more than distracting noise most of the time. And I would constantly feel self conscious that I'm taking too long to write something, googling or asking Copilot stupid questions, etc. Reviewing after the programmer believes it's ready to review makes much more sense to me. Though Copilot can be very helpful as an artificial pair programmer.
Re:The Worst Programmer by teirce on Saturday September 02, 2023 @05:37PM (#37365745)
The point of pair programming isn't really to be talking to someone while they are coding a known solution. It's to work through and discover a solution together to an unknown. In this sense, you're kind of both in the same headspace together, and can have a conversation without necessarily breaking focus. And I would venture that almost any question that comes up in pair programming would either come up later in code review, or could be hand-waved with "yeah, I plan to fix that with X" and move on.

The important part of pair programming isn't really the programming per se, it's the discussion.

It also requires some amount of conversational art. As for being self conscious about things, you would have poor coworkers who make you think that or some unfounded worry. A good pair programmer can have a discussion without making you feel like an idiot - much the same as a good code review.

Re:The Worst Programmer by robryan on Saturday September 02, 2023 @07:27PM (#37366348)
I agree with you for a case where you are taking a feature from start to end. The case where you are spending half an hour unblocking someone who is stuck or brainstorming a better solution for something tends to be beneficial though.
Re:The Worst Programmer by willsmith72 on Saturday September 02, 2023 @08:30PM (#37366664)
I used to think the same until I was put in an environment where it was normal and where everyone was trained in pairing.

Copilot is as much a pair programmer as stack overflow is... So not at all