First thing I did in my current job is to remove all non UI blueprints from our massive UE5 app. That shit is not maintainable, Tim Sweeney was probably high as fuck when he though they were an alternative to scripting. You can maintain scripts, you can't maintain whatever that is
Yes, and for that I understand their intended purpose. But without any serious scripting support the only viable alternative is their wannabe-dotnet mutilated dialect of C++ which is shit. Pure unadulterated shit. You have all the problems of a GC with all the warts of C++ - fun!
UE community is obsessed with blueprints for whatever reason. Epic pivoted to remove all that shit in UE6 finaly, but what a shitstorm they unleashed, its kinda hilarious.
I see a consistent Left-to-Right flow that has few cycles in it. Hardly spaghetti. Not just that, but this is all system-level orchestration; everyone knows integration is like DIY wiring/plumbing a house!
It's all proprietary, but find someone who can show you any bit of source code from NDDS and other DDS predecessors. That is spaghetti code!
For anyone wondering, these are generated by engine and aren't meant to be viewed or edited in the editor, there's just no reason to prevent them from being opened in the editor.
Edit: I came back to this post and realized that I was wrong, although Unreal does have ugly assets generated at build-time.
Ok I developed in Unreal in the last 7 years and while this is some of the worst managed Blueprint I've ever seen, this is still salvageable with half a day of moving nodes since hopefully all is handled in the same graph. Most people miss that the true Spaghetti code is not just ugly code, is also code that is executed through multiple classes without a real reason.
Spaghetti code in Unreal looks more like a blueprint with 200 functions calling C++ code, which in turn trigger BlueprintNativeEvents which are defined in editor, which triggers an event which is bound in a C++ file, all of which is dynamically instanciated at runtime and held together by soft references so you won't ever understand WHERE the fuck the whole stuff is used in the game.
In 2008, I joined a company with a 10 year old existing codebase. They wanted me to work on it and I'm a very visual guy so I asked if they had a map or something. They did not. I discovered Doxygen and used it to create that map. My boss, delighted to see this, had a mate print it out. The final poster was 4x3 meters high... :/
I have never, and I mean never, let any of my Blueprints get this bad. Ever. I either port it to C++ in the parent or a break things into new functions. This is terrifying me to look at.
8
u/TheOwlHypothesis Nov 03 '26
Show us some non spaghetti code?
9
u/Sentinel-Hyena Nov 03 '26
Which visual language is this? Is it Unreal Engine?
6
u/uglycaca123 Nov 03 '26
spaghetti code without bolognese? or carbonara? or something in general??? what a savage...
3
u/Lendari Nov 04 '26
What software is this...
3
u/RevolutionaryLab1784 Nov 04 '26
So what non spaghetti code should look like
111
u/jhill515 Nov 03 '26
I see a consistent Left-to-Right flow that has few cycles in it. Hardly spaghetti. Not just that, but this is all system-level orchestration; everyone knows integration is like DIY wiring/plumbing a house!
It's all proprietary, but find someone who can show you any bit of source code from NDDS and other DDS predecessors. That is spaghetti code!
175
u/Micromize Nov 03 '26
Looks fine to me.
39
u/K4tch1 Nov 03 '26
Doesn't look too bad tbh
23
u/DestopLine555 Nov 04 '26
Why am I seeing Bad Apple on the first image lmao
17
u/JimmyPickles69 Nov 04 '26
that looks pretty freakin structured to me
34
u/ef02 Nov 03 '26 edited Nov 03 '26
For anyone wondering, these are generated by engine and aren't meant to be viewed or edited in the editor, there's just no reason to prevent them from being opened in the editor.
Edit: I came back to this post and realized that I was wrong, although Unreal does have ugly assets generated at build-time.
14
u/Malleus94 Nov 04 '26
Ok I developed in Unreal in the last 7 years and while this is some of the worst managed Blueprint I've ever seen, this is still salvageable with half a day of moving nodes since hopefully all is handled in the same graph. Most people miss that the true Spaghetti code is not just ugly code, is also code that is executed through multiple classes without a real reason.
Spaghetti code in Unreal looks more like a blueprint with 200 functions calling C++ code, which in turn trigger BlueprintNativeEvents which are defined in editor, which triggers an event which is bound in a C++ file, all of which is dynamically instanciated at runtime and held together by soft references so you won't ever understand WHERE the fuck the whole stuff is used in the game.
9
u/GreenerThanFF Nov 03 '26
Doesn't even look that bad
7
u/Stripy42 29d ago
It keeps going!
But what's that graphing software? I want to see how bad my code is.
6
u/Comic_Melon Nov 04 '26
This is hardly spaghetti code
8
u/fibojoly Nov 03 '26
In 2008, I joined a company with a 10 year old existing codebase. They wanted me to work on it and I'm a very visual guy so I asked if they had a map or something. They did not. I discovered Doxygen and used it to create that map. My boss, delighted to see this, had a mate print it out. The final poster was 4x3 meters high... :/
4
u/AmazinDood Nov 03 '26
This is just Septabee but for code.
4
u/Flat_Initial_1823 Nov 03 '26
We should pour aluminum to get a cast of it
4
u/The_Fresh_Wince Nov 03 '26
Think lasagna. Layers.
7
u/SaneLad Nov 03 '26
Bro that's not code. That's a Large Hadron Collider result.
3
u/PusheenHater Nov 03 '26
We'll no longer have this since Epic deprecated blueprints.
3
u/lsm-krash Nov 03 '26
"code"
3
u/warpspeedSCP Nov 03 '26
US military presentation slide be like:
2
u/Mrpuddikin Nov 03 '26
hypergamy
2
u/ZetaformGames Nov 04 '26
This is why I'm not a fan of node based programming...
2
u/ImPlento Nov 05 '26
That's just a normal UE5 node graph
2
u/javaman1025 29d ago
Hey who leaked my source code???
3
u/r2_adhd2 Nov 03 '26
I have never, and I mean never, let any of my Blueprints get this bad. Ever. I either port it to C++ in the parent or a break things into new functions. This is terrifying me to look at.
2
u/confrondex Nov 03 '26
LGTM
1
u/Skyswimsky Nov 04 '26
Doesn't say much without visualization of "clean" code as comparison
1
u/DecisionOk5750 Nov 04 '26
You should see a node-red automation...
1
u/muminisko Nov 04 '26
Shaders builder in Unity look similar and I never get it over few nodes without deep need to scrap it out
1
u/dhnam_LegenDUST Nov 05 '26
Most sane and clean LabVIEW code be like:
1
u/meinkr0phtR2 29d ago
Ah, your average database.
1
u/ChexterWang 28d ago
r/programminghorror