The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
85 views

More appropriate to validate a dependency filter parameter by mock+stub or by expression compile?

My lead is enforcing TDD on our project. He says he's following Uncle Bob (Robert Martin) and SOLID principles. One of the rules he's reinforcing is what I call "the single cog rule"--there should be ...
0
votes
1answer
297 views

Single responsibility: how does this code cause problems?

Given the following interface interface Modem { public void Dial(string pno); public void Hangup(); public void Send(char c); public char Recv(); } Uncle Bob writes However, ...
0
votes
1answer
179 views

Does my use of the strategy pattern violate the fundamental MVC pattern in iOS?

I'm about to use the 'strategy' pattern in my iOS app, but feel like my approach violates the somehow fundamental MVC pattern. My app is displaying visual "stories", and a Story consists (i.e. has ...
1
vote
1answer
471 views

Should Uncle Bob's example be refactored to an AbstractFactory or a SimpleFactory?

In the book "Clean Code" Robert Martin makes a statement regarding the following code: public Money calculatePay(Employee e) throws InvalidEmployeeType { switch (e.type) { case COMMISSIONED: ...
5
votes
2answers
674 views

Are “Clean Code” practices really that clean and useful? [closed]

I am currently doing an internship in a large corporation and they are undergoing many changes in software delivery structure (moving to Agile). In the past couple of months I have noticed this ...
8
votes
2answers
872 views

What does Uncle Bob mean by 'noun phrase names'?

I am reading Clean Code by Uncle Bob. Because I am not a native-English speaker, I couldn't understand following statement: Classes and objects should have noun or noun phrase names like ...
2
votes
2answers
2k views

“Agile Principles, Patterns, and Practices in C#”: Is this just a .NET-translation of the popular Uncle Bob book? [closed]

I found this book sold on Amazon Agile Principles, Patterns, and Practices in C#, written by Robert C Martin and Micah Martin. Is it merely a .NET port of the older, more popular Agile Software ...
4
votes
1answer
637 views

When is a Use Case layer needed?

In his blog post The Clean Architecture Uncle Bob suggests a 4-layer architecture. I understand the separation between business rules, interfaces and infrastructure, but I wonder if/when it's ...
107
votes
11answers
35k views

Why is Clean Code suggesting avoiding protected variables?

Clean Code suggests avoiding protected variables in the "Vertical Distance" section of the "Formatting" chapter: Concepts that are closely related should be kept vertically close to each other. ...
2
votes
2answers
658 views

What is the significance of 10 characters in this Uncle Bob post?

In this blog posting by Uncle Bob http://blog.8thlight.com/uncle-bob/2012/04/20/Why-Is-Estimating-So-Hard.html Author states a possible solution to the problem at hand. He writes "Try this. Break ...
19
votes
3answers
5k views

Are There Any Examples of Uncle Bob's High-Falutin' Architecture? [closed]

I just finished watching this presentation by Uncle Bob (as well as his "Architecture" section of his "Clean Code" videos), but I'm left wondering: Are there any examples out there of applications ...
23
votes
2answers
7k views

Should I buy Clean Code after reading The Clean Coder? [closed]

I"m currently reading The Clean Coder by Robert C. Martin. It's a great book and I'm learning a lot from it. My objective is to become a "professional" programmer so I'm trying to learn the most I ...