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

Writing solid code book

Hi,

there is another famous book 'Writing solid code' but does it apply to
Python ? Or it's usable only by Microsoft C programmers ? The author
seems to be an ex-Microsoft guy !

Thanks ,
post400
Jul 18 '05 #1
40 4216
> there is another famous book 'Writing solid code' but does it apply to
Python ? Or it's usable only by Microsoft C programmers ? The author
seems to be an ex-Microsoft guy !


Interesting question. This book probably makes a good indirect case for
using Python rather than C. I found it useful back when I was I C
programmer. Python makes many of the points in the book moot, and the last
chapter on attitude applies universally. For example, assertions are much
less useful in Python because the interpreter essentially asserts many
properties of each statement. In Python one wants assertions only for
conditions that the interpreter can't possibly deduce.

BTW, back when I was a C programmer the book "Code Complete" would have been
a complete answer to the question, "what do you do?" It's still relevant, I
would guess.

Edward
--------------------------------------------------------------------
Edward K. Ream email: ed*******@charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
Jul 18 '05 #2
In article <b1**************************@posting.google.com >, post400 wrote:
there is another famous book 'Writing solid code' but does it apply to
Python ? Or it's usable only by Microsoft C programmers ? The author
seems to be an ex-Microsoft guy !


It mainly deals with C-specific issues.

http://tinyurl.com/m3ta

However, the Code Complete book by McConnel is quite general.

Dave Cook
Jul 18 '05 #3
On 3 Sep 2003 04:39:02 -0700, po*****@prontomail.com (post400)
wrote:
there is another famous book 'Writing solid code' but does it apply to
Python ? Or it's usable only by Microsoft C programmers ? The author
seems to be an ex-Microsoft guy !


Forget this one, it wasn't as good as Code Complete when it came
out and it has aged less well. Its not even of great value to C
programmers nowadays, it spends a lot of time dealing with the
inadequacies of the compilers and other tools around at the time!

Better tools mean much of it has lost its urgency.

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #4
On 03 Sep 2003 13:58:00 +0100, John J. Lee wrote:
The Python Cookbook is the first book I'd have on my list if I were
learning Python now (O'Reilly, eds. Martelli & Ascher).


That's the only Python book you think worth having? Or buying?

My "Software Engineering" class votes again tomorrow on the language we use
for our group project. Tuesday's vote was Java (8 votes), Python (5), C++
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.
Jul 18 '05 #5
Jules Dubois <bo***@invalid.tld> wrote:
My "Software Engineering" class votes again tomorrow on the language we use
for our group project. Tuesday's vote was Java (8 votes), Python (5), C++
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.


How many votes does a language need to get to be elected Governor of
California?
Jul 18 '05 #6
On Wed, 3 Sep 2003 22:00:45 -0600, Jules Dubois
<bo***@invalid.tld> wrote:
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.


If you picked Jython you could all be happy! :-)

Alan G
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #7
Roy Smith wrote:
Jules Dubois <bo***@invalid.tld> wrote:
My "Software Engineering" class votes again tomorrow on the language we
use
for our group project. Tuesday's vote was Java (8 votes), Python (5),
C++
(3), and Smalltalk (1); Thursday's vote will be between Java and Python.
I get the opportunity to learn one or the other in a week.


How many votes does a language need to get to be elected Governor of
California?


Given that they vote in a sensible way (runoff between the top two
candidates, rather than "first past the post") you can't directly
compare the two elections. (You can get the same results as with a
preliminary vote + runoff by such methods as STV and Condorcet --
the whole issue was discussed in depth last spring on this group
regarding the ternary operator vote -- but that's an issue only if
arranging for voting twice is costly or inconvenient).
Alex

Jul 18 '05 #8
Jules Dubois wrote:
On 03 Sep 2003 13:58:00 +0100, John J. Lee wrote:
The Python Cookbook is the first book I'd have on my list if I were
learning Python now (O'Reilly, eds. Martelli & Ascher).


That's the only Python book you think worth having? Or buying?


Speaking as both the co-editor of the Cookbook and the author of the
Nutshell, if I had to choose ONE Python book "worth having or buying"
I think I'd go for the Nutshell. Hard decision, though.

Fortunately you don't have to choose "sight unseen". You can join
O'Reilly's "Safari" online-books service: it's for-pay, but you DO
get a couple of weeks free access, giving you time to examine all
of the 15 Python books they have available for online reading -- on
the basis of how you like what you see, you may then decide to
purchase any one of them -- or even, if you don't like any of them
well enough, to purchase none of them and go with the other ones
you can access in entirely free ways off the net.

In the past, I made my choices about what books to purchase mostly
by browsing books at a bookstore. Half an hour per book might
mean a full day's worth of browsing to choose among 15 of them,
and yet not give me a solid enough basis for choosing. Now I can
spend 2 or 3 hours examining each book's contents in a more
convenient setting, and in a weekend plus a couple evenings make
my choice on a much more solid basis. Even ignoring safari's many
other advantages, just as a book-choosing device it's superb!-)
Alex

Jul 18 '05 #9
In article <3f****************@news.blueyonder.co.uk>,
Alan Gauld <al********@btinternet.com> wrote:
On Wed, 3 Sep 2003 22:00:45 -0600, Jules Dubois
<bo***@invalid.tld> wrote:
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.


If you picked Jython you could all be happy! :-)

