the question you linked to shows in two examples where it makes sense to me and where not. the auto x = new .. is clearly better and does not loose information when reading. but the auto iterator: i'd rather know it's iterating on a vector right there.
again, this is a concern only for reading code, for writing auto is always great
@starmole No, no, I mean how can the surrounding code be using a vector, that it is a vector and not some other container matters, and you don't know the type?
And naming is great for reading code. Noise isn't.
If anything, it's not std::map<std::string, std::pair<std::string, std::tuple<int, int, float>>>::iterator that you care about. It's "the iterator of that thing over there".
@R.MartinhoFernandes ..or you are doing maintenance, trying very hard to get some obscure bug fixed quickly and are really pissed off that you cannot see var types, or even whether they are references or not, in the humungous function you have just breakpointed in..
@R.MartinhoFernandes Indeed thay are, so I need all the help I can get :) I cannot refactor entire apps in the time available for bugfixing, even though I often desperately want to :)
I adhere to the almost-always-auto style. But it can lead to subtle errors. For example if your function returns a nested future (and you did not expect this). Calling .get() on the result will only block until the outer operation has finished.
Oh, Im getting fucking tired of these 'my app does not work but I cannot post any code and I cannot debug': http://stackoverflow.com/questions/19419779/exe-size-increases-when-receive-packet-size-is-0
We are happy to announce that Visual Studio 2013 is now available. Download Visual Studio 2013. Discover What's New for Visual Studio 2013. Read the formal announcement on Soma's blog. Check the system requirements and platform compatibility. Build an extension for Visual Studio 2013. Provide feedback! Visit Connect to report bugs, UserVoice for suggestions, forums for Q&A, Send-a-Smile f…
Reversing an immutable data structure in place would be a contradiction in terms; so instead we must define a reverse function that takes a list and returns its reversal.
> Every telescope should have a laser, regardless of whether or not it would actually have any scientific benefit. The dishes of the Submillimeter Array in particular each need a laser. I think there will be widespread support within the photographic community for this upgrade, airplanes and satellites be damned.
Thanks sehe! for Answering! I am actually typing code in VI thru terminal but dnt know how to do change utf-8 in it. But later I opened it in gedit and found it to be utf-8 only hence no changes required. And thus the problem remains the same. Request youto give any other solution if any..? — dev roy6 mins ago
@TemplateRex Ah a prime number generator like no other
@R.MartinhoFernandes no it's pure marketing to differentiate themselves, otherwise they look bad if everthing they offer was available from gcc/clang 2 years ago
@R.MartinhoFernandes 'Metal' band, rather pleasing IMO, though I would probably describe them more as hard rock... more akin to Black Sabbath, though a lot less 'doom'
My project uses template metaprogramming heavily. Most of the action happens inside recursive templates which produce objects and functions with very long (mangled) symbol names.
Despite the build time being only ~30 sec, the resulting executable is about a megabyte, and it's mostly symbol names...