Transcript

Episode 1 · Master Technical Writing: 7-Day Workflow to Accelerate Your Data Science Career

62 min

Download (.txt)

0:00 DataTalks.Club intro

Alexey

0:00

Well hello everyone, thanks for coming today to our event. This event is brought to you by DataTalks.Club, which is a community of people who like to talk about data. We have regular events like this one and two types of events.

0:19

Usually on Tuesday we have more technical events with presentations like technical talks. This week we had a talk about data versioning. Next week we will talk about model monitoring. The week after we will probably talk about how you can deploy a chatbot, which is a complex system.

0:44

In February, the first Tuesday we will talk about Feast, a feature store from TFX. We also have events like today, which are less technical, with no slides, just people talking. Today we will talk about writing. Next Friday we will talk about the role of a developer advocate for data science. We will also talk about open source, which will be on Thursday instead of Friday. Then we will talk about TFX, what it is, and what MLOps engineers do.

1:31

At any point, if you have any questions, you can ask through Slido. That will probably be the most convenient way. You can go there, put your question, or upvote a similar question. I will share this link in the chat.

1:59

Okay, let me pull my notes and we will start.

2:20 Eugene’s background

Alexey

2:20

Today we will talk about technical writing, logging, documentation, and more. We have a special guest today, Eugene Yan. Eugene works at the intersection of machine learning and product. He likes building pragmatic machine learning systems and writes and speaks about effective data science, machine learning, production, and career growth.

2:43

If you follow Eugene, you know he writes a lot every week on his personal blog. Sometimes he posts more than once a week. It was difficult to think of anyone more suited for this episode. Thank you, Eugene, welcome.

Eugene

3:03

Thank you, Alexey. It's a pleasure to be here.

Alexey

3:10

Before we go into the main topic of writing, let's start with your background. Could you tell us about your journey and career, how you started?

Eugene

3:25

It's a bit of an unusual journey. I graduated with a psychology degree about 10 years ago. I spent a few years working on investment policy, but I didn’t really like that. I was writing a lot of text, doing contracts and agreements, and wanted to work more with data. I took about 20 to 30 MOOCs and interviewed at a few places and was lucky to get accepted at IBM.

3:52

While at IBM, I did a competition on product classification. My team managed to get into the top three percent. We shared our attempt at a meetup. An e-commerce startup facing a similar problem invited me for lunch the next day to discuss how I would solve it for them. They offered me a job, and I joined as their third data scientist. That startup was Lazada.

4:38

A few years later Alibaba acquired us. I moved on to a health tech startup, which didn’t work out very well. Now I am an applied scientist at Amazon in Seattle, working on recommendation and machine learning systems.

Alexey

4:50

If anyone says Kaggle is a waste of time, you’re living proof. There is an article about your career journey, one of your most viewed. I will post the link later. It is a detailed and awesome read.

5:24 When and Why Eugene started writing

Alexey

5:24

Since we are talking about writing, I’m curious, when did you start writing externally, like blogging? Not internal documentation, but external writing.

Eugene

5:46

My first post was in September 2015, a report for DataKind, an NGO. They asked for volunteers to write, so I volunteered. I admit my reason wasn’t entirely altruistic. I wanted to practice writing.

6:54 What skills need to be effective in DS

Eugene

6:54

When I started, I interviewed data scientists and leads I admired, a few steps ahead of me. I asked what skills make someone effective. The answers surprised me: anyone could learn technical skills, but what made someone stand out was communication, the ability to write and speak with non-technical people.

7:47

I decided to try it for a year. Any time someone needed something written, I would do it. In that same year, I spoke at my first meetup about a Kaggle competition. Many good things happened, and it became a habit. So I started writing about five years ago because people told me it’s important to be effective.

8:35 What keeps Eugene motivated

Alexey

8:35

That is a long answer, but I get it. Why did you keep writing?

Eugene

8:40

At the end of 2020, I reflected on my posts and realized the main reason I write is to share. I share projects, how I clean Amazon data, how I deploy APIs, class summaries for Georgia Tech online masters, and conference notes. Sharing motivates me to write more. I also write to consolidate knowledge. Sometimes I think I know a topic, but when I write, I realize I need to learn more. Finally, writing connects me to people online. They give feedback and ideas, inspiring me. I call this being a lighthouse.

