0 points
*

No, that’s math.

permalink
report
reply
1 point

Then you realize your code is undebuggable because half the functions and variables have single-letter names or called foo, bar, baz, etc.

permalink
report
reply
0 points

I have a somewhat related real world story. I had a client that was convinced that tons of people were going to decompile their application and sell their own version of the program, so they insisted that they needed their code obfuscated to protect company secrets and make it harder to reverse engineer. I tried explaining to them that obfuscation wasn’t that big of a deterrent to someone attempting to steal code through reverse engineering and that it would likely cause some issues with debugging, but they were certain they needed it. Sure enough, they then had a real user run into an issue and were surprised to find that their custom logging system was close to useless because the application was outputting random obfuscated letters instead of function and variable names. We did have mapping files, but it took a lot of time to map each log message to make it readable enough to try to understand the user’s issue.

permalink
report
parent
reply
0 points

This is why you obfuscate after you code. Just obfuscate the release build. And logging may at that point be thrown out of the window anyway

permalink
report
parent
reply
0 points
*

It was obfuscated only in the release build. The issue is that they have a system to send certain logs to an API so they can refer to them if a user has an issue that needs further investigation. Unfortunately, their target audience is not very tech literate and have a hard time explaining how they got into a situation where they experienced a bug, so the remote logging was a way to allow us to try to retrace the user’s steps. Some of the logs that get sent to the API have JSON values converted from class data, will refer directly to class names, etc, and those logs had the obfuscated names.

permalink
report
parent
reply
1 point

mathematician here, where is the joke?

permalink
report
reply
1 point

This joke is funny only if placed in Arnold-Atyah manifold if Kolmogorov-Ramachandran-Yu metric is defined

permalink
report
parent
reply
1 point
*

So don’t use it in non-KRY-definite AA situations, or you could get erroneous results. QQX is fine though, as long as you have non-vanishing ABCD. /s

I wonder if Lean proofs become the new peer review like I’ve heard suggested, if mathematics might break from this, and look more compsci-ish in the future. That way non-specialists could get up to speed quickly.

permalink
report
parent
reply
1 point

in the linux community it’s really common to have applications like MPD, music player daemon, or MPC, music player client, and ncmpc, ncurses music player client, and ncmpcpp the aforementioned one with ++ tacked onto the end.

Cmus, which from what i can recall is literally “c music player”

etc…

permalink
report
parent
reply
0 points

Variable names should be “self defining” meaning you should be able to understand what its doing from the name. The name also shouldn’t be too long. Combining those together makes it difficult to come up with an “elegant” name

permalink
report
parent
reply
1 point

I think they got the joke, they were just joking about how this is common in math :P

permalink
report
parent
reply
0 points

The most atrocious variable names I ever encountered in code were as a research assistant for a math professor doing game theory simulations. Literally unreadable unless you had a copy of his paper on the subject to refer to

permalink
report
parent
reply
1 point

tmp3 = tmp1 + tmp2 ; T.T

permalink
report
parent
reply

Was just talking about gaming genre names being kinda lame (roguelike? Souls-like? Where’s the originality?!) and this just furthers my point as programming and video games are intrinsically linked.

permalink
report
reply
1 point

floats, doubles, etc are decimallikes. object-oriented programming languages are c++likes. a string that is just the word “false” is a boollike. any language easier to learn than c++ is a pythonlike. any language harder to learn than c++ is a asmlike. don’t like it? then you’re a naglike. you don’t want to be known as a naglike, do you?

permalink
report
parent
reply
0 points

for whatever in stuff:

permalink
report
reply
1 point

for myList in myElement:

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments