user2660534
user2660534

Reputation: 23

Design Patterns for User Registration process

During an interview I was asked to create sample application for user registration/login with the following requirements

I completed this assignment without using design patterns. What design pattern would have been appropriate for user registration?

This question maybe a duplicate of this question

In that answer they have suggested using Microsoft Membership Provider, but is it not possible to implement the layered architecture?

Upvotes: 2

Views: 2723

Answers (1)

Ibrahim Najjar
Ibrahim Najjar

Reputation: 19423

I really hate when some one forces me to use a design pattern because they should emerge out of design.

Anyway, if I had to use something just for the sake of using I would go with the Repository pattern for structuring the data access layer and would use the Separated Interface design pattern mentioned by Martin Fowler to implement that, and to stuff in another one, I would go for the Layer Supertype pattern and make a base class for all domain layer entities such as user, admin, login_info, etc.

Upvotes: 2

Related Questions