12:03

I write to share, to learn, and to be a lighthouse.

Alexey

12:28

I remember the first time we spoke on Twitter. My first question was whether you reached out to me or I reached out to you.

12:40 What Eugene uses for blogging

Eugene

12:40

You reached out and asked about my blogging setup. I use a very simple Jekyll framework hosted on GitHub pages.

Alexey

13:32

That is amazing. Learning is a big part of it. Technical posts take time because frameworks evolve, and things break.

13:38

Can you repeat the three reasons why you write?

Eugene

13:44

I write to learn, to share, and to be a lighthouse, signaling to like-minded people that I am interested in this topic.

14:24 The writing process (iterating outlines)

Alexey

14:24

How do you write? Do you have a process or approach for articles?

Eugene

14:59

When I first started, I thought sitting at a computer and typing would produce something beautiful. I also thought it must be 100 percent original and useful. That high bar made it very difficult to write.

15:29

And so how I write, I realize it’s not about having that mindset first. My mindset now is I write to share, to learn, to be a lighthouse. I realize that writing doesn’t start with writing; you start with reading things you’re interested in, learning things you’re interested in, and then you write notes. Viewed this way, my writing doesn’t have to be original, perfect, or 100% useful, which makes it a lot easier to write.

Alexey

16:05

Do you mean how you select topics or how you craft a post?

Eugene

16:11

Both.

Alexey

16:16

Let’s say you want to write about something. Then an idea occurs to you, maybe from a walk or a tweet about real-time machine learning in China. What happens next?

Eugene

16:39

When I see topics, I put a title in my notes. Right now, I have about 50 possible topics. I go through them week by week to pick one.

16:57 The timeline of 7 days

Alexey

16:57

How do you write?

Eugene

17:02

My process is straightforward. I set a timeline of seven days to publish every week. On day one, I pick a topic and write an outline of how I want to structure it. For example, for real-time machine learning, I want to write about why you should not do real-time recommendations, why it could be useful, how real-time recommendations look, and how to do an MVP yourself. That’s the big picture. Then I start bullet points, which takes about two hours.

17:41

On day two, I rewrite the outline from memory. All the bad ideas go out, new ideas go in. On day three, I check if the outline is okay. If not, I iterate again. I repeat this until satisfied. By day six, when I have no more time to iterate, I write the prose. Writing the prose is just taking the outline and writing it in proper human language instead of bullet points, and finding images. This sometimes takes six to twelve hours.

18:43

By day seven, after a night of sleep, I read through the post again, organize ideas, paragraphs, sentences, images. By the end of day seven, I must publish. I may tweak it on Monday or Tuesday if I get feedback, but usually, I stop.

19:01

Iteration is key. I iterate on the outline because iterating on the prose takes too long for me. I care about language, sentence structure, and the right words. By focusing on ideas in the outline, I improve it and leave little time to iterate the prose.

19:21 The outline structure

Alexey

19:21

So most of the time goes to the outline?

Eugene

19:40

Yes, at least 50–70% of the time.

Alexey

19:52

How does the outline look? I imagine just a few bullet points.

Eugene

20:18

The outline has key section headers. For each section, each paragraph has a key topic sentence and supporting evidence. At later stages, the outline almost becomes the content itself, just not in paragraph form. Writing in bullet points makes it easier because I don’t focus on connecting words.

Alexey

21:00

So by day six, you just translate bullet points into natural language?

Eugene

21:12

Exactly.

Alexey

21:33

I usually write prose first, then edit heavily. It’s very slow and ineffective.

Eugene

22:08

Writing bullet points is much easier. You don’t care, because you will rewrite it anyway.

Alexey

22:26

Why do you reconstruct an outline from memory?

Eugene

22:37

It’s like telling a friend about a book. You recall the best parts. Reconstructing the outline from memory filters only the important parts. Afterward, I compare with the original outline to see if I missed key evidence.

Alexey

23:49

Do you do this every day?

Eugene

23:56

It depends. If the previous day I finished the outline but am unsatisfied, I rewrite. If satisfied, I start writing the prose earlier.

Alexey

24:18

Having a break is important.

Eugene

24:24

Yes. I am a slow writer and thinker, so I need to spend time iterating. Iterating the outline helps a lot.

Alexey

25:05

If we estimate your weekly writing time, it’s about 25 hours a week including research, writing, and editing.

25:45 Where to take ideas from

Alexey

25:45

You mentioned having a backlog of topics, around 50 ideas. Before you start writing, how do you put things on that backlog, and where do you take ideas from?

Eugene

25:55

I often write in response to questions people ask. For example, many people ask how my team uses Scrum. Others ask how I transitioned from a psychology degree to data science. When enough people ask, I write about how it scales indefinitely.

26:31

Sometimes I also write about topics I want to disagree with. For example, a Reddit post listed ten roles in data science: data scientists, decision scientists, product data scientists, AI engineers, ML engineers, AI product managers. I disagree. I think data scientists should be more end-to-end. Alexa agrees, but I think a full-stack approach isn’t ideal.

26:58

That opinion was initially unpopular, but Netflix and Stitch Fix adopt the same approach, and it turned out to be surprisingly popular. I also see people focusing on the wrong things. Many ask if coding or writing is more important, and they say writing documentation takes too much time. I disagree writing becomes more important as your career progresses.

27:56 How to prioritize the topics from the backlog

Eugene

27:56

Sometimes people ask, “What’s the point of reading papers?” I disagree—you need to read papers to keep up in your field. I write to answer questions, and occasionally, once I build trust with the community, I share differing opinions.

Alexey

28:16

How do you prioritize these topics for the week?

Eugene

28:23

For example, next week I want to write about why people shouldn’t do online courses in 2021. Many ask me, “Is this course good?” I want to share better ways to learn. My only real prioritization is one or two ML topics a month; the rest are messages I want to get across. I imagine writing for my teammates and mentees to help them become better data scientists.

29:37 The target audience

Alexey

29:37

So you have an image of your target audience in mind. How do you use that when preparing an outline?

Eugene

29:54

I write for three groups. First, myself writing for yourself is always beneficial. Second, my wife, to help her understand what I do. Third, my current and future teammates, and like-minded friends in the community. I assume these readers have some technical or ML background and are motivated to learn.

30:53

Some topics don’t get much traction. For example, writing versus coding is important, but it wasn’t popular at first maybe the community isn’t ready. So yes, I have a specific audience: current teammates, future teammates, and industry peers.

31:13 Do further iterations make a text worse?

Alexey

31:13

Okay, can I ask a question in the meantime, please? You have a very, very detailed workflow for reviewing drafts and concepts. Does it ever happen that editing more makes your text worse, or is it always linear? Do you see any non-linearities in your writing process?

Eugene

32:06

The tipping point is usually Sunday night. I must release it by Sunday night. Further iterations can make it worse. That’s why when I iterate on outlines, I compare them side by side to see which one communicates my story and message better. When editing paragraphs, I type a new paragraph above the old paragraph and compare the two. My metric for success is if it’s shorter and conveys all key ideas. If it gets longer and messy, it’s worse, so I delete it. You should always do some kind of regression analysis to check if it’s better.

33:11 Seeing the result as a product

Alexey

33:11

Seeing the result as a product?

Eugene

33:18

Yes. I imagine everything I write as a small product with design, product life, and versioning. When I write about something, I want people to understand it. If they don’t, I fail. If the substance isn’t useful, the back end is bad. It’s very difficult, and I don’t think I will ever get perfect at it. The way to improve is to write every week. Every week there are 50 iterations or 50 different “products,” and maybe in five to ten years I would be good enough.

Alexey

34:09

Five to ten years if your articles are already that good, what will happen then?

Eugene

34:15

In five to ten years, I could write the same thing in five hours instead of 20.

34:22 Trying to control the length

Alexey

34:22

Do you try to control the length? I personally have the problem that I have ideas, but elaborating takes too much space. People won’t read very long articles.

Eugene

34:51

