Skip to main content
edited tags
Link
200_success
  • 144.2k
  • 22
  • 188
  • 473
deleted 4 characters in body; edited tags
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

The class fibonacci_Even_Sum_Calculator does two things: first, calculate the sum of the even-valued Fibonacci numbers; second, cache the results in a dictionary.

  1. calculate the sum of the even-valued Fibonacci numbers
  2. cache the results in a dictionary

Is this a sign that this code violates the Single Responsibility Principle?

The class fibonacci_Even_Sum_Calculator does two things: first, calculate the sum of the even-valued Fibonacci numbers; second, cache the results in a dictionary. Is this a sign that this code violates the Single Responsibility Principle?

The class fibonacci_Even_Sum_Calculator does two things:

  1. calculate the sum of the even-valued Fibonacci numbers
  2. cache the results in a dictionary

Is this a sign that this code violates the Single Responsibility Principle?

edited tags; edited title
Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Does this code violate Maintaining the Single Responsibility Principle? with Project Euler #2

edited tags
Link
Mathieu Guindon
  • 75.1k
  • 18
  • 191
  • 463
Loading
edited tags
Link
200_success
  • 144.2k
  • 22
  • 188
  • 473
Loading
Add project-euler tag; improve grammar; link explaining SRP
Source Link
Gareth Rees
  • 49.7k
  • 3
  • 129
  • 210
Loading
Source Link
Loading