Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 17, 2021 04:33 pm GMT

Adventures in Scale: Google is Techs Lewis and Clark

To call Google a titan of the tech industry would be an understatement. Their name has become synonymous with the internet itself. The very act of retrieving information from the internet the core functionality of the internet and its most basic purpose is known simply as Googling something. On their road to becoming the webs biggest search engine and a moniker for the internet itself, Google also pioneered much of what it takes to grow a company at scale.

On the Dev Interrupted Podcast Google Senior Engineers Hyrum Wright and Titus Winters, shared their lessons learned from programming at Google with LinearB Co-Founder and COO, Dan Lines. Both engineers have a deep understanding of the principles behind software development: Hyrum is semi-famous as the Hyrum of Hyrums Law; while Titus is responsible for 250 million lines of code that over 12,000 developers work on.

But what lessons can we take from their interview and their book Software Engineering at Google: Lessons Learned from Programming Over Time? How can we apply those lessons to our own projects? Ive pulled out the core takeaways from their interview and condensed them so that any developer or company, be they responsible for 2,000 lines of code or 2,000,000, can learn something from Googles roadmap.

Why listen to Google

In spite of their enormous success and scale, Google doesnt pretend to have all the answers; this lack of presumption is exactly the thinking that has made them the titan they are. Previous success is no guarantee of future success and no one understands this better than Google.

One thing that Google is very good at is not accepting how everyone else does it as the one true way. Titus Winters, on the Dev Interrupted podcast at 20:35

Its easy to assume that events and conclusions are foregone, or that one event naturally follows another. Yet this is rarely the case. Most of the time people are working towards a specific outcome, and its not until later that the outcome is apparent contextually. This is true in life and software development.

Google has spent the past couple decades approaching everything they do as trial and error, learning what does and does not work, and trying to institutionalize the things that do work. This is not a straight path.

This mindset is obvious in Hyrum and Titus interview. Titus uses the analogy of Lewis and Clark to explain how the software development process at Google has unfolded.

They say Lewis and Clark explored the Louisiana Purchase, by which we mean, they took one path out and one path back, which is not exactly mapping, but in a similar way, were trying to give an exploration/trip-report/map. Titus Winters, on the Dev Interrupted podcast at 6:17

Hes admitting that Google doesnt have all of the answers; that Googles path isnt the *only *path to success; that other paths may be superior to Googles; and that their path may not work for every business. But, with decades of experience, Google has learned a thing or two along the way, and maybe, just maybe, we can all learn something from the path they have trailblazed.

After all, there arent many companies in the world that have hundreds of millions of lines of code.

The 3 Pillars of Software Engineering at Google

Anyone can change a line of code or change 10 lines of code. But how about changing 10,000 lines of code or 100,000 lines of code in a reasonable time? Hyrum Wright, on the Dev Interrupted Podcast at 17:15

With so much code to manage, Google has made maintaining their code a strategic goal. Code must be fresh and able to sustain changes to the code base for business or technical reasons. To best allow for this, they have identified 3 concepts that they believe are core to software engineering.

1. Time

All of the hardest stuff that software engineers are going to have to deal with like skew version, backwards compatibility, issues with data storage, dependency management, upgrades and many more, are all problems created by time. Once dev teams realize this, it will change their perspective on how best to write code.

For instance, if you are going to get rid of your code within one or two years, then you probably dont need to worry too much about making changes or upgrades to it in the future. But if you are going to write code that will remain in use after five or ten years, then you may want to approach it differently.

If dev teams want their code base to last, they need to think about constructing code so that it can sustain changes within an organizations lifespan. This fundamental realization allows time to peacefully coexist with the second pillar.

2. Scale

How your system scales is a relationship with time. Scaling isnt a new problem and Google has been at the forefront of pushing scale their entire existence. For instance, email existed before Gmail and search engines existed before Google, but Googles brilliance was their ability to scale these technologies better than their competitors. Its the root of their success.

To beat their competitors they adopted a mindset of scaling as a process a continual evolution.

As a company grows, all of its operations expand and that continued expansion requires more resources, which begets even more resources still. This means growth cannot occur superlinearly because if it does, eventually a company will consume all of its resources maintaining the status quo.

The key takeaway is to make sure your codebase and software both scale sublinearly , that way if your codebase doubles or triples you wont need six times as many engineers just to maintain your systems. (Sublinear scaling refers to team growth that occurs more slowly than the number of supported services of a company. Superlinear growth is the opposite with team growth outpacing the number of supported services.

3. Trade-offs and Costs

After taking into consideration the best practices around time and scale, what is left is good decision making. Just as Hyrum and Titus note in their book, in software engineering, as in life, good choices lead to good outcomes.

However, no organization has perfect data on which to base every decision, and therefore must strive to make the best decisions they can with the most data possible. People need insights into what an organization finds impactful.

For instance, if an engineer spends a week on a project, it should probably be a project the organization considers a priority. Because if it is not, then no matter how perfect the code, it probably wasnt the best use of the engineers time. Brain power should be devoted to the most difficult problems, not where a semicolon should be placed. The cost of incorrectly evaluating trade-offs is failing the 1st two pillars.

Coming Home

While Hyrum and Titus may not be Lewis and Clark reborn, they have a valuable story to tell about trial and error in the Information Age. How a company scales is likely to define how it differentiates itself from its competitors and whether or not it will be successful. A company that can scale sublinearly will thrive, all others will stagnate as victims of their own success.

Minding the principles of these modern-day explorations into the wilderness of code will help any organization keep an eye on the most valuable resource: time. But remember just as Lewis and Clark found one path forward, they didnt find the *only *path forward.

We can all learn something from Google, but never forget the path forward is your own.

For more lessons in scaling and growth, consider registering for INTERACT, Dev Interrupteds biggest event yet. The interactive, community-driven, digital conference takes place September 30th. Designed by engineering leaders, for engineering leaders INTERACT will feature 10 speakers, 100s of engineers and engineering leaders, and is totally free.

Register Now

If you havent already joined the best developer discord out there, WYD?

Look, I know we talk about it a lot but we love our developer discord community. With over 1500 members, the Dev Interrupted Discord Community is the best place for Engineering Leaders to engage in daily conversation. No salespeople allowed. Join the community >>

Originally published at https://devinterrupted.com on August 13, 2021.


Original Link: https://dev.to/linearb/adventures-in-scale-google-is-tech-s-lewis-and-clark-3k3k

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To