Live data from Hacker News

Ask HN: How much code do you write in your job?

news.ycombinator.com

31–40 of 48 posts

Re: Ask HN: How much code do you write in your job?

#31

I work on OpenTofu since November, lots of coding, docs, the rest is helping the community or coordinating contributions. I used to work for Red Hat (OCP on oVirt/RHV, Arcalot/Arcaflow, etc), in a little over 2 years I wrote somewhere around 40.000 lines of code that I can account for with 80%+ time spent, but that diminished greatly around the end as a lot of changes into the "Scrum to rule everything" direction hap…

Ohh I’m jealous of you. I dream of coming near that number this year on my personal projects.

I’m in the market looking for something in the intersection of infra/systems programming.

It has been tough to get interviews due to my location and experience, but I know I will manage to do it.

Re: Ask HN: How much code do you write in your job?

#32
post #3

I'd say 85-90% of my work these days is programming. Both the actual coding and thinking through problems or architecture decisions, benchmarking, testing/comparing approaches, etc. It really depends on the position and nature of the responsibilities though. I've had position where at least half my time was meetings, and others where there was just a lot of Slack chatter to work through during the day. Right now I'm…

I think I will have to find something to do on the side because everywhere I went with that I thought I would program a lot I ended up not doing much programming.

Re: Ask HN: How much code do you write in your job?

#33

My title is director of product development. I manage a team of roughly 30 people with 1 layer of management between most ICs. While it’s not evenly distributed, over the course of a year I spend about 10% of my time writing code. I’ve worked in strictly development roles before where I was still coding less than 50%

How did you grow? I imagine that to become a director one must have had a very good IC career and accomplishments.

Re: Ask HN: How much code do you write in your job?

#34
post #8

Depending on the type of project, sometimes 70% of the time is programming and 30% is consulting with the team. Other times I do 60% design and 40% programming. It's project by project. For me, most projects are greenfield development. Some of them don't even come to fruition after weeks of designing and are lost. The main thing is to do your job the best you can.

How far into your career are you in? I imagine that it is frustrating to see your efforts go to waste.

Re: Ask HN: How much code do you write in your job?

#35
post #29
post #18

I am the most senior technology person in a After doing this a while, I realized that writing the code isn't the part that takes a long time. It's rewriting it over and over because you didn't fundamentally solve what the business was asking for the first time. I prefer to focus on that part of the puzzle now. Making sure it gets done right the ~first time. Help others on the team avoid lava pits that they can't see…

Sounds like a lot of fun. I work as Platform Engineer so I’m also on call for about 30+ a week sometimes. The only thing I don’t get to do is programming a lot, I mean I do write some Terraform, YML, Go, scripts etc but not the type of coding that you spend a month building something rather than small programs to automate and facilitate our ops work. I want to shift from ops to systems programming and find a complete…

I am also in the boat of wanting to switch to systems programming. Writing code in Terraform or YAML is soul-sucking to me, but sadly all I get currently. I have previous, full time software engineering experience, so I have “seen the light”, making Terraform/YAML feel that much more like a punishment.

I’m building up Rust skills (1 year in now) to make the jump once that’s more popular. It’s a slightly risky bet (Rust jobs are currently 95% crypto).

Re: Ask HN: How much code do you write in your job?

#36

Earlier quoted context omitted.

It's code, you're just not allowed to know what language it's written in.

If it's not a marketable skill it's not. I'm getting out of the door as soon as I get an offer.

Agree and understandable. No one puts YAML on their CV. You do put the overarching technology there though. Say, kubernetes. Configuring that can be a marketable skill.

Another place are CI/CD pipelines. Some jobs seem primarily about that, which I always thought extremely odd and boring. In that sense, the DevOps style of work is truly defeated (developers writing their own pipelines).

Re: Ask HN: How much code do you write in your job?

#37

Earlier quoted context omitted.

If it's not a marketable skill it's not. I'm getting out of the door as soon as I get an offer.

Agree and understandable. No one puts YAML on their CV. You do put the overarching technology there though. Say, kubernetes. Configuring that can be a marketable skill. Another place are CI/CD pipelines. Some jobs seem primarily about that, which I always thought extremely odd and boring. In that sense, the DevOps style of work is truly defeated (developers writing their own pipelines).

Thanks. I'm actually a data engineer but the org is removing Python and Scala from the picture while a data platform team develops a YAML-DAG solution and our team has been the experiment subject for the last 12 months.

I can't imagine being an engineer without writing a single line of code. I'm done.

And Yeah infra is being taken care by the other teams too. But the strange things is, whoever wrote the infra or YAML solution NEVER bothers to daily-manage them. We as the user have to fill in a lot of mundane stuffs. For example they never bother to get permissions for us, we have to do it by ourselves.

Anyway, they get the fun we get the shit. I'm getting out. I heard a lot of big corporations are like that, e.g. I watched the Netflix videos but they all make me shiver and unwanted to work as a DE UNLESS I'm in the platform/tool teams who develop those fancy things, otherwise I'm just a YAML monkey.

Re: Ask HN: How much code do you write in your job?

#38
post #9

