we need a programming horror community for stuff like this
this post was submitted on 21 Nov 2024
302 points (91.0% liked)
Programmer Humor
32591 readers
947 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
What? There is no lib
module.
$ python3.13 -c 'import lib'
Traceback (most recent call last):
File "<string>", line 1, in <module>
import lib
ModuleNotFoundError: No module named 'lib'
$
OP wrote this add() function and has provided their own lib module in the source code.
Oh, so it’s not Python that’s cursed.
One of Python’s design philosophies is—or at least was—“we are all consenting adults here.” If you really want to turn Python into Brainfuck, the interpreter isn’t going to stop you.
load more comments
(1 replies)
Makes sence if u think about it. We use comments as docstrings that the interpreter has an understanding of. Python lets u fuck with its internals (at least in an immutable manner) so why not fuck with comments.
TMI 😢