`
stephen80
  • 浏览: 106345 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

learning c++

    博客分类:
  • c++
阅读更多
C++ idiom
--especially for java programmer


一. Four program paradigms
  Procedure, Object oriented , generic, stl .

二. Resource management
RAII , Resource acquisition  is initialization


三. Also prefer abstract interface
But, Not all type need to be defined by pure abstract class.
   A concrete type is the simplest kind of class ,Where applicable, prefer a concrete type over more complicated class.
  Avoid fat interfaces;

四. Be suspicious of none const reference arguments
  if you want the function to modify its arguments,use pointers and value return instead
五. Prefer none member function for operations that do not need access to the representation
Such as utility class .

六. Don't throw exception to outward module
Use error code to signal error.

七. Be familiar with stl methodology
Iterator  :
  The STL separates data structures and algorithms by using iterators as the interface .
   In general, iterators do not know their containers.
sequence  .
For_each
八. Strategy via function object
callable entity .function object .
std::tr1:function .
九. Be aware of difference between value  from reference and (smart) pointer
十. Be cautious about introducing implicit conversions
十一. Be careful of overloading decision
十二. Be aware of None virtual Interface (NVI) pattern
十三. Be aware of template meta programming
十四. Prefer Multiple Header Files
十五. Don't assume that every exception is derived from class e x c e p t i o n


Reference :

《The C++ Programming Language》简称TCPL
《Effective C++ 3rd》 简称EC,C++程序员必读!如果我有权招聘程序员的话,没有读过这本C++"圣经"的人,大概...很多时候,我们说C++圣经不是指TCPL,而是这一本。 
《C++ Coding Standards: 101 Rules, Guidelines, and Best Practices》简称《C++ 编程规范》,个人认为,这是C++程序员必备的案头书。

《Exceptional C++》和《More Exceptional C++》。新书《Exceptional C++ Style》也是值得一看的好书。 


《The C++ Standard Library a tutorial and reference》听说过STL吗?这本书会教你最基本的,也是最重要的STL的使用。

《Generic Programming and the STL: Using and Extending the C++ Standard Template Library》,中文名称《泛型编程与STL》。这本书理论性较强,但是...但是真的很严谨,而且并不是非常难懂。理解其中对于Concept的解 释,将是非常重要的。

《Effective STL》会使用STL还不够,还必须知道什么时候选择什么STL组件,这是STL使用的必读书。

《morder c++ design : generic programming and design pattern 》。
《C++ Template》在阅读STL、Boost或者Loki的源代码之前,请仔细阅读本书,它可以减轻一些阅读的烦恼。这本书是谈论C++模版的权威

《more c++ idiom》 http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms

<comparison java and cpp>
http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B



分享到:
评论

相关推荐

    Learning C++ by Building Games with Unreal Engine 4-2nd-20190701.epub

    Learning C++ by Building Games with Unreal Engine 4: A beginner’s guide to learning 3D game development with C++ and UE4, 2nd Edition by Sharan Volin--July 1, 2019 English | 2018 | ISBN: 1788476249 |...

    Learning C++ Functional Programming

    Learning C++ Functional Programming by Wisnu Anggoro English | 10 Aug. 2017 | ISBN: 1787281973 | ASIN: B06WVD7CVT | 304 Pages | AZW3 | 2.4 MB Key Features Modularize your applications and make them ...

    Learning C++ Functional Programming epub

    Learning C++ Functional Programming 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Learning C++ by Creating Games with Unreal Engine 4.pdf

    《学习C++通过创建Unreal Engine 4游戏》是一本专为希望掌握C++编程语言并利用Unreal Engine 4开发游戏的初学者和进阶者设计的书籍。Unreal Engine 4是一款强大的游戏开发引擎,由 Epic Games 开发,支持多平台游戏...

    Learning C++ by creating games with UE4

    Unreal Engine 4 is used to create top notch, exciting games by AAA studios, and learning to program in C++ needs some serious motivation. Learning C++ by Creating Games With UE4 will start with the ...

    Learning C++ Functional Programming_Code zip

    Learning C++ Functional Programming_Code 英文zip 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Learning C++ by Creating Games with UE4

    本书《Learning C++ by Creating Games with UE4》是一本关于C++编程和Unreal Engine 4(UE4)游戏开发的入门资料,由经验丰富的C++程序员William Sherif撰写。William Sherif具备超过8年的编程经验,其涉猎领域广泛...

    Learning C++ Functional Programming azw3

    Learning C++ Functional Programming 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Learning.C++.by.Creating.Games.with.UE4.Code.zip

    在“Learning.C++.by.Creating.Games.with.UE4.Code.zip”这个压缩包中,我们可以推测它包含了一系列关于使用C++在虚幻4中开发游戏的教程代码。通过这些代码,学习者可以逐步理解如何利用C++在虚幻4环境下创建游戏。...

    Learning.C .by.Creating.Games.with.UE4

    通过阅读《Learning C++ by Creating Games with UE4》2015版的PDF文档,你可以学习到: 1. C++基础知识:变量、数据类型、控制结构、函数、类和对象。 2. UE4的基本操作:安装、项目设置、资源管理、编辑器界面。 3...

    Learning.C++.by.Creating.Games.with.UE4.2015.pdf

    Learning.C++.by.Creating.Games.with.UE4.2015.pdf Learning.C++.by.Creating.Games.with.UE4.2015.pdf Learning.C++.by.Creating.Games.with.UE4.2015.pdf

    Learning C++

    Free unaffiliated eBook created from Stack Overflow contributors,including many aspects of C++ and C++ new standard

    Learning C++ by Creating Games with Unreal Engine 4

    ### 学习C++通过创建Unreal Engine 4游戏 #### 概述 《通过创建Unreal Engine 4游戏学习C++》是一本专为希望掌握C++编程并通过实际项目来提升技能的学习者设计的书籍。作者William Sherif拥有超过8年的编程经验,...

    Learning Standard C++ as a New Language

    its a good reference for learning c++

    Learning C++ by Creating Games with UE4.rar_C++_Creating_creatin

    学习C ++编程与一个有趣的,现实世界的应用程序,让您创建自己的游戏!

    (虚幻4中的C++)Learning.C .by.Creating.Games.with.UE4.2015

    本书《Learning C++ by Creating Games with UE4》主要介绍了如何利用C++语言在虚幻引擎4(Unreal Engine 4,简称UE4)中开发游戏。书中内容虽然以英文撰写,但叙述风格幽默且易于理解,适合不同层次的读者学习。 #...

Global site tag (gtag.js) - Google Analytics