Originally posted by Kuldeep Yadav:
Hi Robert,
But that lead to thousands methods in single class.
Is it then clean code ? Also calling number of method will completly destroy
abstraction of you code. isn't it ?
Originally posted by kelahcim kela:
Hello Robert,
as far as I can see your book is available through the Oreilly's Safari on-line catalog. Do you plan to publish it as a PDF as well?
Originally posted by kri shan:
We have been writing the code two years, now we are thinking of adding comments for most of the logic instead of adding the code comments during coding. Is it good idea ? What is the risk of adding code comments after too many code deliveries to the customer.
Originally posted by Adeel Ansari:
Is there any emphasis on continuous inspection in the book. I mean how we should practice this. Or may be best practices or something?
Originally posted by Ilja Preuss:
What name would you you give to a thread-safe hibernate implementation of a DAO for Administrator instances?
Originally posted by Ilja Preuss:
Mhh, yes... but - you will still have to catch BaseException, too, because that is what the interface declares. Of couse you know that it can't be thrown, but unfortunately, the compiler doesn't.
Mhh, just remembered that you prefer RuntimeExcptions. Problem solved.
[ September 25, 2008: Message edited by: Ilja Preuss ]
Originally posted by Tomasz Prus:
TDD question: How should i test domain classes when they have only getters and setters, what can i test? I heard that testing field accessors is nonsense.
Originally posted by Rogerio Kioshi:
Hi,
Many times we get some application whose code is not very well written, but the application is working fine.
Do you think is it a waste of time refactoring something like this, if the whole application was written in a way you consider not so clean?
Thank you.
Originally posted by Adeel Ansari:
May we say this book is sort of a new version of Martin Fowler's Refactoring?
Originally posted by Radoslaw Zubek:
I have problem with some way of encapsulating boilerplate code. To avoid writing some part of code for http requests and responses each time, I decided to encapsulate it in one method. This method gets only query string and listener for response.
My problem is, that I have to throw a various exceptions depends on 'status' variable and this exceptions are thrown through 'BaseException'.
My question is how to avoid this ugly code for casting exceptions and encapsulate some boilerplate code.
Originally posted by Tomasz Prus:
What about such class names like "ThreadSafetyAdministratorHibernateDAO", is it good? Sometimes there is really problem
Originally posted by Tomasz Prus:
I heard from someone such advise to use everywhere interfaces where it is possible. Is it good to extract always interfaces or should i do it just when i need it?
Originally posted by Paul Wallace:
Hi,
What do you consider the essential "agile toolkit" that a developer should use, for example:
Dependency Injection - to enable mock objects to be inserted into unit tests, what DI frameworks would you consider?
Testing Frameworks?
What else?
Regards,
Paul
Originally posted by Joshua Smith:
Martin-
In my place of work we have some green fields code, but a lot of it is inherited. Does your Clean Code book describe how to handle legacy code or does it assume you're architecting from the ground up?
Thanks,
Joshua Smith
Originally posted by greg fuentes:
Does clean code involve "Programming to an interface" and keeping methods as Generic as possible?