Better HN
topnewbestaskshowjobs
Log inSign up

gregdoesit

7,877 karma · joined Dec 23, 2015 (10y ago) · 481 submissions

I write The Pragmatic Engineer newsletter. Author of The Software Engineer’s Guidebook. Previously Uber, Skyscanner, Skype/Microsoft. More at pragmaticengineer.com
Submissions

301.

The Pyramid of Unit Testing Benefits(blog.pragmaticengineer.com ↗)

3 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

I had dinner with members of the Apple Pay team a year or two back. I asked them, “So, who are your competitors? Google Pay? PayPal?”

They laughed.

“No, we don’t really track them. We have one main competitor. Credit cards. We care about Apple Pay being better, easier and more convenient to use than any of your credit cards.”

And then, finishing dinner, the guy paid with his Apple Watch, using Apple Pay. The waiter was stunned - he’d never seen anything like that before.

303.

Things I Believe About Software Engineering(blog.wesleyac.com ↗)

2 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

We're looking at two very different sides of the coin and likely working in different environments.

Thoughtfully delegating project leadership helps engineers grow their leadership skills. They learn how to make things happen and it sets them on the path of driving impact, even without authority.

It also helps the engineering manager - myself! - with potential succession planning. In fast-growth tech companies, it's not uncommon for third-half the engineering managers to be promoted from within.

I'm at four engineers who transitioned into engineering management in the company, as a lateral move, after gaining much-needed lead experience with projects like these. I'm also certain that these skills will help some of the other engineers take on lead roles in the current, or future companies.

>The cycle ends with the engineer exiting

Odd enough, all engineers who I've supported on taking lead roles in 3.5 years (about 20 of them) are all still with the company, and have moved upwards in responsibility/scope/level/pay in no small part thanks to hands-on leadership they keep demonstrating.

>the manager will link to a litany of excuses, they'll offer vague assurances, they'll encourage the engineer to exercise more leadership!

In practice - as well as in the guidance document[1], I specifically ask engineers to delegate upwards to their manager when they see a need: "Delegate where it makes sense. You can both delegate upwards (e.g. to your manager or PM) as well as to team members.". I often step in to help with things that are outside the scope of an engineer or where they struggle. Why on earth would I not help the project succeed?

All in all, it feels like you've not had good experience with managers or leading projects.

[1] https://docs.google.com/document/d/1kngKHUCS0DHNvZAO8PfkcsTD...

comment 6y ago · link · parent

At Uber, we have Product Managers, who define priorities, strategy, and the "what" to build.

Engineering managers and engineers decide on the "how" and manage their projects. Some EMs run the projects themselves, some PMs do the same. I've found that delegating this responsiblity - and setting up clear expectations - really helps engineers on my team grow, stay motivated and become leaders. Engineers who lead projects also often get promoted faster than those who don't and just become much better rounded than those who have the mentality of "That's not my job. Why should I manage any project?"

We have Technical Project Managers - TPMs - who manage massive projects. Think 5-10 teams, 50+ engineers, 3+ locations/timezones. The type of projects that take more than an hour per day to keep in sync with. The ratio of TPMs is around 1:50 for engineers.

This is similar to all highly autonomous tech companies work - Google, Facebook, PAULS (Pinterest, Airbnb, Uber, Lyft, Slack) as far as I know. For small projects that engineers can manage just as good, why add an extra layer?

Also, often project management decisions and arcitecture decisions are often connected (clean architecture, clean boundaries means less cross-team project management). Engineers managing the projects means a push for cleaner architecture. Having full-time project managers might mean working across messy architectures, project managers picking up the additional work that unclear boundaries mean.

So for every 100 engineers at fast-moving companies like Facebook, Google, Uber, you'd have about 10 EMs, 10PMs and 2 TPMs. That's it!

comment 6y ago · link · parent

I'm the OP. Good question. I had this come up with many people and I wrote a longer response[1]. The short of it is, for small (2-5 person projects) this is a valuable skill to have. And a project manager would probably add _more_ work on top of it.

