Watch on Instagram

Code Bytes · "Start Here: What Is Coding?" · Episode 5 · The big picture

What software engineers actually do

Software engineers spend most of their day solving problems, not typing fast. They understand the problem, plan, write code in small pieces, test it, find and fix mistakes, review each other's code and release it to users, then start again.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

Not like the movies

In films, programmers type at lightning speed while green text races down the screen. Real days look calmer. Most of the time goes into working out what a program should do, why something isn't working, and how to change it safely. Typing is the small part.

It starts with a question

Work usually begins with a request, such as "People can't reset their password." Before writing anything, engineers ask: what should this do? They talk with teammates and with users (the people who will use the software) until the problem is clear. The US Bureau of Labor Statistics lists this first in the job: analysing users' needs, then designing, building and testing software to meet them.

Plan, write, and read a lot

Next comes a plan: what to change and in what order. Then engineers write code in small pieces, so each piece can be checked before the next one is added.

A surprising part of the job is reading. Programs are big and written by many people, so before changing anything, engineers read and understand the code that's already there. One large study that followed 78 professional developers for over 3,000 working hours found they spent about 58 percent of their time understanding code. Other studies give similar shares: developers spend more time reading code than writing it.

Test, fix, review, release, repeat

  • Test: run the code and check it does what it should. Some checks pass, some fail.
  • A mistake in code is called a bug. Finding where it is and fixing it is a huge part of the job.
  • Review: a teammate reads the new code to catch problems early, before users ever see them.
  • Release: the finished change goes out to real users.
  • Repeat: users find new needs and new problems, and the cycle starts again.

Try it yourself

Pick a small app you use every day (a timer, a notes app, a weather app) and play engineer for five minutes. Write down:

  1. One problem a user might have with it (for example "I can't find my old notes").
  2. One question you'd ask that user before changing anything.
  3. A plan of three small steps to fix it.
  4. One test you'd run afterwards to check the fix worked.

That's the same loop real teams follow, just without the code yet.

Good to know

  • No code is run in this episode; the code in the video is drawn as coloured bars, not real code.
  • "Studies suggest" because the share of time differs between studies. The Xia et al. study (IEEE Transactions on Software Engineering, 2018) found about 58 percent of time went to understanding code; other studies give similar or higher shares.
  • The understand → plan → write → test → review → release loop is a simplified, typical workflow. Teams differ in the details.
  • "Software engineer" and "software developer" are used loosely as the same job here, as they often are in practice.
  • Engineers used the word "bug" for a fault long before computers, back in the 1800s. The famous 1947 moth taped into a logbook is a later story, not the origin.

Answer to the comment question

What's the word for finding and fixing bugs? Debugging. To debug is to find and remove mistakes in a program. It's a huge part of a software engineer's day: tests show something is wrong, the engineer tracks down which line causes it, fixes it, and runs the tests again.

Test your knowledge

Quick quiz: What software engineers actually do

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What do software engineers spend most of their day doing?
2What should happen before an engineer writes any code?
3According to studies, what do developers spend more time doing?
4Why do teammates review each other's code?

Sources

Video transcript

What do software engineers actually do all day?

Movies show super-fast typing and scrolling green text. Real days are mostly solving problems.

It starts with a question: what should this do? Engineers talk with teammates and users to understand the problem before writing anything.

Then they plan, and write code in small pieces. Studies suggest developers spend more time reading and understanding code than writing it.

Next, they test it. A mistake in code is called a bug, and finding and fixing bugs is called debugging. It's a huge part of the job.

Teammates review each other's code to catch problems early. Then it's released to real users, and the cycle starts again.

What's the word for finding and fixing bugs? Comment your answer below!

That's your byte.

More from "Start Here: What Is Coding?"

All "Start Here: What Is Coding?" lessons