Payroll code examples [ Clean Architecture ]

2,304 views
Skip to first unread message

Breno Sarkis

unread,
Aug 2, 2013, 12:41:29 PM8/2/13
to clean-code...@googlegroups.com
Hello Uncle Bob,

I've got both clean code and the clean coder's books and I'm seeking for a code example of the clean architecture you propose, I can't remember where it was but I'm sure you've mentioned that there's a coding example of the payroll system in your book "Agile Software Development, Principles, Patterns and practices",
so my question is, are these examples available only in this book? I've searched a bit and most of the links are dead due to posterous's departure.

I'm asking this, because although it seems simple when I see your diagrams, I'm often confused on how would the code of the boundarie layer look like and what interfaces should I create around the use cases implementation. Maybe those questions would go away with a coding example.

Thanks in advance.

Robert Snyder

unread,
Aug 2, 2013, 1:39:18 PM8/2/13
to clean-code...@googlegroups.com
I think i remember downloading the Payroll case study from CleanCoder.com (notice it is singular, and not plural) If it isnt' available there I believe i have it on one of my subversion servers somewhere and can zip it up and send it over.




--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
 
 

Terence McGhee

unread,
Aug 2, 2013, 4:53:32 PM8/2/13
to clean-code...@googlegroups.com
@Robert, I cannot find this code anywhere (and my searching skills are top notch).

I'd really appreciate it if you would email me the code from the case study.

Thanks!


On Friday, August 2, 2013 12:39:18 PM UTC-5, Robert Snyder wrote:
I think i remember downloading the Payroll case study from CleanCoder.com (notice it is singular, and not plural) If it isnt' available there I believe i have it on one of my subversion servers somewhere and can zip it up and send it over.
On Fri, Aug 2, 2013 at 11:41 AM, Breno Sarkis <sarki...@gmail.com> wrote:
Hello Uncle Bob,

I've got both clean code and the clean coder's books and I'm seeking for a code example of the clean architecture you propose, I can't remember where it was but I'm sure you've mentioned that there's a coding example of the payroll system in your book "Agile Software Development, Principles, Patterns and practices",
so my question is, are these examples available only in this book? I've searched a bit and most of the links are dead due to posterous's departure.

I'm asking this, because although it seems simple when I see your diagrams, I'm often confused on how would the code of the boundarie layer look like and what interfaces should I create around the use cases implementation. Maybe those questions would go away with a coding example.

Thanks in advance.


--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discussion+unsub...@googlegroups.com.

Mark Badolato

unread,
Aug 2, 2013, 5:01:55 PM8/2/13
to clean-code...@googlegroups.com
On Fri, Aug 2, 2013 at 1:53 PM, Terence McGhee <terence...@gmail.com> wrote:
@Robert, I cannot find this code anywhere (and my searching skills are top notch).

Google for "Robert Martin Payroll Example" , 3rd link down goes to a StackExchange page that has a link to


That page has (working!) links for zip files for the source from the original book, and the C# version

;-)

Cheers!
--mark



--
Mark Badolato 

Twitter: @MarkBadolato

Terence McGhee

unread,
Aug 2, 2013, 5:06:23 PM8/2/13
to clean-code...@googlegroups.com
That is so awesome!! Thank you!!

And of course, I was searching for "Payroll Case Study Uncle Bob" and found quite a few links that didn't work.

Thanks again!


--
The only way to go fast is to go well.
---
You received this message because you are subscribed to a topic in the Google Groups "Clean Code Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clean-code-discussion/dOlxMHoqmkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clean-code-discu...@googlegroups.com.

To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
 
 



--
Terence

Robert Snyder

unread,
Aug 2, 2013, 5:08:33 PM8/2/13
to clean-code...@googlegroups.com


You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discu...@googlegroups.com.

Uncle Bob

unread,
Aug 2, 2013, 5:40:38 PM8/2/13
to clean-code...@googlegroups.com
The best place to get it, and much of the other source code from the book is from my dropbox:

Terence McGhee

unread,
Aug 2, 2013, 7:25:24 PM8/2/13
to clean-code...@googlegroups.com
This just keeps getting better and better!

Thanks UB


On Fri, Aug 2, 2013 at 4:40 PM, Uncle Bob <uncl...@8thlight.com> wrote:
The best place to get it, and much of the other source code from the book is from my dropbox:

--
The only way to go fast is to go well.
---
You received this message because you are subscribed to a topic in the Google Groups "Clean Code Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clean-code-discussion/dOlxMHoqmkM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
 
 



--
Terence
Reply all
Reply to author
Forward
0 new messages