If you think of a small team, let's say a tech startup with 5 people. How many of them are project managers versus developers? And would you rather a project manager with little context on your work "nag" you multiple times a day, or would you rather have control how you and the team do minimum effort project management? These are exactly the type of teams a typical project is run by. Also, most of the engineers are product-minded engineers[2].

In highly autonomous tech companies I see a small ratio of project managers - likely 1:50-1:30 with engineers. In companies where devs have little autonomy, this ratio goes up. I know a large, well-known consumer bank, where there are almost as many project managers, scrum masters, agile coaches and the managers of these people, as there are developers. Developers are not allowed to make any decisions - that's why all these other people are there! In all fairness, this company is spending loads of money with a consultancy to figure out how they can speed up software delivery, which is... slow. Who thought?

[1] https://blog.pragmaticengineer.com/a-team-where-everyone-is-...

[2] https://blog.pragmaticengineer.com/the-product-minded-engine...

307.

Leading Projects – As a Software Engineer(blog.pragmaticengineer.com ↗)

83 points · by gregdoesit · 6y ago · 17 comments

comment 6y ago · link · parent

What a silly report. Looking at the top two key takeaways:

>Global demand for blockchain engineers is up 517%

Was, you meant to say. It's dropping steeply. Also, 517% compared too what? Previously, barely anyone hiring, and now 5 in 10,000 positions mentioning blockchain?

>Search engineers in San Francisco are paid the most, earning $157K on average

WHAT? Search engineers? What is “search engineers”? And $157K in SF being the most? This is false. You probably meant to say "senior engineers in San Francisco are earning the most". I only know engineers in San Francisco earning (in base, not counting stock or bonus) above $157K. My sample size is small, but 20/20.

Compare this with the Levels.FYI report: Highest Paying Tech Companies of 2019[1]. You see how the top tech companies are paying over $200K for entry level engineers in SF, well above $400K for senior levels.

Who writes this report? Or does this reflect how e.g. some of the top roles - FAANG and other tech companies - steer clear from places like Hired.com?

[1] https://news.ycombinator.com/item?id=21804509

309.

First 90 Days as CTO or VP Engineering(lethain.com ↗)

4 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

What a fun read! The one that ended up being the most off in the thread:

> I predict (and hope for) a major turn back to simplicity in technologies. Multimillion-line software will go extinct like dinosaurs. Existing programming languages and platforms will gradually be replaced with ones so simple and elegant that one software component will be written and maintained by one to three developers and art designers and not a whole software company packed with managers and other unnecessary staff. Oh, and managers along with poeple who "understand" "software business" but not software will hopefully go extinct too.

If I can predict anything for 2030 based on this, it will be software being even more complex, with even more frameworks and abstractions.

comment 6y ago · link · parent

The post is solid on criticising sprint deadlines, but doesn’t give many suggestions on what works better. Except for this:

> Another idea is to experiment with more elaborate probabilistic ways of setting shipping estimates rather than gut based estimates.

In my experience, teams setting estimates and holding _themselves_ accountable is a great way to go with multiple benefits. This is why I’m a big fan on estimating software projects with a few ground rules [1].

Sprints and deadlines could be a tool to get here - as with a bunch of things, context, people and culture matter just as much as processes do.

Iterating and learning from iterations is how good software is produced, with a team that is motivated and continuously growing.

[1] https://blog.pragmaticengineer.com/yes-you-should-estimate/

comment 6y ago · link · parent

One of my buddies recently told me he’s joining Bosh to work in their self-driving unit. I was asking “what self driving unit?”. Apparently, he’s on the team building Lidars.

Bosch is focusing both on mass producing better and/or cheaper hardware components that self-driving cars need. They also have a smaller team to build self-driving cars, dogfooding/prototyping newer components.

Them entering this industry shows that they - unsurprisingly - anticipate large demand.

comment 6y ago · link · parent

Tech blogs I follow (and one I write): - Irrational Exuberance![1] by Will Larson (ex Digg, Uber, Stripe) - focuses on engineering management

- Hillel Wayne’s blog [2] - software engineering and formal methods

- The Pragmatic Engineer [3] - software engineering & tech lead topics, written by myself

