473,395 Members | 1,937 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,395 software developers and data experts.

What to learn?

I'd consider myself something of a c++ hobbyist. Rather, I program mainly
at a personal project level. I started learning when I was about twelve
years old (currently eighteen), reading various books I could find at the
local library. In 1999, when I learned about C++96, I realized that it
really wasn't a great idea to read from someone else's aging book heap. To
bring this somewhat off-topic post to a point, my c++ book knowledge to date
consists of:

Various trash books by filth publishers, i.e. teach yourself c++ in 24
hours, c++ for the clinically retarded...etc
Various implimentation-specific books on sockets, windows/mfc programming,
programming in a posix environment...etc.
"Extreme Programming In Action"
Stroustrup's "The C++ Programming Language"
Scott Meyer's "Effective C++", "More Effective C++", and "Effective STL".
Josuttis's "The C++ Standard Library"
Alexandrescu's "Modern C++ Design"

Recently, I've picked up, but have yet to read:
Robert Sedgewick - "Algorithms in C++", Parts 1-4 and Part 5
along with the GOF book.

I'm wondering what good books my shelf lacks, whether anyone can offer any
advice as to whether to pursue Algorithms or Patterns first, as either topic
isn't going to be at the top of my agenda and will take a very long time to
absorb. Any other tips to enrich my programming repetoire will be much
appreciated.
Jul 22 '05 #1
13 2324
> I'm wondering what good books my shelf lacks, whether anyone can offer any
advice as to whether to pursue Algorithms or Patterns first, as either topic isn't going to be at the top of my agenda and will take a very long time to absorb.


At the risk of sounding self-serving, I'd like to recommend "Accelerated
C++". Although you may find that much of the material in it is familiar, I
expect that you will probably also find it to be presented in a way that
offers new insight into how to program in C++.
Jul 22 '05 #2

"Walter Kalata" <pl****@ucwphilly.rr.com> wrote in message
news:QZ*********************@twister.nyc.rr.com...

Recently, I've picked up, but have yet to read:
Robert Sedgewick - "Algorithms in C++", Parts 1-4 and Part 5
along with the GOF book.

I'm wondering what good books my shelf lacks, whether anyone can offer any
advice as to whether to pursue Algorithms or Patterns first, as either topic isn't going to be at the top of my agenda and will take a very long time to absorb. Any other tips to enrich my programming repetoire will be much
appreciated.


Frankly, although the GOF patterns book was the first big one, and probably
rightly famous, I don't find it all that useful. I think the book is famous
more because it was a new book on a new topic than because it's easy to
read. I think there are some newer ones that might be better. Also, I
haven't read the algorithms book, but if it were me I might find that more
useful, depending on what I picked up when skimming it.
Jul 22 '05 #3
Walter Kalata wrote:
I'm wondering what good books my shelf lacks, whether anyone can
offer any advice as to whether to pursue Algorithms or Patterns
first, as either topic isn't going to be at the top of my agenda
Yes, you want to get something *done*, huh? :) Still, that attitude
might be a mistake. Besides the fact that many particular algorithms
in a book like Sedgewick's will come in handy once you got to know
about them, pondering their properties and why they work the way they
do -- i.e., Algorithmics -- can help tremendously in thinking about
your own programs in a clear and focused way. After all, those are
algorithms, unless they don't terminate ;) It will also lead to
figuring out some patterns all by yourself, and thus to a deeper
appreciation of the term "Pattern" (albeit on a different level from
what GOF talk about). No doubt you'll hit on quite a few things you
already knew, but only implicitly.
Any other tips to enrich my programming repetoire will be much
appreciated.


Looking at your reading list, I guess you're already acquainted with
the idea of functional programming in addition to the procedural and
OO mindsets. It is a nice thing to have in one's toolbox.
Martin
Jul 22 '05 #4
Walter Kalata writes:
Recently, I've picked up, but have yet to read:
Robert Sedgewick - "Algorithms in C++", Parts 1-4 and Part 5
along with the GOF book.


This advice is too late for you, since you already own the book, and you may
not like the advice anyway.

But I have a very firm belief that an algorithms book should be language
neutral, rather than the language du jour. The latter approach leads to
things like _Mathematical Recipes for Fortran_ and the various attempts to
make it pertinent in today's world. If the title is garbled, sue me, you
know what I mean.

Sedgwick has a language neutral version of his book so the advice *can* be
followed if one wishes.
Jul 22 '05 #5

"osmium" <r1********@comcast.net> wrote in message
news:br************@ID-179017.news.uni-berlin.de...

But I have a very firm belief that an algorithms book should be language
neutral, rather than the language du jour. The latter approach leads to
things like _Mathematical Recipes for Fortran_ and the various attempts to
make it pertinent in today's world. If the title is garbled, sue me, you
know what I mean.