Jul 18 '05 #10
al********@btinternet.com (Alan Gauld) wrote in message news:<3f****************@news.blueyonder.co.uk>...
On 3 Sep 2003 04:39:02 -0700, po*****@prontomail.com (post400)
wrote:
there is another famous book 'Writing solid code' but does it apply to
Python ? Or it's usable only by Microsoft C programmers ? The author
seems to be an ex-Microsoft guy !
Forget this one, it wasn't as good as Code Complete when it came
out and it has aged less well. Its not even of great value to C
programmers nowadays, it spends a lot of time dealing with the
inadequacies of the compilers and other tools around at the time!

Better tools mean much of it has lost its urgency.


Actually I put these questions about books because there's an awful
lot of them out there in the bookshops and libraries and no time to
read them all.So maybe you (experienced python guys ) could make some
suggestions from time to time about the must-read books , not
necessarily on python but also on stuff about design , project
management , OOP , etc. be it new stuff or old stuff.Apparently the
python people are already experienced in some other languages and they
choose it as a language because is so much better.Of course there are
programmers who have never heard of python and I'm talking about
"real" hot java and enterprise stuff programmers.But I really wonder
how a non-programmer could get into python as a first programming
language since there's not much publicity and not many people around
to lure you to it.

Bye,
post400

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld

Jul 18 '05 #11
On Wed, 3 Sep 2003 22:00:45 -0600, Jules Dubois <bo***@invalid.tld>
wrote:
On 03 Sep 2003 13:58:00 +0100, John J. Lee wrote:
The Python Cookbook is the first book I'd have on my list if I were
learning Python now (O'Reilly, eds. Martelli & Ascher).


I think Learning Python is the best starter book for Python newbies.
Jul 18 '05 #12
Alex Martelli <al***@aleax.it> wrote in message news:<el********************@news1.tin.it>...
Jules Dubois wrote:
On 03 Sep 2003 13:58:00 +0100, John J. Lee wrote:
The Python Cookbook is the first book I'd have on my list if I were
learning Python now (O'Reilly, eds. Martelli & Ascher).


That's the only Python book you think worth having? Or buying?


Speaking as both the co-editor of the Cookbook and the author of the
Nutshell, if I had to choose ONE Python book "worth having or buying"
I think I'd go for the Nutshell. Hard decision, though.

Fortunately you don't have to choose "sight unseen". You can join
O'Reilly's "Safari" online-books service: it's for-pay, but you DO
get a couple of weeks free access, giving you time to examine all
of the 15 Python books they have available for online reading -- on
the basis of how you like what you see, you may then decide to
purchase any one of them -- or even, if you don't like any of them
well enough, to purchase none of them and go with the other ones
you can access in entirely free ways off the net.

In the past, I made my choices about what books to purchase mostly
by browsing books at a bookstore. Half an hour per book might
mean a full day's worth of browsing to choose among 15 of them,
and yet not give me a solid enough basis for choosing. Now I can
spend 2 or 3 hours examining each book's contents in a more
convenient setting, and in a weekend plus a couple evenings make
my choice on a much more solid basis. Even ignoring safari's many
other advantages, just as a book-choosing device it's superb!-)
Alex


Hi,

yes Safari seems ok , you get a few days for free to browse but it's
not totally free.I think the electronic version should be free.Some
people offer their books for free , Bruce Eckel for example and his
Thinking in Java which seems to be a good book.Maybe more writers
should do the same !

bye,
post400
Jul 18 '05 #13
Alex Martelli <al***@aleax.it> wrote in message news:<el********************@news1.tin.it>...
Even ignoring safari's many other advantages


Safari is definitely a useful service (I am a subscriber) but
1. its range of titles is quite limited (only best-sellers)
2. the time lag between release as hardcopy vs. on Safari can be really long

-- O.L.
Jul 18 '05 #14
And let us not forget
3. poor customer service (you have to try real hard to reach someone)

-- O.L.
Jul 18 '05 #15
Roy Smith <ro*@panix.com> writes:
How many votes does a language need to get to be elected Governor of
California?


It must fight against Schwarzenegger ;-)

--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com
rh****@NOSPAMmyself.com
Jul 18 '05 #16
Jules Dubois <bo***@invalid.tld> writes:
On 03 Sep 2003 13:58:00 +0100, John J. Lee wrote:
The Python Cookbook is the first book I'd have on my list if I were
learning Python now (O'Reilly, eds. Martelli & Ascher).
That's the only Python book you think worth having? Or buying?


As a general Python book, yes (having or buying). The standard
library docs are good enough that I've never had a need for anything
else. The Cookbook is good for getting a sense of good Pythonic
style.

People have said good things about some of the Python reference books,
though. In the past -- and quite possibly now -- the books by Beazley
and Lundh were two that were often recommended, and the more recent
O'Reilly Nutshell has also been praised.

My "Software Engineering" class votes again tomorrow on the language we use
for our group project. Tuesday's vote was Java (8 votes), Python (5), C++
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.


Why not ignore the result and dictate the language choice yourself?
(benevolently, of course ;-)
John
Jul 18 '05 #17
On Thu, 04 Sep 2003 00:06:00 -0400
Roy Smith <ro*@panix.com> wrote:
How many votes does a language need to get to be elected Governor of
California?


$ 10**7 ?

/Mikael Olofsson
Universitetslektor (Associate professor)
Linköpings universitet

-----------------------------------------------------------------------
E-Mail: mi****@isy.liu.se
WWW: http://www.dtr.isy.liu.se/en/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com
Jul 18 '05 #18
At 10:00 PM 9/3/2003 -0600, you wrote:
[snip]
My "Software Engineering" class votes again tomorrow on the language we use
for our group project. Tuesday's vote was Java (8 votes), Python (5), C++
(3), and Smalltalk (1); Thursday's vote will be between Java and Python. I
get the opportunity to learn one or the other in a week.


Does your class want to learn Software Engineering or does it want to learn
a language. If the focus is on learning Software Engineering and the
learning of a language is to support that, the less effort you have to put
into learning (and using) the language the more time and energy you'll have
to learn and apply engineering concepts.

One of the first "productivity languages" was APL. One could solve problems
in a fraction of the time it took in FORTRAN etc. In the early 1970s a
college class was given a term project - write a program to solve something
related to the course subject. Some students wrote the APL solution and
turned it in the following day. The prof was pissed that they had done it
so easily, and forbade the use of APL for the assignment!

So beware of choosing Python. It might make the class too easy.

Bob Gailer
bg*****@alum.rpi.edu
303 442 2625
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003

Jul 18 '05 #19
Alex Martelli <al***@aleax.it> wrote in message news:<el********************@news1.tin.it>...
Even ignoring safari's many other advantages


Safari is definitely a useful service (I am a subscriber) but
1. its range of titles is quite limited (only best-sellers)


It is *very* limited; though I think all or O'Reilly's books are in it (and
MicrosoftPress and SAMS) there is little more; they advertise Addison
Wesley, but there is only a fraction of their books.
2. the time lag between release as hardcopy vs. on Safari can be really

long

3. It *is* expensive in the long run, except you have a *very* broad
interest in multiple aspects of computer science.
Kindly
Michael P
(also a subscriber)

Jul 18 '05 #20
post400 wrote:
...
yes Safari seems ok , you get a few days for free to browse but it's
not totally free.I think the electronic version should be free.Some
safari is only free for two weeks; then, if you like the service it
gives you, you can choose to continue a (paid) subscription.

I'm not sure on what basis you intend your use of "should". Do you
mean that you believe it would be in publishers' best interests to
offer electronic versions free -- that it would enhance the sales
of their paper versions producing a greater total profit than having
online books as a for-pay service does? If so, then it would be
interesting to understand on what basis you form that judgment.

O'Reilly, in particular, publishes paper versions both of books that
are also available for free download elsewhere, _and_ of books that
are not thus avialable. Presumably, therefore, they have available
very good historical data to convince them that their policies are in
fact the best currently available to them -- knowing Tim O'Reilly's
ideas, policies, and openness to novelty, you surely can't be
accusing him of "persevering by sheer inertia" in his policies.

Or is your "should" predicated on some ethical objection against
such people as book authors and editors receiving compensation
for their efforts? Speaking as a book author, I can confirm that
the amount of money I earn from writing, divided by the number of
hours I spend writing, is roughly comparable with legal minimum
wage (depending on jurisdiction -- such minima may be higher in
most of Europe than in the US), and *WELL* below the hourly income
I can make by professional consulting. Were I to contemplate the
possibility of would-be freeloaders trying to dictate what I
"should" do (without deigning to mention WHY they think I should),
it might perhaps anger me just enough to deter me from my former
intention of making my next coming book freely available. So, I
would appreciate some explanation of your assertion.

people offer their books for free , Bruce Eckel for example and his
Thinking in Java which seems to be a good book.Maybe more writers
should do the same !


"Thinking in Java" is indeed excellent, and no doubt the feedback
from people who freely downloaded it helped Bruce make it so.
However, I do notice that Bruce's long-planned "Thinking in
Python" seems to be languishing without end. Perhaps this means
that books addressing a huge market for which there are hundreds
of competitors (Java, C++) _are_ indeed profitable to make freely
downloadable (at least if only a minority of authors are so doing,
assuming part of the profit comes from competitive considerations),
but books addressing a smaller market, such as Python, aren't.

As for me, I'm operating on a different assumption (which is not
necessarily contradictory to the possibility outlined in the
previous paragraph) as to what distinguishes books that are best
made freely available online from those which are not; but I have
as yet no experience to back me up (the only "free book" I have
out on the net -- a primer on win32 API GUI programmin in C, in
Italian -- is incomplete and not available in any for-pay form,
only in the free online version).

Several other authors have experience publishing both books that
are also available for free, and ones that aren't. Hearing from
them would be very interesting, at least to me.
Alex

Jul 18 '05 #21
|> yes Safari seems ok , you get a few days for free to browse but it's
|> not totally free.I think the electronic version should be free.Some

|safari is only free for two weeks; then, if you like the service it
|gives you, you can choose to continue a (paid) subscription.

FWIW, my book, _Text Processing in Python_ (http://gnosis.cx/TPiP) is,
has been, and will remain freely accessible in electronic form for all
readers--even those who have not paid for anything. I really buy into
the "information wants to be free" schtick.

That said, the book is also copyrighted by Addison Wesley; so my
principles are limited by their discretion. For example, I wanted to
make a PDF version of my book available, but only to buyers of the
dead-tree version. Well, without AW to consider, I might have wanted to
do so on an unlimited basis, but I thought that was a compromise. I
even had in mind a little system for using a "What's the first word on
page NNN?" quiz to authorize downloads.

Sadly, AW strongly pooh-pooh'd this idea. I think they're wrong, but
they think leaking a PDF would kill international sales. Obviously,
there -is- a point that testing readers of the original download doesn't
really prevent redistribution of the file. But IMO, the so-called
"pirates" wouldn't be likely buyers anyway.

Ah well... personally, I like the ASCII version better for electronic
access than I would a PDF (well, it's -do- actually... I myself have
the PDF perfectly available on my computer :-)). When I want to remind
myself of a some function arguments or the like, grep does a really
quick job of reminding me about what I took the effort to research
during writing (of course the standard documentation is likewise useful,
but sometimes I like my own phrasing better... I wrote it, after all
*wink*).

Yours, David...

--
_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY: Postmodern Enterprises _/_/_/
_/_/ ~~~~~~~~~~~~~~~~~~~~[me***@gnosis.cx]~~~~~~~~~~~~~~~~~~~~~ _/_/
_/_/ The opinions expressed here must be those of my employer... _/_/
_/_/_/_/_/_/_/_/_/_/ Surely you don't think that *I* believe them! _/_/
Jul 18 '05 #22
On 4 Sep 2003 02:40:50 -0700, post400 wrote:

So maybe you (experienced python guys ) [...]

I'm not experienced with Python. I wrote my first forty (or so) lines of
code Thursday morning.
[...] could make some
suggestions from time to time about the must-read books , not
necessarily on python but also on stuff about design , project
management , OOP , etc. be it new stuff or old stuff.
Books I particularly liked:

_Object Oriented Software Construction, 1E_. Meyer. (OOP)
_Design Patterns_. Gamma, Helm, Johnson, Vlissides.
_Refactoring_. Fowler.

For OOP stuff, you might look at the comp.object newsgroup. There are some
Wars of Religion there, but also some good information; Robert Martin
(Uncle Bob) and Martin Fowler post there.
But I really wonder
how a non-programmer could get into python as a first programming
language since there's not much publicity and not many people around
to lure you to it.


Publicity and lure are not the most important things to consider when
choosing a first language.

For education, as opposed to training, I maintain the first two languages a
beginner should learn are Smalltalk and then Common Lisp. Even though
they're not the most widely-used languages, these two will do more to teach
the fundamentals of programming than will Java, Python, Ruby, C++, Perl,
PHP, C#, or (especially) VBA.
Jul 18 '05 #23
> It's got over 1,000 books -- I doubt they can ALL be best-sellers,
can they?
What I mean is that it seems to have only language or API how-to kind
of books, i.e., those that appeal to working programmers, the largest
audience. A contrario look under Computer Science, AI or Functional
Programming: it's pitiful. Yet the CS book market is also large,
courtesy of undergrad programs. So they may have 1K titles but the
coverage is very narrow nonetheless.
Sure: just like it takes a really long time for the latest movies
to become available at my local video rental shop


I don't think that's relevant. The videos could hurt the theater
release, so the delay is deliberate; in the case of Safari it's
more likely to be mere logistics since printed and online versions
coexists throughout the lifetime of the book.

-- O.L.
Jul 18 '05 #24
le******@yahoo.com (Olivier Lefevre) writes:
It's got over 1,000 books -- I doubt they can ALL be best-sellers,
can they?


What I mean is that it seems to have only language or API how-to kind
of books, i.e., those that appeal to working programmers, the largest
audience. A contrario look under Computer Science, AI or Functional
Programming: it's pitiful. Yet the CS book market is also large,

[...]

Isn't that just because that's the kind of stuff O'Reilly publishes?
Addison-Wesley, Wiley &c. tend to do the books that are more on the
software engineering and CS side.

Or does Pearson Education have something to do with it -- I noticed
their site mentioning a 'Safari' a while back, and at the time assumed
that was a copy, but I think Alex mentioned them in this thread. Are
Pearson and O'Reilly owned by a single company, or something? I have
a vague recollection that Pearson owns some other companies...
John
Jul 18 '05 #25
jj*@pobox.com (John J. Lee) wrote previously:
|Pearson and O'Reilly owned by a single company, or something? I have
|a vague recollection that Pearson owns some other companies...

There's been a huge amount of consolidation in publishing. Pearson is
not the parent of Addison-Wesley, Longman, Benjamin Cumming, New Riders,
Peachpit, Cisco Press, Prentice Hall, SAMS, Que, and several more
imprints. It's really a rather bad thing, although they do not seem to
use the degree of ideological acid-test that, say, MediaCorp
acquisitions do.

I started writing my book for AW, only to find it a Prentice book when
it was published (it still has the AW imprint, but the meaning seems
diluted).

That said, I'm pretty sure that O'Reilly remains one of the few
independent publishers of technical books. I think Manning is also.

Yours, David...

--
---[ to our friends at TLAs (spread the word) ]--------------------------
Echelon North Korea Nazi cracking spy smuggle Columbia fissionable Stego
White Water strategic Clinton Delta Force militia TEMPEST Libya Mossad
---[ Postmodern Enterprises <me***@gnosis.cx> ]--------------------------
Jul 18 '05 #26
me***@gnosis.cx (David Mertz) writes:
jj*@pobox.com (John J. Lee) wrote previously:
|Pearson and O'Reilly owned by a single company, or something? I have
|a vague recollection that Pearson owns some other companies...

There's been a huge amount of consolidation in publishing. Pearson is
not the parent of Addison-Wesley, Longman, Benjamin Cumming, New Riders,
Peachpit, Cisco Press, Prentice Hall, SAMS, Que, and several more
imprints. It's really a rather bad thing,
(That should have been "now the parent...", I assume.)

Wow. :-(

Actually, doesn't Pearson own some stuff outside of publishing too?
That's what ISTR hearing about recently...

although they do not seem to
use the degree of ideological acid-test that, say, MediaCorp
acquisitions do.
What are you referring to there? Is Mediacorp Rupert's company?
What's this about ideological acid-tests?

That said, I'm pretty sure that O'Reilly remains one of the few
independent publishers of technical books. I think Manning is also.


By technical books, do you mean computing books? I've no idea what
goes on with other fields, but I don't doubt they've been
'consolidating' too (and, of course, AW, Longman, Prentice Hall
themselves publish(ed) a broad range).

So, *is* Pearson's 'Safari' the same as O'Reilly's? I thought Alex
had mentioned Pearson in that connection. Too lazy to check.
John
Jul 18 '05 #27
On Thu, 04 Sep 2003 08:03:22 GMT, in article
<el********************@news1.tin.it>, Alex Martelli wrote:
Jules Dubois wrote:
That's the only Python book you think worth having? Or buying?


Speaking as both the co-editor of the Cookbook and the author of the
Nutshell, if I had to choose ONE Python book "worth having or buying"
I think I'd go for the Nutshell. Hard decision, though.


I discovered the Engineering library had ordered _Nutshell_, but it hadn't
been delivered from the main library. I requested it and got it the next
day.

However, seeing for the first time Python's syntax in _Nutshell_ was enough
to scare me away. We had to commit today to development in Java or Python.
I had made a firm decision to choose Java, even buying a book on the
Eclipse IDE. Just before sign-ups, we discovered a sample Tkinter
application on the class' internal BBS. After comparing the Tkinter code
to the Swing code I've read, I signed up for the Python development team
five minutes later.

This afternoon, I bought _Cookbook_. When _Nutshell_ is due at the
library, I'll buy it too.

Thanks for your suggestions.
Jul 18 '05 #28
On Thu, 11 Sep 2003 19:14:05 -0600, Jules Dubois
<bo***@invalid.tld> wrote:
However, seeing for the first time Python's syntax in _Nutshell_ was enough
to scare me away.


Really? Can I ask why? I'd have thought seing Pythons syntax
would be a breath of frsh air to most programmers, it certainly
was for me. Why did you think it was scary?

Curious,

Alan G.

Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #29
Jules Dubois <bo***@invalid.tld> writes:
[...]
application on the class' internal BBS. After comparing the Tkinter code
to the Swing code I've read, I signed up for the Python development team
five minutes later.


I'll trollishly <wink> repeat a previous assertion of mine: I've never
heard anybody claim that any other GUI framework beats Qt in terms of
good design and power (hence usability & code clarity). Since you're
in an academic environment, licensing isn't an issue for you (assuming
the educational license for Qt3/Win isn't a problem for you -- Qt3/Mac
and Qt3/Unix are both available under the GPL), so I'd certainly go
with Qt in your position. The only fly in the ointment is that PyQt
doesn't yet work natively on the Mac (but Phil is planning to fix that
"with SIP v4").
BTW, I just looked at Phil's SIP roadmap page

