r/programming • • Apr 01 '13

Ten C++11 Features Every C++ Developer Should Use

http://www.codeproject.com/Articles/570638/Ten-Cplusplus11-Features-Every-Cplusplus-Developer
469 Upvotes

283 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Apr 02 '13

[removed] — view removed comment

1

u/nascent Apr 02 '13

And of course if a class has 20 fields, I damn well question what the hell the class is doing. ;) That is way too much state for me to be comfortable with!

That was my point, it wasn't knowing the fields were UINT32 and UINT64 that told you that you could remove them.

The question is, why did you decide you need to reduce the size of the struct? Did you see the 128 bits and say, "well that's too much?" Or did you notice, "I have a large number of this struct being sent to me in a short time, maybe I should make it smaller?"