[1] https://lethain.com/

[2] https://www.hillelwayne.com/post/

[3] https://blog.pragmaticengineer.com/

314.

The Decade in Review as a Software Engineer(blog.pragmaticengineer.com ↗)

2 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

Yes - thank you! Corrected.

comment 6y ago · link · parent

From this thread, I feel a lot of people misunderstand what a scaleable system means for a scale-up startup or BigTechCo. It doesn’t mean cost-efficiency. It means the ability to solve scalability issues at 10x, 100x, 1000x load by throwing money at it (aka buying more instances/machines).

Yes, John Carmack is right that a bunch of scaleable systems that see reasonable load, with well-understood traffic requirements could be rewritten more efficient ways. But how long would it take? How much would the extra work cost? And what would happen if traffic goes up, to another 10x, 100x? Can you throw still throw money at that problem, with this new and efficient system already in-place?

One of my memorable stories comes from an engineer I worked with when we rewrote our payments system[1]. He told me how at a previous payments company, they had a system that was written in this kind of efficient way, and needed to run on one machine. As the scale went up, the company kept buying bigger hardware, at one point buying the largest commercially available mainframe (we’re talking the cost being in the multi-millions for the hardware). But the growth was faster and they couldn’t keep up. Downtime after downtime followed at peak times, making hundreds of thousands of losses per downtime.

They split into two teams. Team #1 kept making performance tweaks on the existing hardware to try to get performance wins, and increase reliability during peak load. Team #2 rewrote their system in a vertically scaleable way. Team #1 struggled and the outages kept getting worse. Team #2 delivered a new system quickly and the company transitioned their system over.

What they gained was not cost savings: it was the ability to (finally!) throw money at their growth problems. Now, when traffic went up, they could commission new machines and scale with traffic. And they could eventually throw away their mainframe.

Years later, they started to optimise the performance of the system, making millions of $ in savings. The new system - like the old one - cost millions to run. But that was besides the point. Finally, they stopped bleeding tens of millions in lost revenue per year due to their inability to handle sudden, high load.

It’s all about trade-offs. Is cost your #1 priority and are you okay spending a lot of development time on optimising your system? Go with C++, Erlang or some other, similarly efficient language. Is product-market fit more important, with the ability to have high uptime, that you can buy? Use the classic, horizontally scaleable distributed systems stack, and worry about optimising later, when you have stable traffic and optimisation is more profitable over product development.

[1] https://blog.pragmaticengineer.com/distributed-architecture-...

317.

Distributed Systems Learnings in 2019(blog.pragmaticengineer.com ↗)

2 points · by gregdoesit · 6y ago · discuss

318.

Readable Code(blog.pragmaticengineer.com ↗)

2 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

Sometime in 2010, I met the founder of FanDuel, who did a soft pitch on the company and the upside. I briefly contemplated applying.

A few years later, as the company rose to unicorn status, I was wondering if I should have done so. After the massive fall and the takeover that left the founder CEO with nothing but a lawsuit[1], I am now again padding myself on the back for not pursuing this.

The FanDuel / Draftkings story is now a cautionary tale of taking too much VC money with too little organic/non-purchased growth in my books.

[1] https://www.businessinsider.com/fanduel-founders-likely-to-l...

320.

Tech Lead Expectations for Engineering Projects(docs.google.com ↗)

2 points · by gregdoesit · 6y ago · discuss

comment 6y ago · link · parent

And I’m also not going to argue with people who have different experiences - I can speak for my own experience, and generalise it, finding others who might think similarly, which is what I’ve done here. This is to say YMMV. But to your questions.

1 - Doing half the things I listed. I hope this is not a loaded question, but I’ve seen people do all of them. It usually starts with people who are both good communicators, are curious about the “why” on things, being interested in how the business works. Then they bring product ideas. The nice you bring product ideas to the table, as an engineer, making pragmatic trade-offs is pretty straightforward (if we build a slightly modified feature, we can get the same business impact, but a lot less eng complexity). The rest is about looking out ways to get early feedback (prototyping, hallway testing etc) and challenging weird edge cases. The first few of these I’m seeing a lot around me.