http://www.riverbankcomputing.co.uk/sip/roadmap.php
and -- shock, horror -- SIP is actually going to be documented in v4!
We'll believe it when we see it ;-).

(prospective PyQt users should note that SIP is not something you'll
ever use while writing PyQt code, so the lack of documentation isn't
an issue -- SIP is the tool used to wrap Qt for Python)
John
Jul 18 '05 #30
Just to be clear, Safari is not limited to O'Reilly, although
O'Reilly created and operates it.
I've no idea what goes on with other fields, but I don't doubt they've
been 'consolidating' too


Yes. In STM publishing, following the purchase of Springer by Wolters
Kluwer, it and Elsevier Reed now control a huge share of the market.

-- O.L.
Jul 18 '05 #31
Quoting Alan Gauld (al********@btinternet.com):
On Thu, 11 Sep 2003 19:14:05 -0600, Jules Dubois
<bo***@invalid.tld> wrote:
However, seeing for the first time Python's syntax in _Nutshell_ was enough
to scare me away.


Really? Can I ask why? I'd have thought seing Pythons syntax
would be a breath of frsh air to most programmers, it certainly
was for me. Why did you think it was scary?


I know I resisted the idea of significant whitespace for something
like six months, despite evangelical friends, before I turned away
from the dark side.

