What's the difference between design patterns and design principles?

前端 未结 4 1366
囚心锁ツ
囚心锁ツ 2020-12-24 14:50

I\'m new to Ruby on Rails, and I went through these articles.

  • Design Patterns in Ruby: Observer, Singleton
  • Design Patterns in Ruby

But

4条回答
  •  感情败类
    2020-12-24 15:05

    To some extent, we can refer principles as a set of rules that we can follow in every step of programming, but patterns are a set of structured solutions for some specific problems that we may face during coding -not always happening.

提交回复
热议问题