Javascript is not enabled.

Javascript must be enabled to use this site. Please enable Javascript in your browser and try again.

Skip to content
Content starts here
CLOSE ×
Search
CLOSE ×
Search
Leaving AARP.org Website

You are now leaving AARP.org and going to a website that is not operated by AARP. A different privacy policy and terms of service will apply.

How ‘Project Hail Mary’ Author Andy Weir, 53, Went From a Computer Engineer to a Best-Selling Novelist

The writer talks to AARP about how he loved his tech career — then ‘The Martian’ found an audience, and everything changed


andy weir wearing a white fedora hat and glasses
Andy Weir in New York at the “Project Hail Mary” premiere in March 2026
Dimitrios Kambouris/Getty Images

Key takeaways

  • Andy Weir spent 25 years as a software engineer before finding success as a writer. 
  • He stayed at his programming job even after The Martian hit the New York Times bestseller list and its film rights were sold.
  • Project Hail Mary has earned $573 million in five weekends.​

During his 25 years working as a software engineer, Andy Weir wrote two novels that never found an audience. He also wrote a blog serializing a gripping sci-fi story about an astronaut accidentally stranded on Mars and presumed dead by his crew. After Penguin Random House published it as The Martian in 2014, it quickly hit the bestseller lists, and the 2015 movie version, starring Matt Damon, went on to earn $630 million worldwide. ​

Weir, 53, eventually quit his day job (which he loved), and in 2021 published Project Hail Mary, about a former teacher-turned-astronaut who wakes from a long slumber and discovers he’s the only one who can save humanity from extinction. The new Hollywood adaptation starring Ryan Gosling has earned $573 million globally, and Weir has become one of the most unlikely success stories in modern publishing. 

Weir recently sat down for a Facebook Live interview with Shelley Emling, editor of AARP's The Girlfriend and moderator of its book club (Project Hail Mary is the group’s April read). What followed was a refreshingly honest conversation with the writer about the unglamorous machinery behind his work and what that work means to him.

Here are some highlights from the interview.

You always wanted to be a writer. But you chose a very different path. Why?

When it came time to choose a major in college, I really liked writing. But I also really liked programming computers. And I also decided I really like regular meals. So I went with software engineering. But I was always writing on the side.

You wrote two complete novels before The Martian. What kept you going?

They sucked, which is why you haven’t seen them. But The Martian is the one that stuck.

When The Martian became a bestseller and the film rights were sold, you were still at your programming job. What made you stay so long?

I was still at my job because I liked it. I only quit it because I had to write full-time to complete my next book. But it wasn’t a take-this-job-and-shove-it situation. It was like, “Bye, guys. I’m really going to miss you.”

Is it true what I’ve read, that you based the main character in The Martian on yourself?

Mark Watney is me. He’s my exact personality, with all of my good qualities magnified and all of my bad qualities erased. He’s the idealized version of me. Project Hail Mary was the first time I said, “All right, enough of this just making things me. Let’s try to create a character from whole cloth that is not based on my own personality.”

You make science feel entertaining rather than intimidating. How do you pull that off?

I’m a dork, and I like the scientific and space stuff. But I try not to overwhelm the reader with unnecessary scientific information. I try to give just the information the reader needs to understand the plot. They want to understand the science when it relates to a character they like and whether or not he’s going to survive or succeed in whatever he’s trying to do. The other thing is that readers will forgive any amount of exposition if you make them laugh. If there’s humor, they’ll read anything.

Describe what the actual work of writing feels like for you.

I’m not one of those people who get a cathartic joy from the actual process of writing. I really envy those people. For me, writing is like gardening. You don’t enjoy being out in the hot sun, being bitten by bugs or pulling roots out of the ground. Your back hurts, you’re dirty, you’re grimy, you’re sweaty. You’re not doing that for fun. You’re doing it because at the end, you have a very nice garden that you can look at and enjoy.

I’m already behind on the deadline for my next book. It just whizzed by, and I’m nowhere near ready.

andy weir in a sci fi setting on the set of project hail mary
Weir on the “Project Hail Mary” set
Jonathan Olley/Amazon MGM Studios/Courtesy Everett Collection

How involved were you in the making of the two movies?

On The Martian, my only role was to cash the check. They basically said, “We’re buying the film rights from you. Here you go. Here’s our contract. Have a nice day.” With Project Hail Mary, it’s completely the opposite. I’m a producer, so I was involved in all the decisions, including casting Ryan and choosing Chris [Miller] and Phil [Lord] to direct. But, of course, I [mostly] just stood back and let the real producers do their job. I was on set, making sure all the science was correct. That was kind of my role. And it was really cool.

How did you feel about having Ryan Gosling in the starring role?

This is an award-worthy performance from Ryan. It is amazing. He just absolutely nailed it. Everybody nailed it. It’s just neat to see all these people who are so good at what they do doing what they do.

ryan gosling in a scene from project hail mary
Ryan Gosling stars in “Project Hail Mary,” based on Weir’s book.
Jonathan Olley/Metro-Goldwyn-Mayer/Courtesy Everett Collection

What authors have inspired your writing, and do you have any book recommendations?

My holy trinity is Isaac Asimov, Robert Heinlein and Arthur C. Clarke. If I had to pick just one of them, I would say Asimov. For books I’ve read recently, I would generally recommend anything by Blake Crouch. I think his most popular book is Dark Matter, which also became an Apple TV series, but my personal favorite is [his 2019 sci-fi thriller] Recursion.

What’s your life like now? What’s fame like?

Being a successful writer is the exact right amount of fame. Like when I go to a book signing and everyone’s adoring me — yay. And then when I go to the grocery store the next day, nobody knows who I am. It’s great. I get the benefits without the drawbacks.

The key takeaways were created with the assistance of generative AI. An AARP editor reviewed and refined the content for accuracy and clarity.

Unlock Access to AARP Members Edition

Join AARP to Continue

Already a Member?

Get instant access to members-only products and hundreds of discounts, a free second membership, and a subscription to AARP the Magazine.