Click here to Skip to main content
15,890,579 members

peterchen - Professional Profile



Summary

    Blog RSS
46,920
Author
2,896
Authority
98,630
Debator
37
Editor
232
Enquirer
4,330
Organiser
5,438
Participant
Peter is tired of being called "Mr. Chen", even so certain individuals insist on it. No, he's not chinese.

Peter has seen lots of boxes you youngsters wouldn't even accept as calculators. He is proud of having visited the insides of a 16 Bit Machine.

In his spare time he ponders new ways of turning groceries into biohazards, or tries to coax South American officials to add some stamps to his passport.

Beyond these trivialities Peter works for Klippel[^], a small german company that wants to make mankind happier by selling them novel loudspeaker measurement equipment.


Where are you from?[^]



Please, if you are using one of my articles for anything, just leave me a comment. Seeing that this stuff is actually useful to someone is what keeps me posting and updating them.
Should you happen to not like it, tell me, too

Groups

Below is the list of groups in which the member is participating

United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Collaborative Group
This member has Member status in this group

41 members
United States United States
This _private_ forum is set up to be a place where political and social issues, including American politics and global warming, can be discussed in a reasonably civil manner. Anyone who has been an active member* of Code Project for six months is welcome to apply for membership but this forum does not tolerate trolling posts, or posters who wish to be disagreeable. Those who choose to become uncivil, insulting, or childish will be warned and, for repeated violations, removed from membership.

* That means that you have posted regularly or had at least one article published.