Perhaps not coincidentally, I began reconsidering my opinion at
approximately the same time I became responsible for extension of a
Perl script written by a fellow who was just coming to understand
use of references in Perl.

--G.

--
Geoff Gerrietts "There is no fate that cannot be
<geoff at gerrietts net> surmounted by scorn." --Albert Camus

Jul 18 '05 #32
On Thu, 11 Sep 2003 13:58:53 -0400, me***@gnosis.cx (David Mertz) wrote:
jj*@pobox.com (John J. Lee) wrote previously:
|Pearson and O'Reilly owned by a single company, or something? I have
|a vague recollection that Pearson owns some other companies...

There's been a huge amount of consolidation in publishing. Pearson is
not the parent of Addison-Wesley, Longman, Benjamin Cumming, New Riders, ^^^-- assume you mean "now"
Peachpit, Cisco Press, Prentice Hall, SAMS, Que, and several more
imprints. It's really a rather bad thing, although they do not seem to
use the degree of ideological acid-test that, say, MediaCorp
acquisitions do.

I started writing my book for AW, only to find it a Prentice book when
it was published (it still has the AW imprint, but the meaning seems
diluted).

That said, I'm pretty sure that O'Reilly remains one of the few
independent publishers of technical books. I think Manning is also.

[OT] So instead of a distributed implementation of business, with no
individual way of making billion dollar mistakes, the consolidation
centralizes control and makes billion dollar mistakes both possible
and survivable, and therefore more probable. And if one of these
titanic dinosaurs starts faltering, it is so socially disruptive that
tax payers have to provide survival insurance one way or another.
Evolution at work ;-/

