oppure
Accedi per attivare gli ordini 1-Click.
oppure
È necessaria l'iscrizione alla prova gratuita di Amazon Prime. Iscriviti al momento del pagamento. Maggiori informazioni
Altre opzioni di acquisto
Ne hai uno da vendere? Vendi i tuoi articoli qui
Dillo alla casa editrice.
Vorrei leggere questo libro su Kindle

Non hai un Kindle? Scopri Kindle, oppure scarica l'applicazione di lettura Kindle GRATUITA.

Test-Driven Development for Embedded C [Brossura]

James W. Grenning
4.0 su 5 stelle  Visualizza tutte le recensioni (1 recensione cliente)
Prezzo: EUR 23,52 Spedizione gratuita. Dettagli
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Disponibilità: solo 8
Venduto e spedito da Amazon. Confezione regalo disponibile.
Vuoi la consegna garantita entro martedì 28 maggio? Ordina entro e scegli la spedizione 1 giorno. Dettagli

Chi ha acquistato questo articolo ha acquistato anche


Dettagli prodotto

  • Brossura: 351 pagine
  • Editore: Pragmatic Bookshelf (2 maggio 2011)
  • Collana: Pragmatic Programmers
  • Lingua: Inglese
  • ISBN-10: 193435662X
  • ISBN-13: 978-1934356623
  • Peso di spedizione: 590 g
  • Media recensioni: 4.0 su 5 stelle  Visualizza tutte le recensioni (1 recensione cliente)

Vendi la versione digitale di questo libro nel Kindle Store

Se sei un editore o un autore e detieni i diritti digitali di un libro, puoi vendere la versione elettronica nel Kindle Store. Maggiori informazioni

Recensioni clienti

5 stelle
0
3 stelle
0
2 stelle
0
1 stella
0
4.0 su 5 stelle
4.0 su 5 stelle
Le recensioni più utili
4.0 su 5 stelle molto utile e ben scritto 17 gennaio 2013
Formato:Brossura|Acquisto verificato Amazon
Il libro è ben scritto ed è estremamente completo. Porta il test-driven development a un ambito, l'embedded, che tipicamente si considera lontano da simili approcci, e lo fa in una maniera molto comprensibile, rendendo ben chiari i vantaggi di un simile approccio in generale e in quest'ambito specifico.
Questa recensione ti è stata utile?
Le recensioni clienti più utili su Amazon.com (beta)
Amazon.com: 4.6 su 5 stelle  13 recensioni
8 di 8 persone hanno trovato utile la seguente recensione
4.0 su 5 stelle Just what I was looking for 2 giugno 2011
Di Jan-Harald Fredriksen - Pubblicato su Amazon.com
Formato:Brossura
As the other reviews have stated, this is a very good book. I had been looking for a book like this for a while, so I first picked this up in a beta version from the Pragmatic Programmers website.

The two first section give a wonderful introduction to TDD in C. By the end of the second section, Grenning has covered the reasons for doing TDD, looked at available tools, and introduced various methods (spies, test doubles, mocks) for breaking module dependencies during testing. Lots of code examples are included throughout. These two sections were by far the most useful to me. Having been a programmer for a number of years without doing TDD, I needed some convincing, so the "Yeah, but..." chapter was spot on.

The third section (Design and Continuous Improvement) feels a little bit more unfocused. It covers three rather large topics (SOLID design, refactoring, and working with legacy code) that all deserve (and have) whole books dedicated to them. It may be intended as further examples of how to apply TDD, and it does do a fine job of that.

In short, I think this book serves as a very good introduction to the topic. That does not mean, however, that it answered all my questions about TDD. Most of these question revolve around how these techniques scale up to larger projects and teams.
Two examples:
* In Chapter 10 it is stated that "Mocks enforce a strict ordering of interactions, which can lead to fragile tests ...". I would have loved to read some thoughts on when this is likely to occur, possible solutions, etc.
* The LED driver example is a good example, but it isn't immediately obvious how this approach would scale to larger hardware blocks (say, a co-processor).

Also, performance concerns are mentioned a few times, but may have had deserved a little more space. For example, in Chapter 3 it is stated that abstract data types are hidden (only forward declared in the header) from the caller. In its naïve form, this does not allow for inlined function calls, which can still be a performance problem on some platforms. A discussion on how to deal with issues like this would have been useful.
39 di 52 persone hanno trovato utile la seguente recensione
2.0 su 5 stelle There is nothing on embedded programming 5 luglio 2011
Di Maduranga Liyanage - Pubblicato su Amazon.com
Formato:Brossura
For those who don't want to go through the entire review, here's the summary: Despite including "Embedded C" in the title, this book does not include anything at all particular to embedded programming. This is an introduction to TDD book, and in my opinion not such a good one either.

