2,124 reputation
614
bio website facebook.com/michel.henrich
location Brazil
age 23
visits member for 2 years, 11 months
seen 1 hour ago

Mar
10
reviewed Approve The dream of declarative programming
Mar
9
comment Is the Single Responsibility Principle applicable to functions?
@MichaelShaw yes, you're right - SRP does depend on how the organization is organized. That is exactly why I add "may" or "might" to all my comments :). However, even in those cases, while the code may not violate SRP, it surely does violate OCP.
Mar
9
comment Is the Single Responsibility Principle applicable to functions?
@MichaelShaw like in the quote from the book, if you need to introduce different employee types, you have to change the Employee class. Different roles may be responsible for the payment of different employee types, so in this case, the Employee class has to be changed for more than one role, hence the violation of SRP.
Mar
9
comment Is the Single Responsibility Principle applicable to functions?
@MichaelShaw different employee types may be "requested by different people" or "requested by different user roles", to use the words you quoted from the video. The calculatePay method would have to be changed for many different roles, thus, it violates SRP.
Mar
8
answered Is the Single Responsibility Principle applicable to functions?
Feb
21
reviewed No Action Needed mySQL / PHP design pattern - one function multiple queries
Feb
21
reviewed Reviewed Do I have to learn html and javascript to create web applications?
Feb
21
reviewed Reviewed Should there only be one controller per page within a JavaScript-based MVC architecture?
Feb
21
reviewed No Action Needed Working Agile on Mainframe
Feb
21
reviewed Reviewed Transactions and subresources with JAX-RS
Feb
21
reviewed Reviewed Convince Windows SmartScreen and web browser that my application is safe?
Feb
21
reviewed Reviewed Paired Programming - best approach
Feb
21
awarded  Citizen Patrol
Feb
21
reviewed Approve What is wrong with the Unlicense?
Feb
21
reviewed Reject How specific is too specific with css selectors?
Feb
19
reviewed Approve Why are there so few C compilers?
Feb
16
awarded  Custodian
Feb
16
reviewed Reviewed .NET software design and Oracle ODP.NET UDT
Feb
15
reviewed Approve Why is base-for-all-objects discouraged in C++
Feb
15
reviewed Reject Pattern for checking online service availability