[really OT]
Factoids: Iraq 2002 per capita GDP: ~$2,400. Iraq population: ~24.7 million.
$87bn if distributed to all Iraquis: ~$3,500. per capita. And that's just
the new increment. Sorry. Just trying to get a concept of what these numbers
mean. Or could have meant. (E.g., if you wanted to put 100 tourists on each and
every square mile of Iraq at the same time, with $87bn you could give every tourist
a ~$5,000. travel budget to do it). (87e9/168e3)/100 => 5178.5714285714284)
It would be interesting to compare the effects of the expenditure alternatives
if it were possible. IMO tourism would have been a lot more fun (and good for
airlines too). I suspect peaceful expenditures have more business multipliers
in them, not to mention what happens in people's minds if they can enjoyably meet
as humans rather than agents of some extraneous worry ;-) (Ok, let's not get into
the logistics of sending 16.8 million tourists with $5k each at the same time
to one country ;-) Besides that's only $84bn. We have $3bn in roundoff to spare ;-)

Regards,
Bengt Richter
Jul 18 '05 #33
jj*@pobox.com (John J. Lee) wrote in message news:<87************@pobox.com>...
So, *is* Pearson's 'Safari' the same as O'Reilly's? I thought Alex
had mentioned Pearson in that connection. Too lazy to check.


