C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Good Programming Techniques?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
JoeC
Guest





PostPosted: Thu Feb 16, 2006 8:06 pm    Post subject: Good Programming Techniques? Reply with quote



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.
Back to top
Daniel T.
Guest





PostPosted: Thu Feb 16, 2006 8:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote



In article <1140117486.060105.217890 (AT) z14g2000cwz (DOT) googlegroups.com>,
"JoeC" <enki034 (AT) yahoo (DOT) com> wrote:

Quote:
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.

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.
Back to top
Victor Bazarov
Guest





PostPosted: Thu Feb 16, 2006 8:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote



JoeC wrote:
Quote:
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.

Quote:
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.

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
Back to top
Neil Cerutti
Guest





PostPosted: Thu Feb 16, 2006 8:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

On 2006-02-16, JoeC <enki034 (AT) yahoo (DOT) com> wrote:
Quote:
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.

_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
Back to top
Phlip
Guest





PostPosted: Thu Feb 16, 2006 10:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

JoeC wrote:

Quote:
www.planetsourcecode.com

They don't list Python or Ruby, and then they list "Java/JavaScript" as the
same category.

Chills.

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
Back to top
JoeC
Guest





PostPosted: Thu Feb 16, 2006 10:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

I posted some of what I am working on for some advice. The stuff
dosn't work as I would like but it is still a work in progress. I also
know that unerstanding syntax is paramount but many of the programming
books are massive tomes that don;t lend themselvs to sequential study
but are good refrences if you know what you want to look up. A good
example was that I missed the extern command and how it works and some
advice dramatically improved my program and some of the debugging is
was doing. I still have a ways to go.

I have written several programs in Perl and C++ and they are posted at
www.planetsourcecode.com. I always read the advice I get very carfully
because appreciate the time it takes to respond to what I post. I also
would like to help those who I can.
Back to top
Puppet_Sock
Guest





PostPosted: Fri Feb 17, 2006 12:06 am    Post subject: Re: Good Programming Techniques? Reply with quote

Daniel T. wrote:
[snip]
Quote:
I suggest you read the following books in order:

"Large-Scale C++ Software Design" by John Lakos.
[other books snipped]


I liked this book. But I would very much like to see it updated
to include the more modern aspects of C++. (Unless it has
been so updated, in which case somebody please grab the
clue bat and en-clue me abruptly.) For example, it didn't
have much to do with templates and the STL and such
like considerations.
Socks
Back to top
Art Stamness
Guest





PostPosted: Fri Feb 17, 2006 12:06 am    Post subject: Re: Good Programming Techniques? Reply with quote

I was privileged enough to see John Lakos present at the C++ Developers
Conference in Vegas this last october, and was given a teaser chapter
from : "Large Scale C++ Software Development".

Notice the last work is Development, not Design. There is a focus on
Test Driven Development, and other larger scale issues when working
with C++ code in larger projects, than just the practical inheritance,
dependencies, and linkage issues he focused on in the first book.

-Art
Back to top
Phlip
Guest





PostPosted: Fri Feb 17, 2006 12:06 am    Post subject: Re: Good Programming Techniques? Reply with quote

Puppet_Sock wrote:

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

I liked this book. But I would very much like to see it updated
to include the more modern aspects of C++. (Unless it has
been so updated, in which case somebody please grab the
clue bat and en-clue me abruptly.) For example, it didn't
have much to do with templates and the STL and such
like considerations.

The core of that book - inside all the ultimately irrelevant guidelines - is
the methodology that produced the guidelines.

Read between the guidelines.

And read /C++ Coding Standards/ by Sutter & Alexandrescu a modern checklist.

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
Back to top
Bob Hairgrove
Guest





PostPosted: Fri Feb 17, 2006 12:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

On 16 Feb 2006 11:18:06 -0800, "JoeC" <enki034 (AT) yahoo (DOT) com> wrote:

Quote:
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.

For more basic C++ things, definitely read everything you can find
written by Scott Meyers: especially "EFfective C++", "More Effective
C++" and "Effective STL". Also, all the other books mentioned in this
thread are important to read...especially the "Design Patterns" book
as well as just about anything written by Martin Fowler.

Finally, google for "Rational Unified Process" or "RUP". Lots of
software companies use this methodology in their projects. Doesn't
hurt to know what it's all about, even if you don't end up doing
something exactly that way. Of course, RUP isn't specifically about
writing programs in C++, but consists of guidelines of general
principles which can be applied to every programming language. There
are links on the IBM web site to papers (PDF and HTML) with extensive
documentation which can be viewed for free.

