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 23d ago
Show us some non spaghetti code?
9
u/Sentinel-Hyena 23d ago
Which visual language is this? Is it Unreal Engine?
6
u/uglycaca123 23d ago
spaghetti code without bolognese? or carbonara? or something in general??? what a savage...
3
u/Lendari 22d ago
What software is this...
3
u/RevolutionaryLab1784 22d ago
So what non spaghetti code should look like
111
u/jhill515 23d ago
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 23d ago
Looks fine to me.
39
u/K4tch1 23d ago
Doesn't look too bad tbh
23
u/DestopLine555 22d ago
Why am I seeing Bad Apple on the first image lmao
17
u/JimmyPickles69 22d ago
that looks pretty freakin structured to me
34
u/ef02 23d ago edited 23d ago
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 22d ago
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 23d ago
Doesn't even look that bad
7
u/Stripy42 20d ago
It keeps going!
But what's that graphing software? I want to see how bad my code is.
6
u/Comic_Melon 23d ago
This is hardly spaghetti code
8
u/fibojoly 23d ago
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 23d ago
This is just Septabee but for code.
4
u/Flat_Initial_1823 23d ago
We should pour aluminum to get a cast of it
4
u/The_Fresh_Wince 23d ago
Think lasagna. Layers.
7
u/SaneLad 23d ago
Bro that's not code. That's a Large Hadron Collider result.
3
u/PusheenHater 23d ago
We'll no longer have this since Epic deprecated blueprints.
3
u/lsm-krash 23d ago
"code"
3
u/warpspeedSCP 23d ago
US military presentation slide be like:
2
u/Mrpuddikin 23d ago
hypergamy
2
u/ZetaformGames 22d ago
This is why I'm not a fan of node based programming...
2
u/ImPlento 21d ago
That's just a normal UE5 node graph
2
u/javaman1025 21d ago
Hey who leaked my source code???
3
u/r2_adhd2 23d ago
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 23d ago
LGTM
1
u/Skyswimsky 22d ago
Doesn't say much without visualization of "clean" code as comparison
1
u/DecisionOk5750 22d ago
You should see a node-red automation...
1
u/muminisko 22d ago
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 22d ago
Most sane and clean LabVIEW code be like:
1
u/meinkr0phtR2 20d ago
Ah, your average database.
1
u/ChexterWang 19d ago
r/programminghorror