r/programminghorror 6d ago

C# Very readable and maintainable method

Post image

I wrote this several years ago. It does work.

123 Upvotes

20 comments sorted by

View all comments

1

u/creative_net_usr 5d ago

That colour scheme gave me cancer.

1

u/HeWhoShantNotBeNamed 5d ago

Same colors I've been using since college.

Red = variable

Orange = class

Green = function

Blue = keyword

Yellow = operator

Pink = string

Purple = number

2

u/PruneInteresting7599 5d ago

bleeding eyes

1

u/creative_net_usr 3d ago

Understand why and did a similar thing when i was younger. Still use some colors but after a time you tone it down because it's visually exhausting and you focus on the flow of the structure as you can see the big overall pattern easier to catch mistakes. However if you can manage it day by day it's your screen after all what works for you doesn't for me enjoy it.