I've got a URL for Pearson Education's putative Safari:

http://safari.it-minds.com

It diverts to their online bookshop. As the Pearson group's books are
available at O'Reilly's safari ( http://safari.oreilly.com/ ) perhaps
they gave up on having their own one.
Graham
Jul 18 '05 #34
On 12 Sep 2003 17:40:00 -0700, us****@microtonal.co.uk (Graham
Breed) wrote:
So, *is* Pearson's 'Safari' the same as O'Reilly's? I thought Alex
had mentioned Pearson in that connection. Too lazy to check.


I've got a URL for Pearson Education's putative Safari:

http://safari.it-minds.com


I'm amazed nobody has mentioned InformIT.com yet.

They have a huge range of IT books and articles available. The
articles are free but the books are safari based and need a
subscription. They seem to have more than O'Reilly so far as I
can tell.

InformIT is run in conjunction with Pearson I think.

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #35
Alan Gauld wrote:
I'm amazed nobody has mentioned InformIT.com yet.

They have a huge range of IT books and articles available. The
articles are free but the books are safari based and need a
subscription. They seem to have more than O'Reilly so far as I
can tell.


The "New This Week" and "Top Books" are identical, so they look to me
like different brandings of the same service.
Graham

Jul 18 '05 #36
On Fri, 12 Sep 2003 07:20:53 GMT, in article
<3f****************@news.blueyonder.co.uk>, Alan Gauld wrote:
On Thu, 11 Sep 2003 19:14:05 -0600, Jules Dubois
<bo***@invalid.tld> wrote:
[Python syntax scary]
Really? Can I ask why?


Upon further meditation (and reading), perhaps it isn't so scary after all.
It's just different from what I'm used to, as are Lisp, Prolog, and ML,
which I also have to learn in a hurry. Having begun to re-read _Nutshell_
and with the great help of another of the project's members, some of the
language features I found inscrutable are now becoming scrutable.

However, I would much rather have an assignment operator rather than an
assignment statement. Some of us C programmers can't think properly
without it!
I'd have thought seing Pythons syntax
would be a breath of frsh air to most programmers, it certainly
was for me.
In _Cookbook_, I find features like the example below to be pleasing:

thenewlist = [x for x in theoldlist if x > 5]

With a BS in Math and some Perl experience, this statement is elegant,
concise, and transparent -- in other words, nearly perfect.
Alan G.


Finally, G. -- may I call you G? We're all members of the same gang now,
aren't we? -- I want you to know your Python web site and Tkinter tutorial
are being recommended to us by our resident Python hacker^w expert.
Jul 18 '05 #37
On Fri, 12 Sep 2003 08:42:22 -0700, in article
<ma**********************************@python.org >, Geoff Gerrietts wrote:
I know I resisted the idea of significant whitespace for something
like six months, despite evangelical friends, before I turned away
from the dark side.
I wish I had said that.

I don't have a problem with the whitespace requirement, having programmed
previously in an assembly language which required it. It was one of the
things about Python I liked from the first, except it means line-oriented
syntax with continuations (\).
Perhaps not coincidentally, I began reconsidering my opinion at
approximately the same time I became responsible for extension of a
Perl script written by a fellow who was just coming to understand
use of references in Perl.


Although I think Perl is a good language, it's entirely too easy to program
in write-only mode. C is less powerful, and it's a little harder to create
opaque code... but not impossible as the obfuscated C code contests
demonstrate.
Jul 18 '05 #38
me***@gnosis.cx (David Mertz) wrote in message news:<ma**********************************@python. org>...
|> yes Safari seems ok , you get a few days for free to browse but it's
|> not totally free.I think the electronic version should be free.Some


Anyone heard if Oreilly planning to do CD bookshelf? Any good ways to
apply moral suasion? I think they have just right amount material:

Prog'g P,
Learn'g P,
nutshell
cookbook
Std. Library
Win32.

The perl, network'g & unix CD bookshelves made my life much easier
(til the search function quit working w/JVM 1.4SE)
Jul 18 '05 #39
bo**@oz.net (Bengt Richter) wrote previously:
|[OT] So instead of a distributed implementation of business, with no
|individual way of making billion dollar mistakes, the consolidation
|centralizes control and makes billion dollar mistakes both possible
|and survivable, and therefore more probable.

I don't have an airtight explanation for why it "has to be so", but
empirically[*], media consolidation almost always leads to a narrowing of
ideological diversity. Fewer and fewer different opinions get
expressed, and everything gets mushed together into an "offend no one"
middle.

The trend is perhaps more obvious with political news, movies, music,
etc., but I fear for the same thing in computer books. Rather than
publish occassional books on oddball technologies by authors with their
own take on programming matters, the danger is that every book becomes
"VB.NET for Dummies", or something like that.

It may seem like a silly fear. But back when I was shopping my book (a
couple years back now), one of the publishers I approached was New
Riders. They had published Beazley's excellent _Python Essential
Reference_, as well as quite a number of good programmer-oriented
titles. But the stated "new" focus of New Riders was "graphics design
applications" (I think one of the first steps in mergers was
PeachPit+New Riders). While there is certainly nothing wrong with that
type of book, it really seems to throw away the hard-earned reputation
of New Riders for a certain kind of high-quality programming text--in
favor of something which seems a lot more "middle of the road."

