Monday, February 6, 2012

Saturday, December 31, 2011

rate your c++ skills from 1 to 10

常常會聽到你對c++了解有多少
如果從1~10分
你會給你自己打幾分

自己大概列出了我心中的評分標準


  1. knows well about C
  2. knows well about OOP, operator overloading, exception handling
  3. knows about how to use STL
  4. knows well about template
  5. knows well about 'Design Pattern'
  6. knows well about the Design and Implementation of STL, Loki and Boost
  7. knows well about the whole language design
  8. knows well about Compiler Design and Implementations, Optimization, and Code-generation (Assembly)
  9. knows well how to design by using C++
  10. Master

Wednesday, November 23, 2011

function template

function template 與class template不同的地方在於

  1. function template有type deduction 
  2. function template 沒有 default template argument
  3. function template 沒有 partial specialization 

Thursday, November 17, 2011

Tuesday, November 15, 2011

LOCAL_DEX_PREOPT

今天抓了Icecream 的AOSP
然後隨便build一個apk
發現apk竟然不能裝
INSTALL_FAILED_DEXOPT

發現apk裡的classes.dex不見了
跑到外面來變odex

看了一下build system的code
原來是新的要加上 LOCAL_DEX_PREOPT := false
他才不會幫你作pre-dexopt的動作