<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/codeconfessions/best-of/2024" -->

---
title: Best Confessions of a Code Addict posts of 2024 | daily.dev
description: The most upvoted Confessions of a Code Addict posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/codeconfessions/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/codeconfessions/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best Confessions of a Code Addict posts of 2024 | daily.dev
og:description: The most upvoted Confessions of a Code Addict posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Confessions of a Code Addict — 2024

1. 1  
[](/posts/linux-context-switching-internals-part-1---process-state-and-memory-1zvkjrfnn "Linux Context Switching Internals: Part 1 - Process State and Memory")  
[![codeconfessions's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/13e0f42f33864f94bf4d8f0e43234afd)](/sources/[source]/best-of/[year])  
21m read time • Dec 29, 2024  
### Linux Context Switching Internals: Part 1 - Process State and Memory  
Context switching is essential for managing multiple processes efficiently in the Linux kernel. This post delves into how the Linux kernel represents process state and memory using key structures like task\_struct and mm\_struct. It discusses various process states, the significance of kernel and user mode stacks, memory segments, and how page tables facilitate virtual memory management. Understanding these fundamentals is crucial for performance optimization in complex systems.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/debe04cc3715a20a39b083a5b3df934b?_a=AQAEuj9)  
41
2. 2  
[](/posts/an-unreachable-hidden-xkcd-easter-egg-inside-cpython-inzdwmi1h "An Unreachable Hidden XKCD Easter Egg inside CPython")  
[![codeconfessions's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/13e0f42f33864f94bf4d8f0e43234afd)](/sources/[source]/best-of/[year])  
3m read time • Nov 18, 2024  
### An Unreachable Hidden XKCD Easter Egg inside CPython  
CPython codebase has two hidden Easter eggs related to xkcd comics. One is the well-known 'import antigravity', while the lesser-known one involves error messages inspired by xkcd. In debug builds, control reaching an unreachable state triggers xkcd-related messages. These messages are based on xkcd issue 2200, with a special definition when 'RANDALL\_WAS\_HERE' is enabled, referencing the comic's creator, Randall Munroe.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1e5e69990c341d000f8597a6ef7bcc42?_a=AQAEuj9)  
39  
1
3. 3  
[](/posts/the-pythonic-emptiness-pflz9wsqf "The Pythonic Emptiness")  
[![codeconfessions's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/13e0f42f33864f94bf4d8f0e43234afd)](/sources/[source]/best-of/[year])  
14m read time • Nov 09, 2024  
### The Pythonic Emptiness  
The post discusses why checking for sequence emptiness using truthiness is considered more Pythonic and efficient than using len(). It addresses concerns about readability and ambiguity, attributing such issues to poor coding practices like unclear variable names, lack of docstrings, and insufficient input validation. The Pythonic approach is part of PEP-8 recommendations and emphasizes that the perceived ambiguity often reflects broader code quality issues.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/22af69f88705a1c07923030e4e7c7b6c?_a=AQAEuj9)  
28  
3
4. 4  
[](/posts/everything-you-wanted-to-know-about-profilers-in-python-0n59hr1kk "Everything You Wanted to Know About Profilers in Python")  
[![codeconfessions's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/13e0f42f33864f94bf4d8f0e43234afd)](/sources/[source]/best-of/[year])  
1m read time • Jun 01, 2024  
### Everything You Wanted to Know About Profilers in Python  
This post provides an introduction to profilers in Python, including the types of profilers and how to use them. It also mentions a live session on building a sampling profiler for Python.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/972b7a49078fd7c7f472828a6efaf183?_a=AQAEuiZ)  
14

[See all Confessions of a Code Addict archives](/sources/codeconfessions/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/codeconfessions/best-of/2024#page","url":"https://daily.dev/sources/codeconfessions/best-of/2024","name":"Best Confessions of a Code Addict Posts of 2024","description":"The most upvoted Confessions of a Code Addict posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/codeconfessions/best-of/2024#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/linux-context-switching-internals-part-1---process-state-and-memory-1zvkjrfnn","name":"Linux Context Switching Internals: Part 1 - Process State and Memory"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/an-unreachable-hidden-xkcd-easter-egg-inside-cpython-inzdwmi1h","name":"An Unreachable Hidden XKCD Easter Egg inside CPython"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/the-pythonic-emptiness-pflz9wsqf","name":"The Pythonic Emptiness"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/everything-you-wanted-to-know-about-profilers-in-python-0n59hr1kk","name":"Everything You Wanted to Know About Profilers in Python"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Confessions of a Code Addict","item":"https://daily.dev/sources/codeconfessions"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/codeconfessions/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

