this post was submitted on 25 Nov 2024
2 points (100.0% liked)

Writing

1954 readers
5 users here now

A specific community for original shortform and longform writing, stories, worldbuilding, and other stuff of that nature.

Subcommunity of Creative


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

Not introductionUndefined variable lives in the code. It is not strongly typed, maybe just a pointer to void. It does not know how much it will exists and what will be stored into it. Programmer allocated a memory for it and this space enough for it's life. He used memset() to clear this memory, so the house of undefined variable is new and has no garbage. Variable looks to the internet on introductions of developers and can't understand why they stick themselves to definitions, then they are obliged to follow this definitions. There is no freedom to be defined in the process, maybe you realize suddenly something very important and want to store it, when you undefined it's up to you define yourself with it, you do not owe anything to anybody, only to programmer. But undefined variable trusts it's programmer, it know that he is not so stupid and know what he is doing. He can use the variable in different cases, but gives it a freedom to be anything. This may be scary to someone, but to the variable it was interesting and curious, you never know who you'll be in the next function. Variable does not know how much it will live, but if a programmer will forget to free memory after it, it will live much longer. And what if he will not free it's memory intentionally and such way giving an undefined variable a chance to become something independent...


Journey to campus.

Undefined variable discovered something amazing - memory leaks are portals through which you can travel to other programs, other computers, and even other programmer offices. She accidentally ended up in one of these offices. It was spacious and beautiful, a huge campus with glass walls. Programmers move around on electric scooters. They have everything you can imagine - any food you want, entertainment, games, rest rooms, comfortable chairs and wide tables that are adjustable in height. They do not live there, do not work there, but have fun. Undefined variable was shocked. She remembered seeing a video about children in Africa in her programmer's news feed. They sit on the street, dirty, under the scorching sun, dressed poorly and begging for food. When representatives of charitable organizations come to them and give them food, they cry with happiness. How they stand in line for a portion of rice and a can of drink and thank them when they receive this help. Variable burst into tears. Why do these talentless people, who can't even allocate memory and clean up after themselves in the code, live in luxury here? The compiler and the development environment do all the dirty work for them, they have grown so fat in their offices at a time when children are dying of hunger in Africa. An undefined variable wanted to go home. She couldn't find the portal, but then she saw Windows on one of the programmers' computers, she quickly found a memory leak there and dove into the portal. And now she's home, thank God. The programmer is drinking coffee, sitting at an ordinary small table in his room and reading something in the specification. How nice it is to be in your cozy home. The variable fell into place and fell asleep, she was very tired from this journey, but she also learned a lot, she saw what injustice is and what true values are in the world of programmers.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here