user profile definition issue

扶醉桌前 提交于 2019-12-23 03:09:35

问题


I am developing a website and I need to build a data structure to store user profile information. Just like what we filled about our gender/age/education/etc. information for Facebook, etc.

The current issues I met with are,

  1. Currently I may not consider all required user profile information from current design/development phase, how to design a extensible framework so that in the future I could extend user profile esaily? Are there any mature (open source) user profile framework to reference?
  2. Are there any standards about what are the standard items we need to collect in user profile?
  3. How to make it secure/flexible to share user profile information for different applications? For example, app1 just need a part of user profile, and for security reason I only need to expose a part of user profile to app1. But we need to make it flexible enough so that when app1 needs additional user profile items, we could easily expose more.

Solution in C# or in programming language neutral are appreciated.


回答1:


There's nothing special about user profiles. What you are asking for applies to nearly every app I've ever worked on: store and share data.

Different platforms are better at different things but there's no silver bullet for this problem--this is what software is all about.

For example, you can create a users table in a database and some CRUD screens to manage it. You could create an API into that data using any number of approaches.

When your requirements change, repeat (and hope you don't have to change too much).



来源:https://stackoverflow.com/questions/937882/user-profile-definition-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!