Thread: peeves that pet... really badly about the language... of C/++... that is...

  1. #1
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459

    peeves that pet... really badly about the language... of C/++... that is...

    1.) the type of a variable is distributed to all following variables seperated by commas... however, if it is a pointer, the, er, pointosity of it, is not distributed... [it's kinda annoying... but can be averted...]

    2.) C/++ does not have conventions for repassing a variable argument list without having to parse it yourself!!! so, essentially, you can't integrate formatted console output in your own text-spewing functions!!! argh!!! [std argX inclusion here...]
    hasafraggin shizigishin oppashigger...

  2. #2
    Hmm...Program your own compiler and base it on C++...Call it C++++! With just 2 edits to it.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    damn straight!
    hasafraggin shizigishin oppashigger...

  4. #4
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    I will be waiting for you "completion" of your "C++++"
    ---------------
    Engineer223
    Yoshi

  5. #5
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    uhh... hehe, nevermind, i figured out the second one and i'm high as a kite... but the first one still might possibly be of some sort of possibly adjectivized as minor if that annoyance...
    hasafraggin shizigishin oppashigger...

  6. #6
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    Then do a C+=2 to fix the first problem!
    Yoshi

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Have you noticed that if you draw the 4 "+"'s in two rows of two above each other you get C#, (use a little imagination).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  8. #8
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    gasp!... does that mean that C# has conventions for all this? that would be a weird coincidence thingy... good say adrianxw!
    hasafraggin shizigishin oppashigger...

  9. #9
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    >the type of a variable is distributed to all following
    > variables seperated by commas

    MY coding convention says: "one variable, one line."
    no problems here

    >C/++ does not have conventions for repassing a variable >argument list without having to parse it yourself!!!

    hum... yes, it does. I'm too lazy to post, but maybe I will look it up later. I think someone already mentioned it in your thread...
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  10. #10
    >>one variable, one line

    Amen...Also looks better too!
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  11. #11
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    what?! pysch! whatever... you can align the variable declarations to allow easy traversing of variable names using a one-poly method... if cursor-past-end'o'line is enabled [if you have it] you can traverse the white space to no limits of the imagination... making more useful commentary as well!
    hasafraggin shizigishin oppashigger...

  12. #12
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> MY coding convention says: "one variable, one line."

    Always, always, always.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  13. #13
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    >>> MY coding convention says: "one variable, one line."

    Sometimes I use that, but if I'm doing something with graphics or loop variables, I always just go

    double x,y,z;

    but if I'm doing something else I do em on different lines...unless there are a lot....lol.

  14. #14
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    Always, always, always.
    you and whose army? is this something i, of all programmers in the universe, did not know about which was a defacto type deal? hmm? hmmm?!?!
    hasafraggin shizigishin oppashigger...

  15. #15
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> you and whose army?

    Me, and every quality/standards department in any professional house I have ever worked in.

    You said it yourself, with pointers in particular, it can lead to traps/misunderstandings/cockups, especially when there are less experienced/junior/trainee programmers on the team.

    You don't do it, you don't have the trap to fall into. Professional.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  3. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  4. Pet Peeves
    By Srg Pepper in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 10-03-2002, 11:34 AM
  5. Pet Peeve: Compilers vs. Languages
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 05-13-2002, 01:51 AM