this post was submitted on 28 Nov 2026
369 points (81.2% liked)

Programmer Humor

34344 readers
1383 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] AliOski@feddit.nl 2 points 1 day ago* (last edited 1 day ago) (1 children)

Agreed

The thing about the KUnit tests is just flying a little over my head because I have no idea what those are. That's why the timing part was sticking more with my memory

[โ€“] tempest@lemmy.ca 4 points 1 day ago

k(ernel)unit is the unit test framework for the Linux kernel.

Unit tests are code that test little pieces of code in your code base to make sure it does what you intend it to do. Usually by calling those parts of code with inputs and checking that the code returns outputs that are intended. If I have code that adds numbers I can test that it returns 4 when told to add 2 plus 2.

This is very helpful for AI coding because tests essentially describe what you the developer expect the code to do. It helps the LLM understand the intention and check that it's changes have not broken anything.