13
dprimax
3y

This i found today, thought the guy who created both method was drunk at that time.

Comments
  • 1
    Why is this bad ?
  • 0
    This reminds me of react
  • 0
    @undefinedUser I'm not saying this bad, I was saying the guy was drunk
  • 0
    If primary is a private variable, this is honestly the way I'd put it! In C# you have properties with different accessor modifiers, for a cleaner code, but otherwise I don't see no issues :)
  • 1
    @7Raiden it's a static variable / class variable. doesn't make much sense at least in this context
  • 1
    It makes sense to have methods named like this instead of doing `primary` or `!primary` in the code. It's considered more readable, where I come from at least.
Add Comment