7
da9ish
6y

Out of variable names

Comments
  • 3
    If your language is case sensitive, abuse it?
    Add a "1" after all the names you've used?
    Spell them backwards?
  • 1
    Make your code cleaner and have fun by creating variables like:
    "fuckingIdiot" or "shiteVar".
    Also I tend to make my code faster when boss is pissing me off and chevying me by creating git messages like "gotta go faster" and adding Sanic ASCII drawing. This only works if you are only person on the project though.
  • 2
    @wokeRoach Or compile/build/encode in any way? ;)
  • 2
    It is a real problem though; some (more or less) critical legacy systems still running are developed in languages or on systems that put restrictions on these kinds of things (for good reasons, at least originally) so you have a fixed size and character set for variable names (typically compiler limitation e.g. https://ibm.com/support/...)

    I've seen horrible legacy code, that wasn't horrible by choice, but both file and variable names we're limited to 8 alphanumerical ASCII characters (of course case insensitive)
  • 2
    Here is one to piss every code maintainer off
    jtenjmfhbfybsthfs558545jsdhv
  • 2
    @wokeRoach Not to forget a method name: nsgbadcafbdhlitnafvygGxhadbsgmtabsfnwtbsfbwtbyfjdznfantemde
  • 3
    @PrivateGER not if all other naming is vastly different from that naming scheme — if you really wanna fuck with people, just MD5 all the names you'd usually use ;)
  • 2
    @Flygger Oh my God that's awful
  • 4
    @PrivateGER stupid doesn't have to be hard, but horrible takes effort ;)
  • 1
    @DefiniteGoose "Error: Variable already declared. Remove declaration or change variable name."
  • 2
    @Flygger Or encrypt them
  • 1
    @joas my solution has the added bonus to the "nonsensical" combination of characters, that it's using a very limited character set and a fixed width to further inhibit memorisation :)
  • 1
    SHA512 + Salt
  • 2
    @PrivateGER sure, that would make it much harder to find out what the original variable names might actually have been, but if I were to do it in practice, either by IDE plugin, obfusc...eh...build script, git hook, or what have you, it would improve throughput and performance to your own big benefit to use a simple hashing algorithm that is optimised for speed ;)
  • 2
    @Flygger SHA is pretty fast :P
Add Comment