473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Code snippets etc...

Apologies for way OT q
There are a multitude of ways to code the same logic in C++.
Are there are some snippets on the book/web library perhaps, that
reflect / capture really good programming practices (C++)? Are there
some pieces that you veterans out here have looked at and said "wow
this is a cool implementation"? Any recommendations ? Books ? URL's?
some open source modules ?
This is for an intermediate C++ programmer hoping to broaden one's
coding skills.My emphasis is more on elegance than raw smarts

Adv thx

Sep 10 '05 #1
4 1172

"Suma" <su********@yahoo.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Apologies for way OT q
There are a multitude of ways to code the same logic in C++.
Are there are some snippets on the book/web library perhaps, that
reflect / capture really good programming practices (C++)? Are there
some pieces that you veterans out here have looked at and said "wow
this is a cool implementation"? Any recommendations ? Books ? URL's?
some open source modules ?
This is for an intermediate C++ programmer hoping to broaden one's
coding skills.My emphasis is more on elegance than raw smarts


IMO in programming, one should not be concerned with
'elegance', however attractive such a notion might be.
Instead concentrate on clarity (readability), maintainability,
and robustness.

Try the books by Scott Meyers (Effective C++, More Effective C++,
Effective STL), and Herb Sutter (Exceptional C++). They should
be easy to find with google, and available from most booksellers,
both online and off.

Also see the book reviews at www.accu.org

-Mike
Sep 10 '05 #2
> IMO in programming, one should not be concerned with
'elegance', however attractive such a notion might be.
Instead concentrate on clarity (readability), maintainability,
and robustness.


....which altogether constitutes elegance...
Sep 10 '05 #3
"benben" <moc.liamtoh@hgnohneb read backward> wrote in message
news:43***********************@news.optusnet.com.a u...
IMO in programming, one should not be concerned with
'elegance', however attractive such a notion might be.
Instead concentrate on clarity (readability), maintainability,
and robustness.


...which altogether constitutes elegance...


Agreed. When I look at C++ code I can either read it very easy (almost like
a book) or have to pick over each varible, letter, etc.. to figure out what
is going on.

What I tend to do is code something, then go back over it and read it and
figure out how easy it is will be for me to figure out what I was doing a
year from now.

Seriously, one time I revisted a piece of code I had written a year prior
(this was many many many years ago) and it took me 3 hours to figure out 5
lines of (my own) code. Since then I've learned.
Sep 11 '05 #4
Guys
Thanks I am aware of both these books - I am looking for something
different. I am looking for some non trivial implementation than
snippets of code- For eg a framework like STL for collection classes,
Document/View architecture in MFC etc - ( I list this because i am
aware of certain methodologies can "lift") - which is fairly large
chunks of code. Your mileage may vary but this is the way i would
prefer to go...

Sep 11 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Aurélien Géron | last post by:
Hi, Does anyone know where I can find a lot of Python code snippets? I searched the Python wiki and Internet but could not find more than five or ten code snippets at a time. I'm looking...
8
by: asmirnov1234567890 | last post by:
Hi I'd like to place this code to C++ code snippets site. Does anyone know about where is could be? Andrei Smirnov ======================================= // // example of how to strip...
2
by: - Steve - | last post by:
I'm working on my asp.net site and I'm wondering what the best way to reuse little snippets of code is? Right now I have a Class in it's own cs file that I call Snippets. Then when I want to...
2
by: Steve Franks | last post by:
I'm using VS.NET 2005 beta 2 and am excited about the idea of using code snippets. This is a nice time saver. For example I need to read all text from a file, and see that with a simple command...
5
by: Thomas | last post by:
hello, what is the best way to store code snippets? Is there a good plugin available or another good app? thomas
3
by: kai | last post by:
Hi, Base on MSDN help, in VS2005 IDE, select "Tools -> Code Snippets Manager", but I cannot find "Code Snippets Manager" under "Tools" menu. Also I noticed when I insert snippets in C#, it has...
10
by: Jak | last post by:
Hi, all, I am wondering if there are any addons for VB.NET 2005 to complete the codes automatically after I entered two or three characters, just like Delphi does. Thanks, Jack Zhong
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
1
by: StreamLogic | last post by:
All, I have posted this question in various groups, so I apologize for any overlap. I'd like to hear how other developers/architects keep track of old scripts, code snippets, relevant URLs,...
2
Frinavale
by: Frinavale | last post by:
I'm attempting to supplement the help for my code by providing other developers with code snippets that demonstrate how to use my classes/method. I've created a .snippet file and have placed it in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.