好的编程技巧? [英] Good Programming Techniques?

查看:70
本文介绍了好的编程技巧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过许多书籍,为C ++编写代码。有什么方法可以改善我编写大型程序的技巧。我已经写了很多

演示程序,学习代码的一些方面,它是动态的

绑定或创建函数,我理解大部分但是怎么能

我学习并运用技巧使我的程序更好。我试着用b $ b来学习我在我编写的课程中学到的课程。获得成功

C ++是我发现实际编写更好程序的最佳书籍。

I have seen many books that teack coding for C++. What are ways to
improve my techniques for writing larger programs. I have written many
demo programs learning some aspects of code wether it be dynamic
binding or creating function and I understand most of that but how can
I learn and employ techniques to make my programs better. I try to
employ the lessons I learn in the programs that I write. Acclerated
C++ is the best book I have found to actually write better programs.

推荐答案

2006年-02-16,JoeC< en ***** @ yahoo.com>写道:
On 2006-02-16, JoeC <en*****@yahoo.com> wrote:
我看过许多书籍,为C ++编写代码。有什么方法可以改进我编写大型程序的技巧。我已经写了许多演示程序,学习代码的某些方面,它是动态绑定还是创建函数,我理解大部分内容
但是我如何学习和运用技巧来制作我的程序<更好。我尝试在我编写的程序中学习我学到的课程。 Acclerated C ++是我发现的最好的书,实际上是用来编写更好的程序。
I have seen many books that teack coding for C++. What are ways to
improve my techniques for writing larger programs. I have written
many demo programs learning some aspects of code wether it be
dynamic binding or creating function and I understand most of that
but how can I learn and employ techniques to make my programs
better. I try to employ the lessons I learn in the programs that I
write. Acclerated C++ is the best book I have found to actually
write better programs.




_编程的实践_由Kernighan和Pike充满了

实用智慧。他们的大部分建议并非专门用于大型软件设计,但它绝对适用。


-

Neil Cerutti



_The Practice of Programming_ by Kernighan and Pike is filled with
practical wisdom. Most of their advice is not specifically for
large-scale software design, but it''s definitely applicable.

--
Neil Cerutti


JoeC写道:
我见过很多书籍,为C ++编写代码。有什么方法可以改进我编写大型程序的技巧。


如果这是一个问题(通常以问号结尾),

那么你可以在大型C ++软件中找到一些答案设计"通过

John Lakos。另外,请查看代码完成。作者:史蒂夫麦康奈尔。

我写了很多
演示程序,学习代码的某些方面,它是动态的
绑定或创建功能,我理解其中的大部分内容但是如何才能我学习并运用技巧使我的程序更好。我尝试在我写的课程中学习我学到的课程。成熟的
C ++是我发现的最好的书,可以实际编写更好的程序。
I have seen many books that teack coding for C++. What are ways to
improve my techniques for writing larger programs.
If this is a question (which usually should end with a question mark),
then you can find some answers in "Large-Scale C++ Software Design" by
John Lakos. Also, check out "Code Complete" by Steve McConnell.
I have written many
demo programs learning some aspects of code wether it be dynamic
binding or creating function and I understand most of that but how can
I learn and employ techniques to make my programs better. I try to
employ the lessons I learn in the programs that I write. Acclerated
C++ is the best book I have found to actually write better programs.




很难(在某些情况下不可能)教写 ;更好

节目。它经常伴随着经验(但令人沮丧的可能是声音)。我所知道的简单配方有三个要素:练习,练习和练习。有些人喜欢用同行代码评论来增添趣味,

但这取决于你。


V

- -

请在邮寄回复时从我的地址中删除资金



It is difficult (and in some cases impossible) to teach to write "better
programs". It often comes with experience (however frustrating that might
sound). The simple recipe I know has three ingredients: practice,
practice, and practice. Some like to spice it up with peer code reviews,
but that''s up to you.

V
--
Please remove capital As from my address when replying by mail


在文章< 11 ********** ************@z14g2000cwz.googlegroups .com> ;,

" JoeC" <恩***** @ yahoo.com>写道:
In article <11**********************@z14g2000cwz.googlegroups .com>,
"JoeC" <en*****@yahoo.com> wrote:
我看过许多书籍,为C ++编写代码。有什么方法可以改进我编写大型程序的技巧。我已经写了很多
演示程序,学习代码的某些方面,它是动态的
绑定或创建函数,我理解其中的大部分内容但是我怎么能学习并运用技巧使我的程序更好。我尝试在我写的课程中学习我学到的课程。成熟的
C ++是我发现的最好的书,可以写出更好的程序。
I have seen many books that teack coding for C++. What are ways to
improve my techniques for writing larger programs. I have written many
demo programs learning some aspects of code wether it be dynamic
binding or creating function and I understand most of that but how can
I learn and employ techniques to make my programs better. I try to
employ the lessons I learn in the programs that I write. Acclerated
C++ is the best book I have found to actually write better programs.




我建议你按顺序阅读以下书籍:


大规模C ++软件设计作者:John Lakos。


面向对象的设计启发式作者:Arthur J. Riel


设计模式:可重复使用的面向对象软件的元素 by

Erich Gamma,et al。


Refactoring:改进现有代码的设计作者:Martin Fowler,

等。 (Java中的例子,但仍然很棒。)


-

魔术取决于传统和信仰。它不欢迎观察,

也不会通过实验获利。另一方面,科学的经验基于
;它可以通过观察和实验进行校正。



I suggest you read the following books in order:

"Large-Scale C++ Software Design" by John Lakos.

"Object-Oriented Design Heuristics" by Arthur J. Riel

"Design Patterns: Elements of Reusable Object-Oriented Software" by
Erich Gamma, et al.

"Refactoring: Improving the Design of Existing Code" by Martin Fowler,
et al. (Examples in Java but still great stuff.)

--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.


这篇关于好的编程技巧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