题目内容

OmniAuth defines a handful of RESTful endpoints your app must provide to handle authentication with a variety of third parties. To add a new auth provider, you create a gem that works with that provider. Which statement is FALSE about OmniAuth?

A. OmniAuth is itself compliant with OCP Using OmniAuth helps your app follow
B. OCP (with respect to 3rd-party authentication)
C. OmniAuth is an example of the Template pattern
D. OmniAuth is an example of the Strategy pattern

查看答案
更多问题

Which is true about a class's observance of the Single Responsibility Principle?

A. In general, we would expect to see a correlation between poor cohesion score and poor SOFA metrics
B. Low cohesion is a possible indicator of an opportunity to extract a class
C. If a class respects SRP, its methods probably respect SOFA
D. If a class's methods respect SOFA, the class probably respects SRP

The Rails ActiveRecord caching machinery nicely separates the logic for cache expiration from the rest of the app by adding ActiveRecord hooks to expire stale data. This is an example of effective use of the ---- design pattern.

A. Observer
B. Strategy
C. Factory
D. Singleton

Which of the following statements is FALSE?

A. Software that uses more design patterns isn’t necessarily better.
B. Well-designed software can evolve to the point where patterns become antipatterns.
C. Trying to apply design patterns too early can be just as bad as applying them too late.
D. Most design patterns are specific to a particular subset of programming languages.

Which expression statement regarding Reviews and Meetings is FALSE?

A. Intended to improve the quality of the software product using the wisdom of the attendees
B. They result in technical information exchange and can be highly educational for junior people
Can be beneficial to both presenters and attendees
D. The A’s in SAMOSA stands for Agenda and Action items, which are optional pieces of good meetings

答案查题题库