FashGek / hotween

Automatically exported from code.google.com/p/hotween
0 stars 0 forks source link

Coding style: Automatic properties #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
You probably are not aware of C# automatic properties which greatly reduce the 
amount of typed code but have the exact same compiled output. Though this one 
need to be checked by you if its correct like that.

Original issue reported on code.google.com by stfxm...@gmail.com on 31 Mar 2012 at 12:50

Attachments:

GoogleCodeExporter commented 9 years ago
Will go through this later. Actually I knew about automatic properties, but I 
decided not to use them because of readability (I'm already having a hard time 
getting used to all the changes done :P)

Original comment by daniele....@gmail.com on 31 Mar 2012 at 2:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry for changing your code beyond recognizability - this is what you love 
about teamwork I guess? ;)

Original comment by stfxm...@gmail.com on 31 Mar 2012 at 2:36

GoogleCodeExporter commented 9 years ago
Ahaha yes and no. With ActionScript, I was the one harassing everybody with 
correct coding style (and in that case I actually knew more than the other 
people involved, whose coding style was usually a lot more horrible than mine), 
thus I won in the end. It's just bad being on the other side now :D

Original comment by daniele....@gmail.com on 31 Mar 2012 at 2:43

GoogleCodeExporter commented 9 years ago
P.S. at least you made my current touchscreen job more entertaining: it feels 
like staying in a cozy coding environment, whereas here a mutated code is 
awaiting me to adapt :D

Original comment by daniele....@gmail.com on 31 Mar 2012 at 2:45

GoogleCodeExporter commented 9 years ago
Made some tests. Automatic properties are - slightly - less performant than 
using fields directly, so it's better to use fields internally, and create 
regular accessors just for the public API.

Original comment by daniele....@gmail.com on 16 Apr 2012 at 8:18