Learn · CERN

Talk53 min

Code You Won’t Regret (Too Much): How to Write Maintainable Code

Niels Alexander Buegel · CERN

Watch At CERN

About

If you have ever worked with an existing code base, you have likely realised how frustrating and time-consuming this can be. Why do some code bases allow you to easily make changes whereas other code bases make you want to pull your hair out and switch to a career in goose farming? In this lecture, we will explore some key principles that make code maintainable, adaptable, and easy to work with. We will start by defining what maintainable code really means, then explore the most important factors that contribute to it: readability, simplicity, single responsibility, abstractions, documentation, and testing. These concepts apply at any granularity, in any programming language, and with any programming paradigm. You will not only save yourself headaches but also make life less frustrating for anyone who has to work with your code (or at least make them less likely to be angry at you)..

0:00:00 Slide 1

0:01:10 Slide 2

0:02:52 Slide 3

0:05:29 Slide 4

0:07:19 Slide 5

0:08:39 Slide 6

0:13:59 Slide 7

0:15:06 Slide 8

0:16:23 Slide 9

0:17:46 Slide 10

0:27:16 Slide 11

The talk

  1. Code You Won’t Regret (Too Much): How to Write Maintainable Code 2025-03-25 · 53 min · CERN's player

Credits and licence

Institution
CERN
Department
Inverted CSC
Speaker
Niels Alexander Buegel
Year
2025
Language
English
Subjects
Computer science
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Tweens profiles and older, judged from what the source says about it. How courses are placed