View Poll Results: Do you want a Code Snippets forum or sub-forums

Voters
17. You may not vote on this poll
  • Yes, a Code Snippets forum or sub-forums seems as a good idea

    9 52.94%
  • No, this is a waste of time

    7 41.18%
  • dunno, dun care

    1 5.88%

Thread: Code Snippets?

  1. #16
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Quote Originally Posted by zacs7 View Post
    Don't hide the poll voters, I like to judge people
    dunno how to change it, also that's a bad attitude o.o
    Currently research OpenGL

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Hmmm...but isn't that the point of the board? People helping other people with programming?
    Yes, but that's about specific needs. Someone comes here with a concrete problem, and others help solve it.

    Snippets are about solutions that may or may not have specific needs. Because there is no immediate need, the motivation to actually go there and look them over is considerably lower. (At least mine. I can't speak for others, of course.)
    Also, the people who are most typically motivated to post snippets are beginners who just discovered something new and feel like they should share it - however, these are usually low-quality. A prime example of what comes from snippet boards is the xor swap.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #18
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by CornedBee View Post
    A prime example of what comes from snippet boards is the xor swap.
    Uh oh

    In all seriousness it still does seem like not a bad idea IMO. Of course the most urgent problems are the normal ones on the normal board, but I don't think it would be bad for people, beginner or otherwise, to do exactly what CornedBee is talking about and have other people, when they are in the mood, come along and say, "Well, your code could be improved in these ways" or even "You are delusional, give up". As long as the snippets forum has a caveat: There is no formal review policy, use at your own risk.

    The cprogramming snippets section referred to earlier in the thread does not appear to have a review policy either, just a vote n' rate thing, which means there are no specific comments vis. what is good or bad about a particular snippet, since no one can post a response.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #19
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    When new boards are made, they should come at a benefit to everyone. I don't think this site is going to generate the code snippets that the old timers would actually use (but I'm speaking for myself), and to announce something like "Everyone who knows what they're doing doesn't read this board" is a lot like saying "spam this board with broken examples from books". It lowers the quality of the board. Newbies will now be using poorly written code in their homework.

    Not to mention this might only enable people who don't want to learn and already spam our board. There are a couple I could name.

    And nothing we do with the new board will be like what daniweb already does or has here.

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    To be fair, there are other places to upload code snippets. If we want high-quality snippets, then we might post here first and make it robust before uploading elsewhere.
    Otherwise you might that idea and make a snippet board. Posts are made in the C/C++ forums with the snippets, and are fixed up, then submitted to the snippets board, usually by a moderator. It makes for an archive for anyone who wants to share some snippets of code.
    Of course, that opens up another can of worms. Should there be some quality control? How is the quality check done?

    I'm standing neutral on this one.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    How do neutral votes count if this is going to decide anything, anyway?

  7. #22
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    *shrug*
    I'm neither for nor against either option, I'm just putting in some more info, so to speak.
    Someone else will have to decide. I will simply abide with the decision.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #23
    The Registered User Aparavoid's Avatar
    Join Date
    May 2009
    Posts
    74
    I think it's a good idea. Most people post on the C/C++ boards if they have a problem and not just to share code and hear some responces.

  9. #24
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    I would be for a section of cprogramming.com that was more dedicated to snippets than it already has; were users could submit code, and have the mods verify it first of course.

    But it's a bad idea to make another board for it. I agree that you'd get alot of garbage in there, and any real discussions would be minimal.

  10. #25
    Trying to Learn C nathanpc's Avatar
    Join Date
    Jul 2009
    Location
    Brazil
    Posts
    72
    Sure, this is a very good ideia, a place in the forum that you can post your code snnippets, for all commment and make it better. This is the better thing to do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Storing Code Snippets
    By saeculum in forum Linux Programming
    Replies: 1
    Last Post: 03-15-2009, 08:47 PM
  2. Joining these code snippets
    By spadez in forum C Programming
    Replies: 4
    Last Post: 02-07-2009, 04:07 PM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Couple Code Snippets
    By Unregistered in forum Game Programming
    Replies: 1
    Last Post: 01-22-2002, 02:23 AM