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

- Institution: CERN
- Department: Inverted CSC
- Speaker: Niels Alexander Buegel
- Year: 2025
- Language: English
- Subjects: Computer science
- Source: [CERN](https://videos.cern.ch/record/3022143)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Tweens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

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

0:28:54 Slide 12

0:35:02 Slide 13

0:36:48 Slide 14

0:38:23 Slide 15

0:39:55 Slide 16

0:41:48 Slide 17

0:50:29 Slide 18

## Lectures

1. [Code You Won’t Regret (Too Much): How to Write Maintainable Code](https://invisiblenetwork.ai/learn/cern/3022143/b33da73f293d), 53 min (CERN's player)