Sedgwick has a language neutral version of his book so the advice *can* be
followed if one wishes.


On the other hand, there is also specific language idioms that he would
probably want to learn.
Jul 22 '05 #6
On the other hand, there is also specific language idioms that he would
probably want to learn.


I was hoping to try to tackle Knuth's series in the future, and correct me
if I'm wrong, but I doubt that any algorithms I choose (or with the
libraries of this day and age, need) to impliment from Sedgewick's C++
Algorithms book would even remotely resemble his sample code, and will be
built from the textual explaination on how they function, with the code
sample used more or less as something to double-check with. Couldn't this
apply to writing the sample code in the language of tomorrow's day?
Cross-referencing the code with C++ would probably only make it easier to
understand, especially because at this point C++ is the most natural
language for me to analyze and fathom, as opposed to pseudo-code, or worse,
machine code for a pseudo-processor.
Jul 22 '05 #7
Walter Kalata writes:
I was hoping to try to tackle Knuth's series in the future, and correct me if I'm wrong, but I doubt that any algorithms I choose (or with the
libraries of this day and age, need) to impliment from Sedgewick's C++
Algorithms book would even remotely resemble his sample code, and will be
built from the textual explaination on how they function, with the code
sample used more or less as something to double-check with. Couldn't this
apply to writing the sample code in the language of tomorrow's day?
Cross-referencing the code with C++ would probably only make it easier to
understand, especially because at this point C++ is the most natural
language for me to analyze and fathom, as opposed to pseudo-code, or worse, machine code for a pseudo-processor.
What I see you saying is that you prefer n%m to n mod m. How do you feel
about *a++?

C, and especially C++, are ugly, cryptic, obfuscating languages with some
plug ugly idioms. C++ is loaded with booby traps, which Sedgewick has to
provide work arounds for if he did a workman like job. (I don't know if he
did or not, I have both the C++ version and the language neutral version, I
always use the latter. BTW I am not particularly fond of either of them, I
just happen to have them.) As said upstream, no one is proposing you return
the book you already have. I would lean towards Cormen if I were just
starting out and had to use a book that is currently in print. Or look
through used books, I am sure a good source of used books would have
something *I* would like better than either of these (Cormen, Sedgewick).
Wirth is at least along the lines of what you want, I assume it is out of
print. My working hypothesis is that most good books are out of print. My
post was mostly meant to assist lurkers, not you.
or worse, machine code for a pseudo-processor.


You are going to *love* Knuth :-)
What I see you saying is that m%n makes more sense to you than m mod n. How
do you feel about *a++?
Jul 22 '05 #8
Walter Kalata wrote:
On the other hand, there is also specific language idioms that he
would probably want to learn.


I was hoping to try to tackle Knuth's series in the future, and
correct me if I'm wrong, but I doubt that any algorithms I choose (or
with the libraries of this day and age, need) to impliment from
Sedgewick's C++ Algorithms book would even remotely resemble his
sample code, and will be built from the textual explaination on how
they function, with the code sample used more or less as something to
double-check with. Couldn't this apply to writing the sample code in
the language of tomorrow's day? Cross-referencing the code with C++
would probably only make it easier to understand, especially because
at this point C++ is the most natural language for me to analyze and
fathom, as opposed to pseudo-code, or worse, machine code for a
pseudo-processor.


At Uni, the Algorithmics and Datastructures courses would use pseudocode.
Most of the time it would either look a lot like C++ or Pascal, and hide any
of the uglyness that stuff like pointers adds to an algorithm. If the
pseudocode is well-chosen, the examples in it can be far more clearer than
in a relatively low-level language like C++, as the example can focus on
what the algorithm does, not on how you get C++ to do it.

Just my opinion of course.

--
Unforgiven

Jul 22 '05 #9
osmium writes:
What I see you saying is that you prefer n%m to n mod m. How do you feel
about *a++?

Not to start a flame war or anything, but how exactly would you express *a++
in pseudocode?
Jul 22 '05 #10

"Walter Kalata" <pl****@ucwphilly.rr.com> wrote in message
news:fx**********************@twister.nyc.rr.com.. .
osmium writes:
What I see you saying is that you prefer n%m to n mod m. How do you feel about *a++?

Not to start a flame war or anything, but how exactly would you express

*a++ in pseudocode?


You mean like "Access the value of the thing pointed to by a, and then
increment a" ?
Jul 22 '05 #11
Walter Kalata writes:
What I see you saying is that you prefer n%m to n mod m. How do you feel about *a++?

Not to start a flame war or anything, but how exactly would you express

*a++ in pseudocode?


