this post was submitted on 27 Feb 2026
54 points (100.0% liked)
Programmer Humor
31081 readers
114 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Basic allows something to be defined via itself? Or does it just initialise to random values like C?
Z=Z-Zlooks wild, but if there are no special values for integers, it will always be zero, indeedI do think that most dialects of Basic automatically zero out variables when they're defined, but my code concept here makes no such assumptions, I assume the worst that all variables start off as random garbage.
I chose Mobile Basic because it's easy to understand, the code concept doesn't require any super complicated language, and I can easily piddle around with stuff like this when out and about on road trips and such.
If you like the coding idea, feel free to use it and even adapt it to other languages.
One thing I don't exactly like about this particular version of Basic is that it's kinda picky on what all I can and can't do between integer vs double data types, it doesn't allow bit shift operations using doubles, which does make sense, but some other Basic dialects do tend to allow that by simply rounding to an integer before performing bit shifts. I guess it just depends on what your calculating priorities are, decimals or integers..