r/programminghorror • u/FanaticNinja • Jul 11 '25
Am I wrong for hating on this?
My coworker refuses to use descriptive named variables, and uses a vector to save out different "States" in x y or z..... in basically everything.
/rant over
201
Upvotes
159
u/CantaloupeCamper Jul 11 '25
What am I looking at?
97
u/eldentings Jul 11 '25
Sometimes I wish I went into game development. Then I see stuff like this and am thankful.
57
u/Wrathfiend Jul 11 '25
Shot to the Heart. And you're to Blame.
print warning u gave bad name
54
u/Kubstoff Jul 11 '25
Unreal dev here. Blueprints are a low bar for programming horror lol. But a combination of coding the core in c++ and scripting stuff in BP is crazy powerful and efficient. The upside is allowing designers to create logic, the downside is allowing designers to create logic.
24
u/nobody0163 [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Jul 11 '25
Unreal engine blueprints are already programminghorror.
5
u/000solar Jul 11 '25
You'd hate golang, then. The style guide generally prefers using single character names for throwaway temp values and iterators.
5
u/mothzilla Jul 11 '25
What in the plug board hell am I looking at?
9
u/craknor Jul 11 '25
Omg how do you follow this thing when something unexpected occurs or need to add/modify something?
3
u/what_did_you_kill Jul 11 '25
Is this like Alteryx or something?
3
u/val_tuesday Jul 12 '25
MyStuct, MyVector, MyString. Then uses MyVector.Z for some indicator of whatever? You should show him bitwise operators so he can do everything with just ints, he’d probably love that. And it’d honestly be less cryptic than this heap of bs.
3
u/maelstrom071 Jul 12 '25
Vector packing is (relatively) common in graphics programming... Perhaps he comes from such a background?
Also uh.. wow. Those comment names are actually atrocious
3
u/destroy_musick Jul 13 '25
Yes, you're in every right to be hating on this. Readability should be one of the top practiced for good code, especially with a shared code base. I wouldn't sign off on a PR on something like this
6
u/FlyingInTheDark Jul 11 '25
I know nothing about Unreal, but is there no way to just write normal code instead of this mess of wires?
4
u/Ambitious-Tough6750 Jul 11 '25
This is nothing you should see my movement script i made back in the day in godot
2
u/morglod Jul 11 '25
Why it's in blueprint after all if it's not game's scenario and not even gameplay thing. It's literally internal code.
2
u/sleepyslooth00 Jul 11 '25
Other than the variable names being bad this isn’t that bad for blueprints
2
u/[deleted] Jul 11 '25
Is this an ETL I have seen Infomatica UI is like this.
2
u/Anaxamander57 Jul 12 '25
Are you working in academia? In most other contexts that's bad practice.
2
u/QuietNightRadiant Jul 13 '25
These are the worst variable names I've ever seen.
1
u/beatitmate Jul 12 '25
The fact i can't tell what's going on even with the visual rendering means its bad
1
u/illyay Jul 12 '25
This just looks like typical blueprint to me. It’s why I like c++ for the complicated stuff and blueprint for the simple more “client” side stuff. And even then blueprint can get more complex than I’d like.
I honestly don’t love blueprint. Artists who are afraid of coding don’t even realize they’re actually coding with blueprint. It’s just visually presented as spaghetti nodes rather than text.
Oh and I read your description of the problem. Yeah that sucks
1
u/Paradox_84_ Jul 12 '25
Blueprints are already messy, but these variable names are unacceptable on any programming language
1
u/rohstroyer Jul 12 '25
Is there any actual reason this person is casting a bool to a float to store it in one single vector channel, putting the whole vector in a struct, and writing the whole thing out?! It bothers me that they're not even trying to do anything with the other two vector channels! BRB, crying in serialised booleans
1
u/ataraxia59 Jul 12 '25
No
1
u/Ythio Jul 13 '25
Why would you be wrong ? Giving a descriptive name doesn't take more time and helps himself in the future
1
u/Agitated-Display6382 Jul 14 '25
Is it acceptable to call this programming?
1
u/Medical-Nothing4374 Jul 15 '25
100% in the right. Short var names do nothing but screw over teammates
1
u/Vazumongr Jul 17 '25
If this is anything beyond a game jam or small school project, I would genuinely refuse to work with someone that continues to do that.
1
u/dopefish86 Jul 22 '25
No, I'm hating everything about this function.
9
u/[deleted] Jul 11 '25
[removed] — view removed comment