Ideal length is about 1,500 words, about ten minutes read. But honestly, I don’t strictly think about that. I just write enough to communicate the substance and the message. Sometimes it’s 600 words, sometimes 4,000–5,000 words, like my real-time recommendations article. Cutting any paragraph would lose the big picture, so I leave it. I assume my audience is highly interested and can read it anytime. I don’t have a maximum length but try to be concise for the reader’s time. The weekly deadline helps me avoid putting too much information.

36:19 How to come up with a title

Alexey

36:19

How do you come up with a title? Do you do it before writing or after finishing the draft?

Eugene

36:45

I name my posts like I name functions: clearly so no one would misunderstand. I try to create a sentence that explains what the post is about, like documentation or code. I know there are SEO considerations and clickbait strategies, but by Sunday night, I don’t have energy to overthink the title.

Alexey

37:25

When we were planning this event, I suggested “Blogging and Technical Writing,” but you suggested “The Importance of Writing in a Tech Career,” which is more compelling and attracted more people.

Eugene

38:15

I wanted to make the audience care. Tech people focus on their careers. I wanted to show why writing is important in a tech career and convince them to practice. That’s the essence of the title.

39:01 How to start blogging

Alexey

39:01

If everyone on this call decided to start writing, what should they do next?

Eugene

39:18

Just start writing. First, don’t worry about online visibility. Your first article won’t be read, so write for yourself to practice. Second, write about what’s on your mind now. It could be anything gardening, recipes, hobbies, not necessarily career-related.

40:28

Many people worry about finding a topic. Patrick McKenzie (patio11) wrote about whatever was on his mind for years. After hundreds of posts, he discovered which topics resonated with his audience. You cannot find your niche before writing; only after writing a lot can you reflect and see your niche.

41:23 Finding a niche

Eugene

41:23

Repetition can be boring. I can’t write about machine learning every week, so I mix in other interests like career advice and data science processes. I haven’t found a single focus, and that’s fine. I write for myself, and my topic is whatever I’m thinking about.

Alexey

42:35

What tool would you recommend? Medium, WordPress, Jekyll?

Eugene

42:49

Use whatever is easiest. Don’t spend too much time on domains or frameworks. Writing is already hard. I started on WordPress because it was easy. Later, I switched to hosting my own site when I wanted customization. The tool is the least important concern. Reduce barriers and just write. Medium, WordPress, Substack all are fine.

43:57 How to schedule the writing into the daily routine

Alexey

43:57

How do you schedule writing into your daily routine?

44:03

How do you schedule and prioritize this writing work into your daily routine?

Eugene

44:08

I am busy, but let me share a bit. From 2017 to 2019, I was doing an online Master’s of Computer Science, spending 20–40 hours a week while working part-time. After graduation, I had more time, so I decided to pour this energy into writing 1–2 hours a day early in the morning. It’s just a daily habit, like exercise or meditation. Saturdays I focus on drafting the prose, Sundays on editing. I make time to go out, and thankfully I have a very understanding wife.

44:08

You don’t have to spend that much time. You can write short snippets, maybe 500 words. Start small, start with whatever you’re comfortable with, even tweets. Tweets are actually more difficult because of the character limitation or the need to use threads.

44:08

By the way, I posted a tweet yesterday saying, “You will tell us the secret sauce of writing. What is it?” I have no secret sauce. When I woke up today, I realized I have no secret sauce, but I hope I’ve been transparent and honest enough. Maybe the outline iteration approach is my closest secret sauce.

46:01 Making the blog popular

Alexey

46:01

How did you make your blog popular?

Eugene

46:12

I don’t know. I wish I had a formula so I could repeat it. I would write, then tweet about it, and post the same tweet on LinkedIn. People who saw it would maybe circulate it. That was my only distribution channel because it’s already a lot of effort to compose tweets just write 200 characters and post it. Eventually, I found like-minded people who read my stuff and engage with me. I didn’t put a lot of effort into that, and I don’t think it’s very popular, but I am thankful to find people with the same interests.

47:22

Hacker News is different; it likes disagreements. One post was “Stop taking regular notes, use a Zettelkasten instead,” and people debated it. Another post about end-to-end data science also reached the front page. The real secret sauce is shooting many arrows consistently. Last year I shot 55 arrows, three hit the mark. Consistency matters.

