singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[REQUIREMENT] [Ruby] Revisit design and class diagrams, then refactor code

Open jessiejuachon opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

  • [x] It is unclear what design patterns are used, if any, in the library.
  • [x] Some terminologies are inconsistent (e.g. "source" vs "default" vs "fallback")
  • [x] Some code logic implementations are duplicated / complex.
  • [x] Mark internal methods as private
  • [x] Add source comparison
  • [x] Only one same request(component-locale combination) is allowed at the same time
  • [x] Config class
    • It has many unnecessary code and needs to refractor.
    • Add necessary configuration items and remove uncessary configuration items.
  • [x] Refractor cache module to use lock to make sure concurrency safe.
  • [x] Refractor logger
  • [x] Define new interfaces to make client easy-to-use.

Describe the solution you'd like A clear and concise product design that may include class diagrams and and/or design patterns used. Multiple small refactor-related PRs.

jessiejuachon avatar Mar 08 '22 17:03 jessiejuachon