--
Bob Hairgrove
NoSpamPlease (AT) Home (DOT) com
Back to top
Axter
Guest





PostPosted: Fri Feb 17, 2006 12:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

JoeC wrote:
Quote:
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.

The following book is a good place to start:
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices {Herb

Sutter, Andrei Alexandrescu}

I also recommend the following books:

Effective C++ by Scott Meyers
More Effective C++ by Scott Meyers
Exceptional C++ by Herb Sutter
More Exceptional C++ by Herb Sutter
Effective STL by Scott Meyers
Programming languages - C++ STANDARD ISO/IEC 14882:1998(E)
C++ Programming Language Special Edition, The by Bjarne Stroustrup
Efficient C++ by Dov Bulka & David Mayhew
Modern C++ Design by Andrei Alexandrescu
Back to top
Marcelo Pinto
Guest





PostPosted: Fri Feb 17, 2006 6:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

Bob Hairgrove escreveu:

Quote:
On 16 Feb 2006 11:18:06 -0800, "JoeC" <enki034 (AT) yahoo (DOT) com> wrote:

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.

For more basic C++ things, definitely read everything you can find
written by Scott Meyers: especially "EFfective C++", "More Effective
C++" and "Effective STL". Also, all the other books mentioned in this
thread are important to read...especially the "Design Patterns" book
as well as just about anything written by Martin Fowler.

Also anything by Herb Sutter, Nicolai Josuttis and Andrei Alexandrescu.

Quote:

Finally, google for "Rational Unified Process" or "RUP". Lots of
software companies use this methodology in their projects. Doesn't
hurt to know what it's all about, even if you don't end up doing
something exactly that way. Of course, RUP isn't specifically about
writing programs in C++, but consists of guidelines of general
principles which can be applied to every programming language. There
are links on the IBM web site to papers (PDF and HTML) with extensive
documentation which can be viewed for free.

In this line of indications I would also suggest:

- Agile Software Development: PPP by Robert Martin
- Applying UML and Patterns by Craig Larman

Quote:

--
Bob Hairgrove
NoSpamPlease (AT) Home (DOT) com


HTH,

Marcelo Pinto.
Back to top
JoeC
Guest





PostPosted: Sat Feb 18, 2006 6:06 am    Post subject: Re: Good Programming Techniques? Reply with quote

I guess there is quite a bit out there. I realy havn't had any formal
programming training only what I learn out of books. I wonder how
useful class would be but I think would be more helpful would be
knowing other people who know somthing about programming and the
exchange of ideas. I is very challenging trying to learn all of this
on my own. I think I will take a break for a while untile I get some
ideas for programs. I am going to have to come up with a better way of
writing my current project or come up with an idea for a new project.

I always like to ask what are some tips and tricks to learning
programming? Reading through those large tomes or are there some
resources better than others?
Back to top
Daniel T.
Guest





PostPosted: Sat Feb 18, 2006 4:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

In article <1140241304.144620.319780 (AT) z14g2000cwz (DOT) googlegroups.com>,
"JoeC" <enki034 (AT) yahoo (DOT) com> wrote:

Quote:
I guess there is quite a bit out there. I realy havn't had any formal
programming training only what I learn out of books. I wonder how
useful class would be but I think would be more helpful would be
knowing other people who know somthing about programming and the
exchange of ideas. I is very challenging trying to learn all of this
on my own. I think I will take a break for a while untile I get some
ideas for programs. I am going to have to come up with a better way of
writing my current project or come up with an idea for a new project.

I always like to ask what are some tips and tricks to learning
programming? Reading through those large tomes or are there some
resources better than others?

I haven't had any formal training either. Actually, that isn't true, but
my formal training came *after* I learned how to program.

Write lots of programs, even trivial stuff. If you see someone else's
program and you think you could write something like it, do it. Also,
help all the college students in this group (and comp.lang.learn.c-c++)
with their homework. Do the homework yourself, and then give them hints
that you think will lead them to the answer.

--
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.
Back to top
Guest






PostPosted: Sat Feb 18, 2006 5:06 pm    Post subject: Re: Good Programming Techniques? Reply with quote

JoeC wrote:
Quote:
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.

One of the most important aspects of building large systems is physical
design. Physical design focuses on building software from a
fine-grained hierarchy of reusable components, packaged into a
hierarchy of libraries. There is no better book (perhaps no other book)
explaining physical design than Lakos' Large-Scale C++ Software Design.
Some of the more interesting chapters describe techniques for
re-factoring software to break dependencies between comonents caused by
common misimplementations such as improper encapsulation and
long-distance friendships.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.