For member complaints and suggestions, contact the forum administrator at ...
cp[soapbox1[0 at gmail.com
Remove the [ characters and replace them by a period.
This is a Social Group
This member has Member status in this group

192 members

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralRe: Proposal: Code Snippet Library Pin
Jason Henderson7-Jun-03 17:56
Jason Henderson7-Jun-03 17:56 
GeneralRe: Proposal: Code Snippet Library Pin
Paul Watson7-Jun-03 23:07
sitebuilderPaul Watson7-Jun-03 23:07 
GeneralRe: Proposal: Code Snippet Library Pin
Jason Henderson7-Jun-03 18:58
Jason Henderson7-Jun-03 18:58 
GeneralRe: Proposal: Code Snippet Library Pin
Paul Watson7-Jun-03 23:28
sitebuilderPaul Watson7-Jun-03 23:28 
GeneralRe: Proposal: Code Snippet Library Pin
Jason Henderson7-Jun-03 19:00
Jason Henderson7-Jun-03 19:00 
GeneralSecond Foundation Pin
Paul Watson7-Jun-03 23:45
sitebuilderPaul Watson7-Jun-03 23:45 
GeneralRe: Second Foundation Pin
Jason Henderson8-Jun-03 9:36
Jason Henderson8-Jun-03 9:36 
GeneralRe: Proposal: Code Snippet Library Pin
peterchen9-Jun-03 23:57
peterchen9-Jun-03 23:57 
OK Paul, let's take number two Wink | ;)

3 use cases:
agree.
I hope to count on your Experience for No. 3 - Code Community Wink | ;) My webdev experience tops at a 6-person-intranet...

Storage:
Yes, I thought of XML because it's extensible and text. Yet, extracting the snippet from the XML file won't be that easy... (and we have to escape the snippet text)
I like the idea of using a folder structure for the storage, so CG can move around snippets by himself, folders can be used for "access control" (e.g. allow person A to access Folders X and Y...). Small teams could set up a shared snippet library on a file server etc. and implement security restrictions by themselves if required.
Problem: "CodeCommunity" does indeed need an index DB, but this needs to be re-index everytime CG moves around some snippets by hand.

Attribute Templates:
Definitely a good idea.
I already considered a "free" list of attributes for each snippet, just a map string name -> string value. There can be predefined attributes like "Language" (which affects the syntax colorer choosen) etc.
The template can store a set of attributes, with both default values, and "possible" values. e.g. Template "C++ snippet":
Language: C++
Target Platform : [empty] { Win32 | MFC | ANSI C++ | ... }
By just selecting "C++ snippet" I get the correct markup, and relevant fields, and can quickly pick "Win32" as platform.
(Of course, the setup provides default templates, and the user can make new ones)

Using only strings as attributes:
Might seems like an arbitrary restriction. However, the only relevant non-string attribute I can think of (i.e. that needs custom sorting) is "Date", but this can be stored as YYYY-MM-DD string, so it sorts correctly. Allowing arbitrary types as attributes seems to add quite some complexity without much benefit.
Your opinion?

Many-to-Many:
We definitely need a many-to-many indexing, but my experience is that people work better with "strict" hierarchies as long as complexity allows - and even beyond that. So I would favor a "Hierarchical" access (correlating with the storage structure) and a "M:N" - access (probably based on keywords and/or attributes)

Language Dependance
A simple version can well live without any knowledge of the language the snippet is in.
Language dependency only comes in with syntax coloring, search, etc.

Binaries:
Hot topic, I agree...
If we take them in, CodeCommunity and CodeTeam should both allow to
- limit adding binaries to individual users/directories
- allow setting a size limit
- allow all users to filter out binaries

Storage - as seen by user
CristianGraus and CodeTeam probaly get along well with a "local store" (i.e. accessible via the file system), and the possibility of importing a "remote" folder (creating a local copy) from an e-mail, a web server, or a P2P connection
(This is the only case where I see P2P could be handy - sharing over the internet without setting up a server. However, it makes sense only when we can piggyback a well-known IM client)

The Server.. needs to be different.
First, it should be applicable as "Web only", i.e. you can search snippets, copy them to the clipboard, etc.
Second, the client should be able to connect to it, so people can use the dedicated client to browse the library. However, we must avoid people DL'ing the whole snippet library and stalling the connection. (btw. A "proactive" solution would be offering a complete zipp'ed archive)
Well... here I need your ideas.

btw. could you contact me by IM again (tonite, or any evening)? Didn't store your ID... Would be good if we could discuss some "administrative" stuff, and basic design (like what langs to use and how to go on) P2P.


"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS

sighist | Agile Programming | doxygen

GeneralRe: Proposal: Code Snippet Library Pin
Steve McLenithan8-Jul-03 1:15
Steve McLenithan8-Jul-03 1:15 
GeneralRe: Proposal: Code Snippet Library Pin
woodsprite24-Jul-09 12:27
woodsprite24-Jul-09 12:27 
GeneralWhy not SourceForge? Pin
peterchen2-Jun-03 4:42
peterchen2-Jun-03 4:42 
GeneralRe: Why not SourceForge? Pin
Jamie Hale2-Jun-03 5:14
Jamie Hale2-Jun-03 5:14 
GeneralAuthoring Pin
Paul Watson2-Jun-03 6:41
sitebuilderPaul Watson2-Jun-03 6:41 
GeneralRe: Authoring Pin
Jamie Hale2-Jun-03 6:48
Jamie Hale2-Jun-03 6:48 
GeneralRe: Authoring Pin
jhaga2-Jun-03 7:00
professionaljhaga2-Jun-03 7:00 
GeneralRe: Authoring Pin
peterchen2-Jun-03 9:02
peterchen2-Jun-03 9:02 
GeneralRe: Authoring Pin
jhaga2-Jun-03 10:41
professionaljhaga2-Jun-03 10:41 
GeneralRe: Authoring Pin
Jason Henderson2-Jun-03 7:02
Jason Henderson2-Jun-03 7:02 
GeneralRe: Why not SourceForge? Pin
jhaga2-Jun-03 5:17
professionaljhaga2-Jun-03 5:17 
GeneralRe: Why not SourceForge? Pin
Andreas Saurwein2-Jun-03 5:34
Andreas Saurwein2-Jun-03 5:34 
GeneralRe: Why not SourceForge? Pin
jhaga2-Jun-03 5:47
professionaljhaga2-Jun-03 5:47 
GeneralRe: Why not SourceForge? Pin
Marc Clifton2-Jun-03 7:30
mvaMarc Clifton2-Jun-03 7:30 
GeneralRe: Why not SourceForge? Pin
jhaga2-Jun-03 7:46
professionaljhaga2-Jun-03 7:46 
GeneralRe: Why not SourceForge? Pin
Jason Henderson2-Jun-03 5:58
Jason Henderson2-Jun-03 5:58 
GeneralRe: Why not SourceForge? Pin
JoeSox2-Jun-03 6:13
JoeSox2-Jun-03 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.