57 karma · joined Oct 9, 2011 (15y ago) · 22 submissions
comment 10y ago · link · parent
The fact that Internet trolling has become commonplace doesn't make it acceptable. I don't say that just because it damages the emotions of the victim but because it tends to warp the minds of those that perpetrate it.
To the OP I would say that she should be extremely careful in trying to tackle this herself which is what she sounds like she is trying to do. I wish the best for both her and Chris.
comment 11y ago · link · parent
if (std::find(container.begin(), container.end(), element) != container.end())
My fingers are now cramping and my eyes are crossing trying to read that. It beggars belief that overloads don't exist which take an entire range which is all I want to do 99% of the time.comment 12y ago · link · parent
I would argue that it is better than C for its safety features alone. I hope in the future we look back at this decade with its never ending stream of buffer overflow vulnerabilities with disbelief that we could use something so insecure for something so vital.
comment 12y ago · link · parent
template <typename Collection,typename unop>
void for_each(Collection&& col, unop op){
std::for_each(col.begin(),col.end(),op);
}
I'm happy to see more people reading Bartosz, I find his blog very interesting. One point to emphasise about that particular post is that the proposed range library he discusses is already available today, and has been for some time, in the much overlooked boost.Range library.comment 12y ago · link · parent
comment 12y ago · link · parent
if (!arg1 || !arg2 || !arg3 ...) {
what_I_should_do_here_isnt_really_clear();comment 12y ago · link · parent
What the hell is this https://people.gnome.org/~dodji/vids/variable-tooltip.ogg ? It's supposed to be showing off how amazing the inspect variable tooltip is but I still have to dig through a veritable warren of template members just to find the underlying value. At least tell me I can write and install my own pretty printers if needed.
comment 12y ago · link · parent
In fact exceptions as implemented in C++ has to be one of my last favourite things about the language. They are an all or nothing proposition and yet were put in half heated and unchecked. Many years later the result I see is some or most programs have a catch(...) at some high level. Something went wrong, who knows what, can't even set the debugger to break at exceptions because they're being thrown everywhere all the time for flow control.
comment 12y ago · link · parent
I say this from the point of view of someone having to debug your code: "OK so step, step, step, run to this line... wait, what? How did this function return when there is no return statement? Let me run that again from the beginning... ... ... What? This ASSERT macro doesn't actually assert it just returns?"
Keyboard out window etc.
Please stick to language conventions. Macros are bad because they hide what the code is actually doing.
comment 13y ago · link · parent
When I have to use a desktop without this functionality I am now painfully aware of how cumbersome and slow the old behaviour was when I have plenty of windows open.
comment 14y ago · link · parent
Needless to say I don't play any more.
comment 15y ago · link · parent