Posted By: turrican | Nov 22nd, 2008 @ 10:58 PM
page 1 of 1
Comments: 20 | Views: 579
turrican
turrican
Condemnation without investigation is the height of ignorance! - Albert Einstein
I'm building a forum, how long is usually a signature field? 50 chars any good?
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
0 is best, I think. Tongue Out
W3bbo
W3bbo
The Master of Baiters
Ever heard of nvarchar?

And why are you reinventing the wheel, there are a load of very well-developed and easily extensible forum softwares available under FOSS licenses.
TommyCarlier
TommyCarlier
I want my scalps!
W3bbo, turrican has a valid point here. Sometimes people need to "reinvent the wheel" if the current wheel needs improvement. And sometimes it's fun to create something yourself, even if an equivalent already exists. Sometimes it's also easier to create something yourself (and have full control) than it is to use an existing solution and (try to) integrate it with your system.
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
I think if you must do signatures, 50 characters would be a bit too short. 200 or something would be better. I'd also limit it to something like 4 lines vertical space max (hard to enforce if you allow images though).

If this is actually, as W3bbo seems to have thought, a question about the field size in the database and not one of policy, then I would recommend using nvarchar(max) in this case and leaving the actual length restriction up to the forum administrator.
TommyCarlier
TommyCarlier
I want my scalps!
You must have misunderstood my post: I told W3bbo that you have a valid point.
Cupiditas
Cupiditas
Chris Hawkins
If this was, say, a client project, and you had two days to complete it in because your manager is an arsehole, then using a ready made solution would be a good idea. It's all about context.
TommyCarlier
TommyCarlier
I want my scalps!

In Defense of Not-Invented-Here Syndrome: if it's a core business function -- do it yourself, no matter what.

If you just need a forum for your website, it's better to use existing forum software, if building forum software is not your core business. If turrican wants to build forum software, not because he needs a forum for his website, but because he thinks he can write better forum software than what currently exists, then he SHOULD do it.

TommyCarlier
TommyCarlier
I want my scalps!

I'd also suggest using NVARCHAR(MAX). Just move the maximum length to the business layer, or to the configuration file.

NVARCHAR(MAX) actually works like NVARCHAR(n) if the data is small enough (data stored inline in the record) and like TEXT if the data is too large to fit in the record.

jh71283
jh71283
Throw new System.Beverage. OutOfCoffeeException​()
NVM. Flamebait.
jh71283
jh71283
Throw new System.Beverage. OutOfCoffeeException​()
++ on the Max.

Also, bear in mind that you may want to expand its capability in future to allow various types of formatting all of which take up charspace in the db.
VB Man
VB Man
Year of the Linux MCE.
How the hell do you know? Were you watching over everyone's shoulder when they were writing the software?

There have been allegations that Mark Zuckerberg stole the code.

If I recall, Google JUST finished up an OPEN SOURCE mobile operating system. They obviously like the ideas of sharing knowledge and not 're-inventing the wheel'.
W3bbo
W3bbo
The Master of Baiters
I was going to mention that, but decided not to for fear of being provocative.

Nonethless, of turrican's list:

Did FaceBook guys do it? Maybe. There are allegations that Zuckerberg plagarised it from his roommate
Did Google do it? No. But you cannot compare Google to a community website based on NIH. Google is it's search, whereas a community site is the community, it doesn't matter what software they run on
Did YouTube do it? Yes. Flash video has been around since 2002
Did Channel9 do it? Yes (oh the irony!). C9v1 was built on ASP.NET Forums, C9v2 used FlexWiki and and C9v3 involved Community Server
Did CNN do it? Maybe. Often news websites share the same CMS. CNN probably started off with a bought-in one, but I have no doubt their current one is developed in-house
Did Beta News do it? Yep. Their original forum software was off-the-shelf
Did Bink do it? Probably. Like most community sites they probably started off with some OTS software then developed their own as their needs progressed. Similar to DeviantArt, they started off with some Nuke installation in 2000 before writing their own in 2002/2003
Did Steam do it? Yes. Their site forum is vBulletin
Did Delphi3000 do it? Dunno. Never heard of them
Did Code Project do it? No....and look at the poor quality of the site and lack of recent quality submissions. The only reason they're still going is their intertia. They're on the way out for sure.
Did Experts Exchange do it? No. But Experts-Exchange is evil.
page 1 of 1
Comments: 20 | Views: 579
Microsoft Communities