View Poll Results: Do you agree that the code tag checking script should be restored

Voters
59. You may not vote on this poll
  • Yes

    53 89.83%
  • No

    6 10.17%

Thread: Please restore the code tag checking script

  1. #16
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    function(int a);
    That script will prevent me to send this post?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #17
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    That's the point. It's not operational. it used to be, but now it's not.

    For that one-liner you posted, it's ok, cause it's not messy etc, but some people had childish infactuations with posting 1,000,000, slight exaggeration, line chunks of code with no tags. I don't know about anyone else, but I couldn't read them!!

  3. #18
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    What about an auto tagger?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  4. #19
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >What about an auto tagger?
    Only if it can be explicitly overridden. I doubt I'm the only one who cares about the presentation of a post, and automatic solutions tend to hurt that.
    My best code is written with the delete key.

  5. #20
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    How could the thing know where the code starts and ends?eg -

    something me ( "Who knows what this does! It could be a function or someone's opinion" ); and some people know when to use ;'s instead of ,'s. haha

    me.extra lines;

    it would be nice, but hard to standardise unless everyone used the same rules, and if they won't put the tags on themselves, granted, it's very hard to do, they won't conform!

  6. #21
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    That's it! Cprog Style Guidelines! Any post that fails to follow them is automatically tossed into the bit bucket. And of course, the style guidelines will reflect my style because I'm just that awesome.
    My best code is written with the delete key.

  7. #22
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    I agree, your style reflects mine ... or is it mine reflects yours ... Why don't you write up the standards for CBoard for us then

  8. #23
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I wouldn't mind a fixed style even if it didn't reflect mine. Some forums actually have that, don't they?

    The only thing that I really don't like is the ANSI style when it comes to how curly braces are placed.

    Code:
    void function()
    {
       blabla...
    }
    ugh!
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #24
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    WHAT! Have you no shame? Are you a

    Code:
    void function(){
       blabla...
    }
    Kida person? I hate them ... I'm going to have to reconsider putting MURK on my site

  10. #25
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Ok, ok. Darn! I will change my whole coding style just not to lose this opportunity
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  11. #26
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Another international crisis avoided! Phfew!

    (I normally hate using them, but) lol
    Last edited by twomers; 08-17-2006 at 03:05 PM.

  12. #27
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Only if it can be explicitly overridden. I doubt I'm the only one who cares about the presentation of a post, and automatic solutions tend to hurt that.
    There can be a checkbox for it.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  13. #28
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    >> it would be nice, but hard to standardise unless everyone used the same rules, and if they won't put the tags on themselves, granted, it's very hard to do, they won't conform!

    IMO, If they won't use the tags, they won'y check the box!! Especially the 'newbs'.

    EDIT - I can't believe you voted against it, siavoshkc! (sorry to everyone else), but which would you prefer to look at?

    Code from here
    Code:
    int Stuff::save(Stuff *sPtr)
    {
       ofstream outfile("Outfile.txt");
    
       if( !outfile )
       {
          cerr << "Couldn't open file" << endl;
          return 1;
       }
    
       outfile << sPtr->string << endl << sPtr->stringTwo << endl << sPtr->num << endl;
    
       outfile.close();  // I don't trust destructors
    
       return 0;
    }
    
    int main()
    {
       Stuff stuffObject;
    
       strcpy(stuffObject.string, "Hello");
       strcpy(stuffObject.stringTwo, "Yo");
       stuffObject.num = 10;
    
       stuffObject.save(&stuffObject);
    
       return 0;
    }
    or


    int Stuff::save(Stuff *sPtr)
    {
    ofstream outfile("Outfile.txt");

    if( !outfile )
    {
    cerr << "Couldn't open file" << endl;
    return 1;
    }

    outfile << sPtr->string << endl
    << sPtr->stringTwo << endl
    << sPtr->num << endl;

    outfile.close(); // I don't trust destructors

    return 0;
    }

    int main()
    {
    Stuff stuffObject;

    strcpy(stuffObject.string, "Hello");
    strcpy(stuffObject.stringTwo, "Yo");
    stuffObject.num = 10;

    stuffObject.save(&stuffObject);

    return 0;
    }


    there's no option!!
    Last edited by twomers; 08-17-2006 at 03:30 PM.

  14. #29
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Honestly,

    Sure, code tags make the board look prettier, but we can tell the difference between code or text without the tags.

    EDIT:

    Although, the fact that the code tags support indenting is nice.

    It shouldn't be enforced. If someone brings in their code sloppiely, then they just risk having people stay away from their post. So they decided.
    Last edited by Queatrix; 08-17-2006 at 03:36 PM.

  15. #30
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    True, but I personally won't look at code without tags (slight exaggeration, but not by far!!) - it takes four seconds to code tag something. Even if it's not formatted, or whatever, it's nice to distinguish code from not-code at a glance!
    Last edited by twomers; 08-17-2006 at 03:58 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. checking for a code in a string
    By shin_ono in forum C Programming
    Replies: 13
    Last Post: 10-01-2008, 02:04 AM
  2. Looking for Code Analysis / Checking Tool
    By nvoigt in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-01-2007, 03:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. file existance checking /w code
    By Shadow in forum C Programming
    Replies: 2
    Last Post: 02-08-2002, 02:40 PM