48:33 Internal writing (at work)

Alexey

48:33

Writing internally at work is also important. How do you approach that?

Eugene

48:46

Writing is a form of communication. When writing documentation, always think about the reader. Writing at work tests your ideas before coding. For example, Amazon uses the press release before a project. S3’s press release explained a highly scalable, low-cost storage solution. Internal stakeholders react to see if it’s exciting before coding.

48:46

Then comes the design document: how to train the model, serve the model, business and technical requirements in terms of latency, throughput, cost. Circulating it allows peer review and feasibility checks. Writing helps test ideas at scale and document them for future reference.

48:46

Documenting code is like sending a note to your future self: why a decision was made, constraints, optimizations, rationale. Writing prevents forgetting and allows knowledge sharing. Writing at work scales knowledge and ensures you remember details.

53:28 The Amazon working backwards process

Alexey

53:28

The press release and design document are part of Amazon’s Working Backwards process, right?

Eugene

53:44

Yes. Working Backwards means starting from the customer: understanding the problem or demand, then building a solution. The press release solidifies the idea. For example, Alexa’s first press release was just “start music with your voice command.” Over time, it evolved into more complex functionalities. Writing is a critical part of this process.

53:44

Amazon doesn’t use slides much; writing documents allows scalable communication without needing to present. It saves time, and once written, doesn’t need repeating like presentations. This practice follows me wherever I go.

56:43 Writing for portfolio

Alexey

56:43

Writing for a portfolio. So let's say you did an awesome project, for example a Kaggle competition, and you finished in, I don’t know, top 20 or top 30 with a medal. You want to put all your code on GitHub. What do you need to put in the README so people can immediately see the value of this work?

Eugene

57:20

Let's think about it: if I'm searching on GitHub for a solution to some Kaggle competition, I would find hundreds of repositories. So what distinguishes one repository from another? I think a clear README is useful, one that explains how to start using this code, a quick start, and how to install it. If it has a requirements file, that’s really useful. Maybe it also explains the big processes, like the data prep step is in this folder, the machine learning step is in this folder, and the validation step is in this folder.

57:57

A basic README that explains this would be good enough. Now, if you think from a portfolio perspective to get a job, think from the manager’s point of view. Clearly, if they're going to hire you, you will be able to write code. But the question is, are you able to document code and explain it? When they read your code, does the README make sense? Does it explain well enough that they feel confident you can do the same thing at work? I think that’s something very helpful.

58:44

Am I audible?

Alexey

58:49

I think yeah, yeah, audible. I can hear you here, but I can see the connection is a bit choppy.

59:20 Wrapping up

Alexey

59:20

Yes, I guess actually now we are already at 6 p.m., so it means we finished. Maybe you have any last words?

Eugene

59:23

No, not really. Oh, I do have one. If I had to share something, I’m going to paste a link in the chat. For those of you who are regular readers on my site, please go to that link and tell me what you would like me to write that will be useful for you. I’m always trying to figure out what my audience wants. This is a topic poll. There are a few topics already, you can thumbs up or thumbs down, or propose a new topic.

Alexey

1:00:13

Why do some LinkedIn profiles only allow me to follow a person instead of connecting? I usually prefer asking for a connection. What's the main difference between the two?

Eugene

1:00:52

That’s a good question. On LinkedIn, you can set the default to connect, but I set it to follow. Connections keep building up and can get a lot. However, if you click the small plus button, the ability to connect is still there.

Alexa

1:01:20

But what’s the main difference between following a person and asking for a connection?

Eugene

1:01:27

Following a person is like on Twitter; you follow them, but they don’t follow you back. A connection is a two-way follow; you both follow each other, showing a more formal connection.

Alexa

1:01:55

Are there more questions?

Eugene

1:02:02

I guess we’re running out of time. Probably need to wrap up. Thanks a lot for coming today, sharing your knowledge, and your secret sauce.

Alexa

1:02:08

What you shared definitely deserves this name. Next time I write, I’ll try to follow your process and see how it improves what I wrote before.

Eugene

1:02:26

I hope so. Thanks.

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club