3 ms·
It's funny, because those colors were clearly picked exactly because they have their positive and negative connotations, used as a metaphor for literally positi
by marcosdumay 4y ago
It's funny, because those colors were clearly picked exactly because they have their positive and negative connotations, used as a metaphor for literally positive and negative changes.
That's the same reason people use them on numbers too.
- secondcoming 4y agoBut deleting code (a red diff) is the most positive code change anyone can make
- Izkata 4y agoThink of it more as state instead of transition: The code in red was bad so it had to be replaced with the good green code.
- smegsicle 4y agothe cultural association makes it easier to parse- a red diff is clearly very good because lots of bad code (red) is being removed (red) if your boss looks at a red diff and thinks it's bad, that's a you and him problem, while the primary purpose for color syntax continues to be making it easier to parse for people who know what they're looking at
- marcosdumay 4y agoIt's literally negative. You are removing things. It may add value, so may be figuratively a very positive change. But not literally.