Posted on January 14th, 2010 at 17:35 by fr3@K
The issue with boost::decay documentation that I blogged about 10 days ago has been fixed in trunk.
The issue with boost::decay documentation that I blogged about 10 days ago has been fixed in trunk.
Did you know, for x is an integer, that -~x yields x + 1 and ~-x yields x - 1?
It is true that C++ provides programming constructs those consume more CPU cycles than it would when done without higher level of abstractions. But, hey, that’s the cost of abstractions, why pay when they are not needed?
Stop laying out your C++ design like Java. Avoid inheritance when possible. Don’t make every member function and destructor virtual without really thinking. They not only increase your run time overhead, they boost the complexity (read coupling) of your code like nothing else.
C++ does every C-style stuff the same way as C does. Not to mention it is capable of more compile time computation than C. I just fail to see how C++ could be slower than C in run time, seriously.
I’ve always wondered: What does the “Zw” prefix (of some NT kernel functions) mean?
As it turns out – nothing.
Okay. Asus, this move is not cool.
Perhaps it’s better without you, altogether. Bye.
Cited from: The Register.
In a recent post of Scott Wheeler’s – C and C++ are not the same language. He talked about differences between C and C++, and applications of different programming languages (C, C++, Java, Ruby) in his company.
In the post, Wheeler implemented observer pattern in C, C++ and Java, demonstrating some of his points – including how C and C++ are different from each other, and how C++ and Java are actually more alike.
Though I do agree with Wheeler’s conclusion for the most part, I failed to share his view in C, C++ and Java comparison. IMHO, his observer implementation in C++ is rather old school, or should I say it’s so Java.
Giorgio (author of NoScript) apologized and explained things from a somewhat different (i.e. his) perspective.
As Giorgio said himself, it was wrong and there is no excuse. Though, from a user’s point of view, I do not agree with his doings in this instance. However, from a geek’s (i.e. my) point of view, they were not unthinkable.
My take, Giorgio was hacking, not for the greater good obviously, but there was no intention to takeover the world (or helping bad guys doing so) neither. That is if it is his true thinking that he told us.
For now, I am keeping NoScript.
Users of NoScirpt, read this (in Chinese) and this (in English)!
I am researching for alternatives to NoScript, if anyone has any idea, please drop me a line.
[Update]
Author of NoScript apologized.
Not long ago, I blogged about how it was difficult to adopt Free libraries in my previous projects at work.
Just today, when I was exploring the compay repository, I see boost sits comfortably under a folder named “3rd_party” in one of my previous projects, along with a couple of tiny Free libraries I wrote.
Apparently, I was wrong and didn’t try hard enough. Going to find the man who made it happen and pay him my respect tomorrow.
This is a note to myself just in case if I have to do it again – installing a Review Board server.
The installation process took me more than a few hours and spanned over three days. Here are the few things that caused me a grief. They are things I managed to remember and are by no mean complete.
(more…)
Except where otherwise noted, COdE fr3@K by
fr3@K is licensed under a
Creative Commons Attribution-Share Alike 3.0 License.