2 - I don’t fully get the question about product people. Also, I spent a good deal of my career working at Skype/Microsoft and Uber, so I don’t think I can give a definite answer. If it helps, at Skyscanner, a smaller startup, I had even more product say as an engineer, than I did at Uber or Microsoft. I suspect everything I wrote assumes an environment where engineers are empowered and close to the product, and data about the product usage/revenue generated.

3 - I’d say have a lot of curiosity on how the product works and how users use it, and generate value for the company. Then you need good communication skills to build trust with the product stakeholders - to understand more about the business, how they think, and to be able to showcase your ideas, prototypes and accommodate feedback for them.

comment 6y ago · link · parent

OP here. I’ve written this based on what qualities I’ve observed several of my engineering colleagues exhibit, who are pretty good at building products and working with PMs. And who consistently get stellar feedback from business stakeholders, certain teams going straight to them, to discuss new ideas.

I beg to differ the article is super generic, as it closes with very engineering specific recommendations to build a “product-muscle” for developer [1]. This is the kind of advice and coaching I give to devs around me who would like to make more product/business impact.

[1] https://blog.pragmaticengineer.com/the-product-minded-engine...

comment 6y ago · link · parent

I moved to Amsterdam to have a better work-life balance, with a family.

I lived in London before, having a 40-minute tube commute that was okay when I had no kids. London became harder to live in, once I had kids - central London is especially an unfriendly place for families IMO.

comment 7y ago · link · parent

I am someone who did not enjoy remote work, because I felt lonely. I’m lucky enough that now my commute is a 25-minute bike ride in Amsterdam, and I thoroughly like being between people all day, having in-person interactions. It’s also nice to leave the office, knowing that most of my workday is done.

It might be an old school way of thinking, but as long as I can have a short enough commute, an office where flexible work is the norm (eg WFH is fine on some days, there are no fixed hours etc); I would choose this over full remote, anytime. While my team is local and large, I do end up working across time zones, with other engineering teams.

I get it that this is highly dependent on personality and situation: there are those that thrive on remote. It’s just not me. How do others feel about this - and what do you like/dislike about remote work?

comment 7y ago · link · parent

A lot of the below comments touched on things we do (verifying that changesets are independent, breaking tests into smaller pieces, prioritising changes that are likely to succeed). They add up and the approach does become more complex. We wrote an ACM white paper with more of the details[1]. It’s the many edge cases and several optimisation problems that turn this into an interesting theoretical and practical problem.

[1] http://delivery.acm.org/10.1145/3310000/3303970/a29-ananthan...

comment 7y ago · link · parent

> If you insist on no errors on master ever you will kill throughput.

Unless you solve this engineering problem with tooling. At Uber, the full-blown CI mobile test suite takes over 30 minutes to run on a development machine (linting, unit test, UI tests - most of this time being the long-running UI tests, specific to native mobile). So we only do incremental runs locally, and have a submit queue, which parallelises this work and merges only changes that don’t break, into master. And we have one repository that hundreds of engineers work on.

It’s not an easy problem and the solution is also rather complex, but it keeps master at green - with the trade-off of having needed to build and maintain this system. See it discussed on HN a while ago: https://news.ycombinator.com/item?id=19692820

327.

Deep Linking at Scale on iOS(albertodebortoli.com ↗)

1 points · by gregdoesit · 7y ago · discuss

comment 7y ago · link · parent

This book has had the single biggest influence on how I motivate and lead engineering teams[1]. It's an easy read, and the main thought on delegating decisions down hold very well for software engineering, and on how to create a culture of high-autonomy, high-performance.

[1] https://blog.pragmaticengineer.com/a-team-where-everyone-is-...

329.

An Engineering Team Where Everyone Is a Leader(blog.pragmaticengineer.com ↗)

2 points · by gregdoesit · 7y ago · discuss

330.

A Philosophy of Software Design: My Take (and a Book Review)(blog.pragmaticengineer.com ↗)

2 points · by gregdoesit · 7y ago · discuss

1
101112
17