AW still seems to do a lot of good books (not just mine), and maintains
that nice computer-science-ish focus. But I wonder whether a
cookie-cutter pressure will force their titles into narrower molds, over
time.
[*] Maybe Alex will pipe in with a "rational actor" explation of why
what I claim either must be, or cannot be, true. :-)

|[really OT]
|Factoids: Iraq 2002 per capita GDP: ~$2,400. Iraq population: ~24.7 million.
|$87bn if distributed to all Iraquis: ~$3,500. per capita.

Brilliant observations, Bengt!

Yours, Lulu...

--
---[ to our friends at TLAs (spread the word) ]--------------------------
Echelon North Korea Nazi cracking spy smuggle Columbia fissionable Stego
White Water strategic Clinton Delta Force militia TEMPEST Libya Mossad
---[ Postmodern Enterprises <me***@gnosis.cx> ]--------------------------
Jul 18 '05 #40
bo**@oz.net (Bengt Richter) wrote:

<$87 bn>
Just trying to get a concept of what these numbers
mean. Or could have meant.


See also:

http://villagevoice.com/issues/0337/baard.php

Anton

Jul 18 '05 #41

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

Similar topics

1
by: Scott Brady Drummonds | last post by:
Hi, everyone, I'm working on a software project that contains some C++ code that I would like to be common to two separate projects. Ideally, I'd like to have each of these separate projects...
11
by: William Ryan | last post by:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a total IL guru.. Where would I actually write the...
6
by: hpy_awad | last post by:
I am writing stings ((*cust).name),((*cust).address)to a file using fgets but rabish is being wrote to that file ? Look to my source please and help me finding the reason why this rabish is being...
9
by: 100 | last post by:
Has anybody read Steve Maguire's book "Writing solid code"? Do you think that the ideas in this book are not applicable in c# language? Does anybody find if(2 == i) istead of if(i == 2) as...
7
by: John Pote | last post by:
Hello, help/advice appreciated. Background: I am writing some web scripts in python to receive small amounts of data from remote sensors and store the data in a file. 50 to 100 bytes every 5 or...
2
by: Nathan Sokalski | last post by:
I am an ASP.NET developer who would like to start learning about writing ASP.NET custom controls using VB.NET. I already have a reasonable amount of knowledge with making ASP.NET pages, and am...
22
by: JoeC | last post by:
I am working on another game project and it is comming along. It is an improvment over a previous version I wrote. I am trying to write better programs and often wonder how to get better at...
1
by: hannahs | last post by:
I'll try to explain this the best I can. I have a class called book which creates books that each hold information such as author, title, ISBN code, etc. Then I have another class called...
6
by: iheartvba | last post by:
Hi Everyone, I Currently have two problems: Problem 1: My Access DB has gotten to a stage where everything works, but there are many things which don't need to be there, and despite my...
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
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...
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
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
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.