I wouldn't. My mind doesn't consider such possibilities when writing
pseudocode. There are numbers and one can add, subtract, multiply and
divide them. And there is the notion of a thing called a pointer. These
are disjoint things.
Jul 22 '05 #12
In article <QZ*********************@twister.nyc.rr.com>,
pl****@ucwphilly.rr.com says...

[ ... ]
Recently, I've picked up, but have yet to read:
Robert Sedgewick - "Algorithms in C++", Parts 1-4 and Part 5
along with the GOF book.
If the purchase was _really_ recent, this may not have been a mistake --
you might still be able to take these back and get a good book (E.g.
Knuth or Cormen, Rivest et. al.) instead. Otherwise, about the best way
to use these to learn about algorithms is to burn them to give yourself
light to read a different book.
I'm wondering what good books my shelf lacks, whether anyone can offer any
advice as to whether to pursue Algorithms or Patterns first, as either topic
isn't going to be at the top of my agenda and will take a very long time to
absorb. Any other tips to enrich my programming repetoire will be much
appreciated.


IMO, a book on algorithms should come before one on patterns. Patterns
occur in the implementation of algorithms. Until you know what
algorithm you're going to implement, the patterns involved in their
implementation are more or less irrelevant.

Once you have at least one decent book on algorithms, it's probably time
to start thinking more in terms of what interests you and what kinds of
programs you really want to write -- depending on your interests, that
might be a book on compiler writing, or numeric analysis, or number
theory, or any number of other possibilities.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 22 '05 #13
In article <QZ*********************@twister.nyc.rr.com>,
pl****@ucwphilly.rr.com says...

[ ... ]
Recently, I've picked up, but have yet to read:
Robert Sedgewick - "Algorithms in C++", Parts 1-4 and Part 5
along with the GOF book.
IMO, the Sedgewick books are best replaced with something else -- I like
Knuth, but Cormen, Rivest, et al, is quite good as well. The Sedgewick
books, however, are basically worse than nothing at all. For the
theorist, their analysis is so shallow as to be meaningless at best, and
more often downright misleading, so you'll need to unlearn what they
teach before you can learn anything else.

For the pragmatist who wants to implement the algorithms, they're even
worse. You often turn to a book to clarify details on algorithms you
already _basically_ understand. These books contain such lousy
explanations, that after reading them, you'll no longer just be confused
over the details, but probably be confused over the basic idea of the
algorithm too. In case the poor explanations don't confuse you, he
still has an ace up his sleeve: sometimes he'll claim to describe one
algorithm, but really describe something almost completely different.

I've had a copy of the GoF book since it first came out, and while I can
understand some of the enthusiasm about it, I have to say that I've
never found it particularly useful either. OTOH, it's not anywhere
close to the same class as Sedgewick -- even at very worst, it's utterly
harmless, which is a lot better than can be said for Sedgewick.
I'm wondering what good books my shelf lacks, whether anyone can offer any
advice as to whether to pursue Algorithms or Patterns first, as either topic
isn't going to be at the top of my agenda and will take a very long time to
absorb. Any other tips to enrich my programming repetoire will be much
appreciated.


IMO, algorithms first, patterns later. Knowing algorithms is what
allows you to accomplish something. Knowing patterns allows you to
write nicer code to accomplish it. Knowing patterns without algorithms
allows you to write nice code that doesn't accomplish anything.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 22 '05 #14

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

Similar topics

14
by: Eakin, W | last post by:
Unlike a coding question, which may have a definite answer, this deals more with opinion. As I continue my studies of PHP and MySQL, and get to the point of being able to use them in a work...
16
by: BOOGIEMAN | last post by:
Beginners question, but really what can you do with it ? How hard is Python to learn compared with other languages (let's say C#). Can you make fullscreen game with it (for example) ? I've looked...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
7
by: tada991 | last post by:
Hello Everyone, I just purchased Visual Studio .Net Architect 2003 and want to know what's a good book for begginers to start with. I know nothing about programming whatsoever, but I do have a...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
8
by: Hermawih | last post by:
Hello , I want your opinion about this . In order to say it clearly , I think I have to describe it in long sentences . I could consider myself as Intermediate/Advance Access Developer ;...
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
2
by: RAM | last post by:
Hello, I decided to become .NET developer. I want to programme database applications with ASP.NET interface. I would like to ask you a question: what technologies I should learn? I think that I...
17
by: pedestrian via DotNetMonster.com | last post by:
With so many technologies around which include HTML, XML, Javascript, CSS, ASP, ASP.NET (and PHP, JSP of course etc.) What is the sequence for learning web programming? which come should be...
11
by: Paul Brady | last post by:
Apparently, I have been living on the wrong planet. I have written 15 databases in Microsoft Access in the past 10 years, some of which are split, one uses ODBC interface with a SQL server, one...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.