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.
Would you trust someone who had not seen a patient for years to teach surgery? What would you think of a piano teacher who never touched the keyboard? A CS education must bring a student beyond the necessary book learning to a mastery of its application in complete systems and an appreciation of aesthetics in code.
這句話說得真好.
via: What Should We Teach New Software Developers? Why? – Bjarne Stroustrup.
前陣子看了 Hubert 的 一個 boost::exception 的例子, 猛然注意到自己不確定 boost::decay 的作用.
Did you know, for x is an integer, that -~x yields x + 1 and ~-x yields x - 1?
elleryq 的 這篇 blog post 談到的 ctor (換成 dtor 也一樣) 呼叫 virtual function 狀況 (或說是 problem) 會是很好的 C++ programmer 面試題目. 可在口試時用以窺探 interviewee 對 C++ object model 的了解.
(more…)
Very well put
當你發現回傳的是一個 char *,又沒有要求你特別 free 他,你是不是就該猜測他是回傳 function 內部的一個 static buffer 了呢?
A great read on how to properly teardown a connection of synchronous protocols (e.g. HTTP) on the server side.
via: SO_LINGER is not the same as Apache’s “lingering close”.
懶人包 + Bjarne on DDJ (翻譯), from Paramecium.
Great job! Thanks, Keiko.
幾個月前曾在一篇文字裡寫道: 正確的運用 Rvalue References, 有可能帶來可觀的 performance gain. 前幾天看到 Visual C++ Team Blog 新貼出對 STL (VS2010 vs. VS2008) 的 performance benchmark. 在一個程度上, 該篇文字可以說驗證了這個不只我一個人獨有的看法與對 C++0x 的期待.
Rvalue-References 帶來的 performance boost 或許比不上 Multi-Core STL 來得那麼 “方便”, 但絕對是你不會想要錯過的 low hanging fruit.
C++0x 的巨浪就要來了, 你準備好了嗎?
Except where otherwise noted, COdE fr3@K by
fr3@K is licensed under a
Creative Commons Attribution-Share Alike 3.0 License.