Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Books

Submission + - The Art of Debugging with GDB, DDD, and Eclipse

Diomidis Spinellis writes: "In common with programming, debugging is a skill we develop through experience. However, whereas we can become better programmers by studying algorithms, data structures, implementation patterns, style guides, APIs, and even existing open source code, there are few resources we can tap into to improve our debugging abilities. Matloff's and Salzman's book "The Art of Debugging with GDB, DDD, and Eclipse" fills this gap by presenting three powerful debugging tools, background knowledge, and essential techniques.

The three tools discussed in the book span the whole range of tool support for debugging. GDB is a command-line based tool, which is difficult to master, but can be extremely powerful. DDD provides a GUI front end to GDB, and can thus be a reasonable compromise between power and usability. Eclipse, as a full-featured IDE provides additional facilities that cover more software development activities.

The book starts with a discussion of debugging techniques, an overview of the tools, a comparison of their distinct interfaces, and a sample of a debugging session performed on each of them. This allows readers to decide which tool is most appropriate for them.

The book's main part covers in detail the facilities typically used for debugging programs: breakpoints, watchpoints, variable inspection, and examining a failed program's memory image (core dump). Each topic includes simple and more detailed examples covering GDB, DDD, and Eclipse. The text then moves on to more advanced topics: the debugging of threaded code, parallel applications, GUI programs, as well as debugger-specific quirks. Where required, the authors present the theory behind a particular behavior, such as a memory protection fault.

Somewhat paradoxically for a book whose title focuses on three specific tools, the text also covers other important debugging tools: the text editor, the compiler, C's error reporting, strace, ltrace, splint, and Electric Fence. Two additional tools this reviewer would have liked to see included in the presentation are valgrind and dtrace. The book ends with a discussion of how DDD, GDB, and Eclipse can be used to debug code written in Java, Perl, Python, SWIG, and assembly.

C programmers working on Unix systems will benefit most from reading this book, but many others can learn valuable techniques and tricks."
Microsoft

Submission + - Microsoft tries a new ad agency (economist.com)

Diomidis Spinellis writes: "An article in this week's Economist outlines Microsoft's marketing response to Vista's travails and Apple's hip Get a Mac campaign. Describing the recent Mojave Experiment as "Microsoft at its worst", the article''s writer wonders whether hiring a new hot ad agency, Crispin Porter + Bogusky, to put together a $300m campaign can make Microsoft look cool. Can money buy you love?"
Microsoft

Submission + - Microsoft after Bill Gates (economist.com)

Diomidis Spinellis writes: "This week's Economist cover story discusses Microsoft's future after the departure of Bill Gates. The article argues that the firm, having conquered the goal Bill Gates stated almost 30 years ago "a computer on every desk and in every home", is now facing a middle age crisis, struggling to find a new purpose in its life. Its shares perform worse than the industry average, its online offerings seem unable to compete with the ones of Google, and Vista hasn't impressed the market. A move to services and cloud computing are touted as the new road ahead, but the large size of Microsoft's empire may make it difficult to perform this turn."

Comment Re:"Code quality" is bunk (Score 1) 252

A few hours after replying to the "code quality is that it 'works'" comment, I read Joseph Bergin's Do the Right Thing design pattern in an IEEE Software article. I found it quite funny.

The absolute worst part of critiques like yours is the ideas it gives pin headed MBAs who bungee jump into engineering departments, book in hand, with no practical experience. The ideas spouted by the book become the drive, not the product. It is an almost certainty the project will be dreadfully late or never finished.
I absolutely agree.
Programming

Submission + - Open and closed source kernels go head to head (spinellis.gr)

Diomidis Spinellis writes: "Earlier today I presented at the 30th International Conference on Software Engineering a research paper comparing the code quality of Linux, Windows (its research kernel distribution), OpenSolaris, and FreeBSD. For the comparison I parsed multiple configurations of these systems (more than ten million lines), and stored the results in four databases, where I could run SQL queries on them. This amounted to 8GB of data, 160 million records. (I've made the databases and the SQL queries available online.) The areas I examined were file organization, code structure, code style, preprocessing, and data organization. To my surprise there was no clear winner or looser, but there were interesting differences in specific areas."
Microsoft

Submission + - What would you tell Bill Gates?

Diomidis Spinellis writes: "Bill Gates is visiting Athens on January 28th to give a talk and inaugurate a so-called innovation center that is part of a Strategic Partnership Agreement that Microsoft has signed with the Greek Government. (In return the Greek Government has promised to purchase at least 70,000 Microsoft licenses.) As an open-source advocate, I've been contacted by the Greek Sunday newspaper magazine Epsilon, to give them in 100-words what I'd tell Bill Gates if I met him. While preparing my scoop, I thought that some help from the Slashdot readers would be interesting and entertaining. What would your 100 words be?"
AMD

Submission + - AMD's Abu Dhabi cash infusion (economist.com)

Diomidis Spinellis writes: "The October 22nd issue of The Economist has an article on the recent $622m, 8.1% purchase of AMD by Abu Dhabi's Mubadala Development investment arm. The article explains that AMD requires the cash to address three handicaps it has in its fight against Intel: its smaller number of fabs, which increases its exposure to manufacturing problems, its lack of Intel's dominant position, and its need to pay for strategic acquisitions, like that of ATI. The article ends by warning that in a, widely expected, industry slowdown resource-rich countries will be able to buy big chunks of US's high-tech industry at bargain prices. Following the recent descriptions of attacks against cryptographic algorithms based on CPU backdoors, will these purchases end-up to be the high-tech equivalent of the Dubai Ports World controversy?"
Patents

Submission + - Patent peer review is now online (peertopatent.org)

Diomidis Spinellis writes: "Several Slashdot stories have reported that the US Patent and Trademark Office considered moving toward a peer review system for patent applications. A one-year pilot Peer-to-Patent program for selected patent applications is now online. The most active team currently reviews a patent on a method, apparatus and computer program product for providing status of a process. The IEEE Spectrum has an interview with the founder of Peer-to-Patent New York Law School's Professor Beth Simone Noveck."
Portables

Submission + - OLPC's trickle-down effect (pcpro.co.uk)

Diomidis Spinellis writes: "PCPRO runs a story regarding the $189 laptop that Asus revealed at the Computex 2007 trade show. The laptop, in common with the hardware of the one laptop per child initiative, uses solid state memory for storage and runs Linux. It weights 900g (2 lb) and measures 120 * 100 * 30mm (4.7 * 4 * 1.2"). I'm currently using an actual OLPC for localization work and experiments with educational applications, and I was dreaming being able to buy similar machines to use as cheap and cheerful terminals around the house. With Quanta having made a similar product announcement it seems that the Star Trek nirvana of a computer in every room can become an affordable reality."

Slashdot Top Deals

"If it ain't broke, don't fix it." - Bert Lantz

Working...