Thanks for the pointer.
What are the most common mistakes people do when explaining SRP, you think?
Cheers
Per
--
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.
Thanks for the pointer.
What are the most common mistakes people do when explaining SRP, you think?
Cheers
Per
Den 23 nov 2013 18:06 skrev "Terence McGhee" <terence...@gmail.com>:
After reviewing what's written here: goo.gl/HDUMuJ--I'm really surprised at just how many devs don't understand what the SOLID principles really are. Too much of what I read on the Internets (blog posts, stack exchange) is just plain wrong.Especially the SRP. So many devs think they know what this means and when I read their explanations, it's clear that they have no idea what they're talking about.I think that all devs need to understand and apply these principles and there must be something we can do (as a community) to get the real teachings of the SOLID principles assimilated to the group.
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.
> email to clean-code-discussion+unsub...@googlegroups.com.
I now have at least 2 actors who can demand changes.
- Infrastructure may want to move the data from SQL to a different persistence strategy or table structure.
- Presentation may want to change how the book is rendered
"I tend to start with the following:
- transport (e.g: web)
- business (the application itself)
- io (e.g: files, sql, mongo, redis, e-mail, etc...)"
I'd say that this is "just SOC" as it is of a more general, more technical nature that potentially applies to all use cases if a change is required in one of them, e.g. the database guys request to change the persistance mechanism from one system to another.
opposed to that, all of the layers (transport, persistance, business rules) would'd be affected, if for an actor a specific use case needed to regard a new field in an entity. or just the business rules would be affected if only a validation rule change is required.
maybe we could say that SRP not only applies SOC, but it also groups things together .. regarding contexts, actors, use cases?