Death by 1000 Programming Sins

Pages: 1... 567
Jun 16, 2011 at 8:41pm
closed account (3hM2Nwbp)
Albatross wrote:
Hah! I only hop with one foot on the newest techniques!


Be sure to poke it with a stick first to see if it'll bite you before using your foot.
Jun 20, 2011 at 7:19am
167. Enums with two values where a bool would have sufficed. Unity3D has one, SendMessageOption with values RequireReciever and DontRequireReciever.
Jun 20, 2011 at 7:56am
What's the problem with that? It certainly beats magic numbers.
Jun 20, 2011 at 8:43am
It would be easier to have the third argument in that Method 'bool requireReciever' so I could write false rather than SendMessageOption.DontRequireReciever. It's probably just me, I have bad eyesight and zooms in, and I dislike horizontal scrolling.
Last edited on Jun 21, 2011 at 2:50pm
Jun 23, 2011 at 11:48am
168. Typing = instead of ==, or vice versa.
Jun 27, 2011 at 6:50pm
@GisleAune,
Maybe they want to add options later, although in your case it does sound like a bool would be alot better.
Topic archived. No new replies allowed.
Pages: 1... 567