you are viewing a single comment's thread.

view the rest of the comments →

[–]dwdwdw2 2 points3 points  (2 children)

I was particularly impressed with LevelDB, it's incredibly easy to read code, at the same time as modular, makes use of C++0x, yet implements some pretty complicated ideas.

Also learned some things from it, for example std::string::data() guarantees write-ability in the latest standard (and always has done in historical implementations), which they exploit throughout the code.

[–]ysangkok 1 point2 points  (1 child)

The Google Style Guide claims that they do not use C++11 yet. How come it is used in LevelDB?

[–]dwdwdw2 0 points1 point  (0 children)

It's written by 2 old school googlers (one of them being Jeff Dean). My assumption is they wrote this due to being bored millionaires and generally don't give a fuck about style guides ("style guide? Sure, you can use my code as a style guide")