Reputation
2,309
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
7 14
Newest
 Yearling
Impact
~16k people reached

  • 0 posts edited
  • 7 helpful flags
  • 79 votes cast
Aug
9
answered Does declaring a field as final force redundancy in the constructors?
Apr
27
reviewed Approve How to convince teammates to use TDD
Apr
16
awarded  Yearling
Apr
12
reviewed Approve Using subroutines to return values?
Apr
12
reviewed Approve Groups relationships - Detailed or Direct?
Apr
6
answered Property based testing without reimplementing the code under test
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?