473,595 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4246
> 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*******@chart er.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*****@prontom ail.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.bluey onder.co.uk>,
Alan Gauld <al********@bti nternet.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

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

Similar topics

1
1785
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 conditionally compile and link the common code per environment configuration. However, I feel that the very nature of this common code (that it is mutually compile- and link-time dependent with the software projects) precludes this type of setup. ...
11
1508
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 instructions? What type of project would I create? TIA, Bill --
6
3486
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 written. /* Book name : File name : E:\programs\cpp\iti01\ch10\ex09_5p1.cpp Program discription: Adding name,Address to customer_record SETUP PROGRAM
9
2929
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 unnetural and does it lead to more bugs in the code because of it makes programms hard to read. And my last question is: "Do you think that using boolean expressions
7
1517
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 10 minutes. A new file for each day is anticipated. Of considerable importance is the long term availability of this data and it's gathering and storage without gaps. As the remote sensors have little on board storage it is important that a
2
1130
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 looking for a book specifically on writing controls. Here are some things I would like the book to talk about and my preferences as to how I would like it to be shown/explained: 1. I want it to use VB.NET for the examples, since that is what I write...
22
2697
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 programming. I tend to learn what is useful and gets the job done. I am always curious if there is some techique I don't know. I read books and study as well as write programs. My goal is to some day be able to get a job programming. I have a...
1
1231
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 booklist which stores the books in an array list. In the booklist class I am trying to write a method which displays the books only written by a specific author. In my book class I have these methods that will help with the method I am creating:
6
1870
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 best efforts not to, In all the exitement of coding I have written a fair bit of code which I do not understand. So my question is, are there books (etc) that I can refer to for learning to write code, where when reading the code, I or any one else...
0
8261
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8251
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6674
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5839
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5418
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3873
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2391
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1490
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.