src style pref...

This is a discussion on src style pref... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; do you go past 80 characters a line? do you go past the 8:3 file name? i do not for ...

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

    src style pref...

    do you go past 80 characters a line? do you go past the 8:3 file name? i do not for neither...
    hasafraggin shizigishin oppashigger...

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I go way passed 80 characters per line on occasion. I've got more than 1000 pixels of horizontal space... I don't write code in a console (And I am not the type to try to help those who do , so why not use it?

    Never heard of the 8:3 rule though.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    the 8:3 is the DOS FAT16 file naming system limitation... 8 characters for the name, 3 for the extension...

    autoexec.bat, for example...

    oh, and yeah, i don't type in a console either, but i try to do that just so people who might, can read it... plus it makes block commenting a really easy choice...
    hasafraggin shizigishin oppashigger...

  4. #4
    Registered User cody's Avatar
    Join Date
    Sep 2001
    Posts
    86
    78 characters per line is my 'limit'. Keeps the code readable

    bye
    cody
    #include "reallife.h"

  5. #5
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    I keep my lines of code at 80 for printing purposes. I've got comment macros set for that. I do occasionally go past though but only by a few characters.
    I hate printing code and having it wrap on me.
    Plus, I was trying to help a friend debug his program and took forever because it was on a line that was way longer that screen width.
    So that's my rule: 80 +/- chars for safe printing or screen width at the max so you can see all of your code.

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    I've actually never thought about either. I just type enough so it doesn't go past the right edge of my IDE. Sometimes I have to go beyond, but I try not to...I hate having to scroll right to see all my source.


    And as for filenames...if the person's still running on old version of DOS and a FAT16 FS I feel sorry for them...they probably couldn't compile my code anyhow, since I do mostly windows. And anyhow, didn't MS put VFAT into DOS sooner or later? Maybe it was in DOS 6...


    Although one thing I DO agree with is the 3 letter extensions...it's what I've always seen, and I'm really used to it...anything else looks weird.
    Last edited by -KEN-; 12-27-2001 at 07:56 AM.

  7. #7
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    I type till the screen ends.
    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

  8. #8
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    80, mainly for printing and also for keeping the code readable in my editor. On the left site I have some toolbars and a project overview.

  9. #9
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    oh yeah, duh, printing... but i rarely print... since i always _think_ that i'll be examining my code on the go, but i never do anyway... [it's all in my mynd... it's just a matter of getting it to the screen...]

    >since I do mostly windows.

    speaking which, i mostly [read: only] do dos...

    >I feel sorry for them...

    ah shat app!
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  3. Which style of if loops is most common?
    By dwks in forum A Brief History of Cprogramming.com
    Replies: 38
    Last Post: 08-25-2005, 03:18 PM
  4. WS_EX_COMPOSITED style (double buffering) problems
    By JasonD in forum Windows Programming
    Replies: 2
    Last Post: 10-12-2004, 11:21 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21