Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Avoid using magic number indexes in the node system

Open Keavon opened this issue 2 years ago • 2 comments

There are tons of fragile index values like 0, 1, 2, etc. used to reference inputs and outputs (amongst other things?) between nodes and node internals. This is extremely fragile, makes it hard to refactor, provides a difficult developer experience, lacks self-documenting clarity, and is hard to debug.

One potential solution could be using enums. But thinking through some alternative ways to achieve this could also be good.

Keavon avatar Dec 07 '23 13:12 Keavon

Hey Keavon,

I'd be interested in contributing to this. Any chance we can chat about this issue?

Thanks

Kakapio avatar Jan 19 '24 20:01 Kakapio

Hi @Kakapio, I don't think this issue is likely to be an easily-solved one that's easy for newcomers to jump on. But I'd encourage you to ask me on Discord for some advice about which issues you can get started with based on your background and I can direct you to some issues that are easier to begin with. Thanks!

Keavon avatar Jan 22 '24 08:01 Keavon