Duplicate Snippets

Why are they there?

Page 1 of 1

7 Replies - 808 Views - Last Post: 25 March 2009 - 02:16 PM

#1 Hyper   User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Duplicate Snippets

Posted 14 March 2009 - 05:46 PM

Just in the C++ section alone, here are all the duplicate snippets for "changing text color:"
- http://www.dreaminco...snippet1857.htm
- http://www.dreaminco.../snippet925.htm
- http://www.dreaminco...snippet1491.htm
- http://www.dreaminco.../snippet680.htm
- http://www.dreaminco.../snippet467.htm ("class" contains it)

Also they are unsorted it would seem. They could be sorted by the type they are:
- Recrusion
- Sorts (Bubble, Quick, QSort, Bucket, etc)
- String manipulation
- Encryption
- STL related (Vectors, Lists, Stacks, Queues, Linked Lists, etc)
- Misc. (anything that isn't catagorizable, such as KYA's source.. thing: KYA)

Perhaps I'm the only one who finds this annoying and wasteful. Hopefully it can be organized better. :/
EDIT: Oh, and I'd like to point out I'm not trying to discredit anybody for their work, however!

Quote

Snippet Guidelines
A Code Snippet is a useful piece of code which accomplishes a common task, demonstrates a technique or concept, fills a gap in an existing language, and could be reused in an existing application. Snippets should be well commented and explain the concepts being used. Snippets should be useful to a wide audience. Snippets should conform to standards when possible.

Snippets should not simply be an example of a built in function or library. Snippets should not be full applications unless the application demonstrates a useful concept. Snippets should not be malicious or violate any laws (including intellectual property laws).


Also, somewhere it had said "Do not post if it can be found in the search engine easily".

Is This A Good Question/Topic? 0
  • +

Replies To: Duplicate Snippets

#2 capty99   User is offline

  • i am colt mccoy
  • member icon

Reputation: 100
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Re: Duplicate Snippets

Posted 14 March 2009 - 07:35 PM

maybe if you weren't such a lazy bum you could get yourself some moderator priveleges and take care of it yourself.

..... people these days.....

expect everything to be handed to you on a plate.

:)
Was This Post Helpful? 0
  • +
  • -

#3 Hyper   User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: Duplicate Snippets

Posted 15 March 2009 - 01:04 PM

You know, if I was a moderator, and moderators had that ability, I would gladly sit there and sift through and catagorize each snippet.

If I was the webmaster, I would've created a way to sort it from the git-go, but I'm not. So I can't, haven't, and most likely won't.

I've never expected anything to be handed to me on a silver platter.

This post has been edited by Hyper: 15 March 2009 - 01:04 PM

Was This Post Helpful? 0
  • +
  • -

#4 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3213
  • View blog
  • Posts: 19,241
  • Joined: 14-September 07

Re: Duplicate Snippets

Posted 15 March 2009 - 05:13 PM

The snippet system is currently planned to get a massive overhaul.
Was This Post Helpful? 0
  • +
  • -

#5 MitkOK   User is offline

  • D.I.C Regular
  • member icon

Reputation: 33
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Duplicate Snippets

Posted 24 March 2009 - 09:01 AM

And this is planned since 2007 ?
Was This Post Helpful? 0
  • +
  • -

#6 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1981
  • View blog
  • Posts: 20,434
  • Joined: 17-March 01

Re: Duplicate Snippets

Posted 24 March 2009 - 09:36 AM

No. It was redone once already MitkOK. We are planning another rebuild in the coming months. I know English is not your primary language, but ALL of your posts come across as "HEY ASSHOLE, WHEN ARE YOU GOING TO RE-DO THE FUCKING SNIPPETS AREA". Just sayin.

We're working on it. Takes time, money, and people.
Was This Post Helpful? 0
  • +
  • -

#7 MitkOK   User is offline

  • D.I.C Regular
  • member icon

Reputation: 33
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Duplicate Snippets

Posted 25 March 2009 - 12:14 AM

You're right. That's in my mind. Because I think sharing pieces of code is really important. And if I sound like an ASSHOLE to push this, I'm sorry.

PS: As I said before, here are some really good coders. Make the snippet system DIC public project and you'll see how many people will want to help. Cause in the end, that's community all about. Right ?

This post has been edited by MitkOK: 25 March 2009 - 12:17 AM

Was This Post Helpful? 0
  • +
  • -

#8 NickDMax   User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2255
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: Duplicate Snippets

Posted 25 March 2009 - 02:16 PM

@Hyper -- each snippet has its own approach (although 2 of those are very similar -- and one has nothing to do with color change, don't know why you included it on the list). You didn't even list all of the C version of the code.

I think it is good to show different views of an approach. It has the potential to help people understand how something works vs just coping a bit of *magic code*.

I too wish there was a way to sort of filter the data, though I think a folksonomy (tagging) would work better than a taxonomy. Taxonomies require someone to file something under a certain heading (is a quick-sort a recursive algorithm or a sorting algorithm?) and often that is just not very helpful.

Folksonomies have actually worked very well on social sites and it is becoming one of the staples of "Web 2.0" so it might be nice to see it come to Dream.In.Code.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1