This must be what they mean when they talk about American exceptionalism.
- 0 Posts
- 3 Comments
Joined 8 months ago
Cake day: April 13th, 2026
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
TiredDinoByte@lemmy.todayto
Programming@programming.dev•Discussion: Programming conventions for On/Off functions. Singular or separate?
1·3 months agoI disagree, that it is mostly preference. I agree that it has been implemented both ways, but once you get into the scalability question, it becomes clear that passing in an argument cuts down on the logical branching. If you have both an enable and a disable function as your pattern, then for components you need to reason about state for during runtime will need an if/else which can get out of hand quickly when you are driving multiple component states.

He wishes he could sing…