Here's the breakdown:

I'm a firmware developer so I picked this book up because, (1) I wanted to learn TDD and, (2) I wanted to learn how to apply it to embedded programming. So I thought I can kill two birds with one stone buying this book. Sadly this book does a very poor job at both. In my opinion, anybody picking up a book on TDD is not a beginner in programming. This is a place the book gets things wrong first. It is unnecessarily overly verbose at times, explaining simple things duplicating before and after code snippets. On the other hand, some important points are not explaining enough. For example, the only two points I found useful in this book was link-time substitution and function pointer use. These are not new to a programmer, but I felt are very useful when applying TDD, especially when working with existing legacy code (which most of us will have to work on one time). But the book doesn't explain them in detail (as it does other very trivial topics).

And for the biggest dissapointement, this book has nothing special for embedded programming. The closest the author gets to an embedded system are the two exaplme projects he presents in the book, the LedDriver and the LightScheduler. These two are very simple to qualify as an embedded system, because usually an embedded system is much more complex than turning on an LED at the given time.

An embedded system program differs from a normal program in many ways. For example, an embedded system has to deal with interrupts, exceptions, DMA, memory accesses, wait states, serial/link port communications, synchronization, processing power, etc. There is absolutely nothing about this in this book. The only place you find anything about embedded is when author tells some "stories" about embedded projects and in appendix where a very short explanation to running on Linux and uC OS is presented.

Overall the book is disappointing because it doesn't deliver to its title embedded C. And then, even as a book on introduction to TDD, I cannot say I'm very impressed. It is very verbose when it clearly doesn't need to be, and not verbose enough when it should be.

I hope the author revises the book and put more embedded programming related contents because at this state the books' contents doesn't do justice to the title.
10 di 12 persone hanno trovato utile la seguente recensione
5.0 su 5 stelle The word is out. TDD works for C! 30 maggio 2011
Di Bas Vodde - Pubblicato su Amazon.com
Formato:Brossura
Test-Driven Development for C does exactly what the title promises you. It describes how to do Test-Driven Development in the C programming language. People have argued that Agile development is for modern projects, but not embedded ones. Test-Driven Development can work in Object-Oriented languages but not in programming languages like C. James proves this wrong by showing how you can test-drive you code in C.

The book consists of 4 different parts of which the last part are the appendices, which I'll skip in this review. The first part covers the basics of TDD, the second part discusses how to test a module that has dependencies with other modules. The third part discusses the design aspects of TDD.

The first chapter introduces the concept of test-driven development after which the author continues introducing the two unit test frameworks used in the book: Unity and CppUTest. In the third chapter, the LED example is introduced and used to clarify TDD. The fifth chapter dives in the embedded space and discusses dual targeting and other embedded C techniques. The first part ends with an summary of objections that people typically have against TDD and an counter argument for each other them.

The second part continues with a more complicated example (light automation system). This system has multiple modules and thus each of the modules need to be separated to be able to test it. Chapter 8 discusses link-time substitution and chapter 9 then dives into how to do this at run-time. Chapter 10 introduces Mock objects by first writing one by hand, and then introducing CppUTest mocking and CMock.

The last part dives into design. In the end, TDD is a design technique, so a TDD book couldn't do without diving deeper into design. Chapter 11 introduces the SOLID OO principles and shows that OO principles are valid principles... even when your programming language is not an OO language, such as C. Chapter 12 introduces refactoring in C and the different code smells that are common triggers to refactor. Chapter 13 covers how to deal with legacy code and, the last chapter, covers patterns for writing good (and bad) tests.

James Grenning's TDD is C is a very much needed book. Embedded software statistics in the world show that the amount of embedded software in the world is growing fast. Most of this embedded software is still done in C. The embedded software community hasn't learned the new development techniques that have changed application development the last 10 years, such as TDD. James finally introduces these important changes in development style to the embedded community. His book is easy to read, funny, and useful. Most of all, it was just needed! I have been doubting between 4 and 5 stars (4 as it does what it says, 5 because it is the first book of its kind) and decided to stick with 5 stars. Well done, James :)

Ricerca articoli simili per categoria