I work at a hedge fund, and I spent 98% of my time writing code. I usually work on 2-3 experiments simultaneously, and every day or two take 2 hours off to work on "zany schemes" -- moonshot type ideas that occasionally are very lucrative, and therefore justified time-wise. 1 meeting a week, for 1 hour. I work 3AM to 11AM, then about 12:30PM to 6PM on my side gig https://atomictessellator.com

How much can you get done in 2 hours for the zany schemes?

Do you use any software methodologies?

Re: Ask HN: How much code do you write in your job?

#39
post #20

Earlier quoted context omitted.

> Out of curiosity - are you working in NZ? Yes > What software stack you're using at hedge fund? Cant discuss > Can you tell how many lines of code did you commit in a first week of December? :-) 43 commits, 3440 lines added, 374 removed > Not asking, but asking - what is your hourly rate? :-) Wont discuss with strangers > Congrats on side gig - interesting idea! Thanks! It's heaps of fun and it's only just started…

Like 25 years ago I dreamed of visiting NZ :-) Never been there, but still want to learn to perform Haka! :-) Thanks for answers! That is hell a lot of the code for one week! About software stack - how do you post job ads if you can't say what you're working with? :-)

NZ is nice but it’s too small, I live in the biggest city, and the Python community is very small, and culturally NZ pretty barren being such a young country.

I lived in Germany, Spain and the UK for the last 10 years and it was much better - but had to return here for family.

It is nice to visit though! Make sure you try bungee jumping!

We don’t post job ads :)

Re: Ask HN: How much code do you write in your job?

#40
post #31

I work on OpenTofu since November, lots of coding, docs, the rest is helping the community or coordinating contributions. I used to work for Red Hat (OCP on oVirt/RHV, Arcalot/Arcaflow, etc), in a little over 2 years I wrote somewhere around 40.000 lines of code that I can account for with 80%+ time spent, but that diminished greatly around the end as a lot of changes into the "Scrum to rule everything" direction hap…

Ohh I’m jealous of you. I dream of coming near that number this year on my personal projects. I’m in the market looking for something in the intersection of infra/systems programming. It has been tough to get interviews due to my location and experience, but I know I will manage to do it.

Don't give up! It took me a while to get things going too (I've been in the industry for 15-ish years and only started figuring out a bunch of stuff in the last few years.) Also, there are plenty of remote jobs that will happily do a B2B contract with you unless you are in one of the handful of countries that the US has problems exchanging money with.

I can only speak from my experience, but what helped me land interviews ( as a gradually built up over the last 3-4 years) was:

- Having contributions in high profile open source projects name-dropped at the beginning of my CV. (Front-load the interesting stuff. Also, these should be substantial works in case somebody goes to check.)

- Having relatively well-known open source projects I built from scratch (ContainerSSH, gotestfmt, etc) in my CV with well-known users I can also name drop. These projects had nothing to do with my day job and I built them in my free time.

- Having spoken at several conferences. This is the most unfair of all since not everyone can travel and having the conference in there doesn't say anything about the quality of the talk, but it seemed to help get through the recruiter filter.

What helped me get through the interviews (again, from my experience):

- Having experience in diving into unknown codebases and problems. Most companies that are serious about coding will have you do live coding, take home exercises, or read some code in the interview. If you do enough work on open source stuff, you'll develop this automatically as you will be jumping into code that's not yours.

- Being able to do TDD in the live coding interview and still finish on time. Nobody I talked to actually does hard core TDD in the industry and most people are stuck with a ton of legacy code, but this is a magic trick that will get you some eyebrows raised assuming you don't mess up the rest of the interview. Also, forget algorithmic problem solving. While at least knowing algorithms and datastructures helps, most companies don't have deep algorithmic problems in their day to day operations, so encountering these in the interview I found to be a minor red flag.

- Knowing the language basics. If it's Javascript, know your type issues or how the runtime works. If you do Go, know parallelization problems and how to solve them.

- Structure your code! On the interviewing side I had to fail too many candidates for submitting code with an unclear/messy structure for take home exercises.

Big no-nos (when I was the interviewer):

- Do not claim you contributed to a project if all you did was a typo fix.

- If you have a Github profile, make sure it's not full of forked repos you didn't contribute to. I will only look at what you linked in your CV, but others will google your name (no matter if it's illegal or not).

- Clean up or set your social media to private if you don't want interviewers to see that. Google yourself, make sure there are no red flags there.

- Don't use ChatGPT/Copilot without heavy refactoring. This is incredibly easy to pick out and not cleaning it up, not making the code style consistent screams that you have no idea what you are doing. Remember, interviewers only have your code to go by as a signal source.

- If there is a woman in the interview panel, make sure you don't just address the guys. We did interviews with my wife and we noticed this a lot. This may just be a force of habit, but for companies paying attention to diversity, this is an immediate red flag. The people who got flagged for this usually turned out to have a culture fit problem in other areas too, but it's worth keeping in mind.

- Leave your ego at the door. They may criticise your code, but don't get defensive! Stay factual, that will help defuse the situation.

- Don't have typos in your CV. Use a spell checker.

Finally, really, don't give up. My experience is just that of one person, I (probably) don't live in the same country, probably don't have the same amount of time available as you do, and I (probably) don't work in the same area as you. My advice may be complete garbage and not applicable to your situation.

Post reply on HN