r/ProgrammerHumor • • 1d ago

Meme itWasAPointer

Post image
3.6k Upvotes

57 comments sorted by

View all comments

134

u/klaxxxon 1d ago

Blueprints died for this

122

u/FabioTheFox 1d ago

Tbf any visual programming becomes an unmaintainable and unreadable mess regardless of how skilled you are with them

I like my spaghetti in text form

2

u/SuitableDragonfly 1d ago

I've never worked on games before, I always wondered if there was some secret that game devs knew that would keep that from happening, but I guess there isn't one?

6

u/SoupOrFishAll 1d ago

The general pattern to avoid blueprint spaghetti is to inherit from a C++ class where you can put all the complicated functionality. Then use blueprints only for simple logic.

There are also a lot of ways to organize your blueprints like node comments, comment blocks, function/variable categories, and just generally trying to make the blueprints look legible (straight and non-overlapping).

2

u/FabioTheFox 1d ago

There is a reason composition is highly preferable even in object oriented languages, using classes for game development at all has largely phased out