Hey, this must be that self-documenting code I keep hearing about
Obviously, we can’t allow code like that - PascalCase is heresy… camelCase that shit.
snake_case gang represent
rage bait
My ASDV professor has two moods: He either names variables like this post, Or he names variables
pp
(for pointer pointer)Fuck for some reason
pp
is giving me flashbacks to having to write using Hungarian notation variable names.
Self-documenting code, high contrast… Carry on.
Leaning to program on 8-bit machines with 8k of RAM means that even today I abbreviate names.
Plus it was accepted wisdom that shorter variable names were faster for the BASIC interpreter.
variables don’t make it to the compiled binary tho, except debug symbols of course if have those enabled (but deploying them to an embeeded system is a terrible idea, they can remain on the host system)oh you mean on not for
Yeah for interpreted BASIC.
But even after moving to writing assembly language on a separate PC devkit there was still the habit of using short names.
I think that some assemblers had limits on name size.
This is getting absurd, variable names have become variable sentences.
Variable essays is the future!
Yea this looks productive.
Imagine how useless the LSP suggestions are.
I approve. All code should be like this
Why not leave comments
Why leave comments?
deleted by creator
This has likely been done intentionally for humour’s sake, but take a look at some of the names in Apple’s AppKit framework, like https://developer.apple.com/documentation/appkit/nspreviewrepresentingactivityitem
That page is giving me a 403
I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:
NSString * test = [[NSString alloc] initWithString:@"This is a test string."]; NSString * test2 = [test stringByAppendingString:@" This value is appended."];
And god forbid you want to concatenate two things to a string:
NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];
Ugh, this makes me want to “slash slash slash.”
im scared
It’s an unwritten rule that there‘s always a fitting xkcd post
deleted by creator