198 points · by mooreds · 7y ago · 110 comments
That's when I finally realized how much of a clue he really had.
And the reason I quit is that he gradually started chasing me around and micromanage my time even though I had been left alone to do my thing since forever, and pretty damn good too. But you can't measure the effect, and suits tend to measure what they can.
The effect of leaving was easier to measure, the company folded about a year later.
Company is still there but they lost more than half their engineers. They didn't realize why people were leaving. Sometimes it's suits. But these were engineers. I learned a lot about how not to manage people though.
I think this is a standpoint that is not defensible. Seeing how it is close to their core competency (people), it is more reasonable to assume that what they were doing was a conscious choice. Maybe you (and apparently a lot of other people) think that is the wrong choice, but that doesn't mean it was not made.
Maybe they do realize now (I was the last to leave, even though the first to secure my ticket out). They thought I was leaving because I just wanted my PhD. I do want it, but there were a lot of reasons I left. Big part was being micromanaged on a project I won, I did all the work on, and I was the only one that had even basic knowledge in the subject (like knowing the difference between a proton and alpha particle. True story),this was the largest contact we currently had, and I was paid the least. They didn't see how insulting this was.
Sometimes people are blind. It's probably much more common in small companies too. We were <20 people. 5/12 engineers left within a 3 month period. All but 1 E1 left and all E2s left. When people are dropping like flies maybe it's not the best to continue blaming those people and find out what you can do to have higher retention.
Was it because you have a skill so rare that you are irreplaceable, or was the system not documented well enough that someone with the same skill-level as you (or higher) wouldn't be able to maintain it from a clean slate?
Sometimes all it takes is that one key engineer leaving to kick off the domino of "how do we fix this issue/make something with our software stack?" glitches across the org
What we have now is frequently a mystery. Simple changes are difficult, difficult changes verge on the impossible. Every new feature requires reverse-engineering of the existing code. Sometimes literally 95% of the time is spent reverse-engineering the existing code (no exaggeration - we measured it); changes can take literally 20 times as long as they should while we work out what the existing code does (and also, often not quite the same, what it's meant to do, which is sometimes simply impossible to ever know).
Pieces are gradually being documented as we work out what they do, but layers of cruft from years gone by from people with deadlines to meet and no chance of understanding the existing code sit like landmines and sometimes like unbreakable bonds that can never be undone. In our estimates, every time we have to rely on existing functionality that should be rock solid reliable and completely understood yet that we have not yet had to fully reverse-engineer, we mark it "high risk, add a month". The time I found that someone had rewritten several pieces of the Qt libraries (without documenting what, or why) was devastating; it took away one of the cornerstones I'd been relying on, the one marked "at least I know I can trust the Qt libraries".
It doesn't matter how smart we are, how skilled a coder we are, how genius our algorithms are; if we write something that can't be understood by the next person to read it, and isn't properly documented somewhere in some way that our fifth replacement can find easily five years later - if we write something of which even the purpose, let alone the implementation, will take someone weeks to reverse engineer - we're writing legacy code on day one and, while we may be skilled programmers, we're truly Godawful software engineers.
The code you write isn't the hard part. It's not the interesting part. And it's not really why you're paid. What I'm trying to imbue into you is the discipline to design and document and plan for the future. Saying you can "whip up a script this afternoon" is not impressive or commendable. It does harm without the other pieces.
If it's a genuinely large project, the working code is a skeleton POC, and we can run a design process using what we learned from it. But most of the time it's not, and that engineer has saved us collectively hundreds of hours of waste talking to death something that just isn't that hard.
I think one of the critical senior engineer skills is having correct intuitions about how much time and energy should be sunk on a particular task. Sometimes that means asking people to slow down, collaborate, and think. Equally often, it means asking them to put down the calendar invites, make a choice, and bang something out. We have this bizarre cost model where code is expensive and meetings are free; nothing could be further from the truth.
Not if it doesn't compile anymore because of a switch in hardware. I've seen this firsthand; same exact code but results were off by an order of magnitude.
For example, the software that runs a bank needs to be constantly updated to comply with current laws and regulations and to support the new types of accounts and services being offered by the bank. Over time, customers wanted to have access to their accounts through ATMs, then over the web, and later via mobile apps.
Skimming Naur's essay, the solution to this problem seems like it could involve building higher level code analysis into the language itself (making the linter part of the language and development environment).
Microsoft is doing this to some degree with compiler extensions on the .NET platform [2]. When used creatively, you can effectively deploy a custom linter with your libraries which emits compiler errors and warnings based on how the user is doing things (ie I think you're trying to do X, have you considered using this new functionality instead?). However, I think it is interesting to consider what it would look like if statically typed code and style analysis/suggestions were a first class citizen in a programming language, not just an add on for advanced users. If this exists now, I'd love to check it out.
It's too bad we won't all live to see the inevitable improvement in computational notation over the next few hundred years. Time to binge watch some Alan Kay talks and try to imagine it.
[1] https://en.wikipedia.org/wiki/Theory_of_forms [2] https://docs.microsoft.com/en-us/visualstudio/code-quality/r...
Detective work can go a long way, but in situations like this there's no substitute for ownership continuity and institutional memory.
https://en.wikipedia.org/wiki/Conway%27s_law
organizations which design systems ... are constrained to produce designs which are copies of the communication structures of these organizations.
- M. Conway
This happened to me on a project. I spent months documenting the Byzantine labyrinth of hundreds of interwoven services that had been patched for a decade by a hundred developers. Much of it had been done under pair programming, so required pair programming or a 120 IQ just to decipher it.
In the end I was squeezed out not because I was wrong, but because my method of solving longstanding issues from first principles didn't fit within the company politics of the client's organization.
The gist of it is that clients mostly see short term personal productivity and not the long term gains from removing technical debt or avoiding it altogether by way of the developer's experience. Senior engineers can eventually reach a point where there isn't much for them to contribute on a project because every last issue could have been avoided through proper planning and engineering in the first place.
In my case, my greatest strengths (like refactoring ability) were overlooked and my greatest weaknesses (like implementing features at high speed by repeating myself or ignoring project conventions because I don't know any better - something I can no longer do) were brought to the forefront.
On my first day of my current job, Mufasa (my boss) took me up on Pride Rock at sunrise, and we cast our eyes over the system diagram of the back-end supporting our product. And he told me, "We work on this box here." Our team's box gets data from that team's box, and we output data to be consumed by this other team's box...
"Any what about that shadowy land?" I asked, pointing to the arrows coming from outside the diagram.
"That is the Front-end. You must never go there."
So yeah, Conway's law through and through. This is a big company, though, and a long-lived product. At my last job, at a startup that was ~3 years old, things were intentionally very different. This month you and a few others worked on feature X. Not on this system or that system, you were implementing something for the customer. Maybe you're a backend engineer, but you still wrote the database migration, the queries, the endpoints, the front-end logic, markup, CSS, whatever. Some of it you sucked at, but a lot of that was handled by good team composition. If another engineer on that feature knew CSS better, they mostly styled the things and you reviewed their work. Maybe you styled the next thing.
I was frustrated in that job, because I didn't like writing CSS, and I wasn't good at it, and I was very good at some other things. Why couldn't I just do those things I was good at? It would have kept me a lot more productive, and saved (and made) the company a lot of money! Why did I have to do things I was bad at? Did they think engineers were interchangeable?
Well, now I know. In my current job, working on five different features in my box in the system diagram, I'm super productive when pointed in the right direction with enough to work on and some autonomy. That just doesn't happen as often. We need to communicate between teams a lot more. We need to align our quarterly deliverables. We duplicate functionality on both sides of an interface, (or in each of N components), with subtly different semantics, because nobody technical is responsible for the feature. Show-stopping bugs before launch are a fact of life, because integration tests between our components suck.
Generously (though for other reasons too), we're 1/3 as productive as my last gig was. Conway's law is strangling us.
There is often literally no way for us to know that we've broken it until a customer upgrades and discovers it no longer runs their hardware as it used to. Which does happen.
How does "the business" feel about this situation?
How does the team feel about it?
> changes can take literally 20 times as long as they should while we work out what the existing code does
I imagine you have to sell the extra time to (aka convince folks this is the right path) _somebody_. Maybe I've been working at the wrong places :) .
Nothing wrong with that, but it's far more important to write TESTS for the code as you understand it.
Once you have tests for a subsystem, you can rewrite, refactor and/or replace it with confidence!
> with deadlines to meet
the reason the company is there, employing you now, is that deadlines were met.
Those deadlines were frequently missed, by the way. Sometimes by months. I think not quite ever by years.
This particular set, though, was legacy code pretty much the week after it was written :(
From my own experience, you don’t actually know how the existing system works, the expected business rules were never documented, etc, and so even starting over isn’t really a less ambiguous path.
Sure isn't. We don't know what the software does right now, but there are customers all over the world using it and paying tens of thousands per year for support contracts; since we don't know quite what it does, we don't know quite what they're doing with it. We can pretty much guarantee that if we started over, we would miss a great many requirements (and a great many bugs that happen to work for various specific customers) and a lot of customers would be very unhappy. We don't know what it does, they don't know what it does, but it's working for them at the moment.
Oh Gods, even the unit tests. There are some. Sometimes one fails. We stare at it. It was expecting this value to be 3, now the value is 4. Why was it expected to be 3? Is it wrong that it's now 4, or have we changed the behaviour such that the correct answer is now 4 and we need to change the test? Undocumented unit tests are worthless. I'm not asking for a lot of documentation - just commentary in the code next to them would be fine - but if I can't see what's actually being tested and how that "correct" value was ascertained, when it fails, I don't know if the bug is in the code or the test. Useless unit test.
In fact, there was so much of a mismatch between what these users thought the tool was for and what it seemed to be for from an engineering perspective that it was extremely hard to get any more specific feedback other than “The new one is terrible; I can’t get it to do anything”.
I got an app full of comments like:
assert(x == 3); //x should be 3 hereIf you lose a senior, not only do you lose a highly skilled individual, you also lose institutional memory. Documentation can help some of this, but is often not enough or does not capture reasoning behind technical implementations.
Senior engineers are often living repositories for business logic and company knowledge.
I've definitely seen that. I agree that documentation can help with this, but you can't document everything (unless you're working for NASA. I have a friend who works for an aerospace company and they do a lot of documentation).
This also has an effect on your compensation. If you've been at a company for years and have deep knowledge of the domain and the software, you're more valuable than you might be on the open market. It's interesting to me that (typically) the company doesn't recognize this and compensate you appropriately.
If you document you will usually see the problem happening.
eg: This report generator runs every 15secs for every customer. Currently at 500 customers we probably want to shard at 750 customers.
I bet the seniors at most companies harp about documentation because of the exact reason that they dont want to be the institional memory. They rather think about fun things rather than store all the ugly rush bs code.
Or I bet they have their own personal docs because they want to keep that job security to themselves. The most challenging thing in software is dealing with the fact that there are humans involved.
Doesn't that create perverse incentives to not create documentation?
If instead, only the high over view is written down the person can be relied upon the fill in the nitty gritty details without having to spent years writing.
(It can also be of course that we just lack a sufficiently efficient fork of dumping our mental context for others to digest.)
1) having the right judgement 2) being a force multiplier
Good judgement is important. For example, a knowledge hole could exist, but is it the right thing to be working on now given other knowledge holes or other problems? Is it something another person on the team could pick up while the senior engineer focuses more on another, more ambiguous problem?
Being a force multiplier I think is critical. Yes your experience and expertise matters, but how well can you scale yourself? This can actually be very difficult and even demoralizing. When I first reached a senior level, one of the teams I was the lead on at the time had an issue where other engineers literally were not motivated. They don’t want to move on because it’s an easy environment but they don’t put in even 50%, and management was focused more on managing upwards than managing downwards. Heh some interesting lessons learned there.
Totally agree. At some point you spend less time doing the work and more time unblocking other people, doing spikes and research, and coordinating across the organization. For someone who like to be in "flow", all of these can be frustrating.
I don't want to be a "boss" or have more power or prestige, but I've gotten to the point where the only problems I am really interested in are management problems because everything else is a waste of time if those aren't solved.
>Note, he was a software engineer, not QA or a network engineer. But he didn’t let the role definition stop him.
QA is about determining when things are broken, which they weren’t (yet). Network engineering is about making sure all of the packets get to to where they’re supposed to go, and not what’s inside them.
This is about a private protocol between two pieces of software that are both exclusively developed by the same company, and probably the same team; its details fall quite squarely in the purview of software engineering, or at least they would at every company I’ve ever worked for.
The point is that he was was a software developer who was responsible for the back end systems. I don't think he was directly responsible for the client/server protocol and the client was, I believe, outside his purview. I was trying to think of a couple of different roles that might have had incentive to take care of this. (QA because of a desire to ensure the software was working correctly, network engineering because they might have helped design the protocol.) But he saw a knowledge hole and he acted to remedy it.
But I take your point that the line is a bit off. I'll edit.
Yes, quality is everyone's responsibility. But without an advocate with the right title and respect, it becomes secondary or even tertiary (behind velocity and features)
Eventually we grew to the point of needing some project managers and I learned so much about project management during that period. We had some that absolutely understood the ethos, advocated for the engineering team and communicated to the client why we do things the way we do.
Then we had the PMs who saw the client as their paymaster, wanted to please them by making big promises, saw engineering as their personal work force, and were happy throwing engineering under the bus when it didn't work out.
The worst work was done under the latter PMs and it always came back to bite us. Half baked features needing rewriting, third party modules hacked into the codebase, bugs and untested code needing weeks of client back and forth.
> Yes, quality is everyone's responsibility.
It isn't fair to expect someone to advocate for quality of something they can't see, and product can't see code quality. So, yes, someone in engineering needs to advocate for it.
Here's a post I recently read about how the lack of code quality, among other things, nearly ran a good business into the ground:
https://www.groovehq.com/blog/almost-walked-away
I have been in this situation myself (as have other commenters) and it's a balance between paying tech debt and moving product forward. Learning when to sit down and pay it, and how to communicate it, is an important part of being a software developer. Can't say I have mastered it.
I think this is why job descriptions for senior engineers are often hard to write. You often want a general purpose problem solver, but all you have is examples of types of problems that have been solved in the past, and so you put that in the job description (the general you, not you specifically, of course).
Reminds me a bit of "Profession" by Asimov: https://www.abelard.org/asimov.php
Yes, I do need to know "why" this is or "why" that is. "Just because" has never sat well with me, ever.
This could be my own "problem" but really: when I ask "why", give a real answer -- I'll even take a Cliff Notes answer, but just give a real answer. "Don't worry about it" doesn't do me any favors.
The reality of the situation is they are just making their own lives more difficult by not enabling more developers to help out but that's how people are. Do you do 1 on 1's with your manager? That is the best place IMO to express what you want to do and if you're feeling left our from knowledge or conversations. A good manager will help you out and make the senior devs be more inclusive it makes sense. If they are not helping then go to the director. If the director doesn't help then you should reassess your future in the company. Note that I'm not saying quit, because sometimes, especially when just starting out, you have to work a less than ideal job to build up some experience.
As long as you're still learning and growing you can benefit from it, but the second you feel like you're stagnating and you're sure it's not you it's them, then leave. Next time you will have something to discuss at the interview too about what kind of place you want to work at.