Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Characters per line

Name: Anonymous 2009-09-13 7:01

How much characters per line of code does /prog/ make?

My average is ~61.

Name: Anonymous 2009-09-13 7:10

Doesn't this depend heavily on identation style and language used?

Name: Anonymous 2009-09-13 7:13

i don't count.

Name: Anonymous 2009-09-13 7:16

I code in perl. Nuff said

Name: Anonymous 2009-09-13 8:09

30. I use truckloads of Wishful Thinking.

Name: Anonymous 2009-09-13 8:35

I write perfect C code. So perfect that every single line is exactly 80 characters.

Name: Anonymous 2009-09-13 9:00

>>6
I hope that includes spaces, or else you might want to discuss your style with FV, so he could improve his more.

Name: Anonymous 2009-09-13 11:10

I program in Haskell so I may end up with 200 characters per line.

But my programs still take 1/10th the line count of most other languages.

Name: Anonymous 2009-09-13 12:12

I use a sane text editor that displays only 80 columns because I told it to. Any lines longer than that have to be hard wrapped to fit on my screen.

Most languages make it easy to fit within this limit, even Haskell. The ones that actually give me trouble are Objective-C and Common Lisp.

Name: Anonymous 2009-09-13 12:26

>>8
"Still take" is misleading

A program with four 1000 character lines is the same size as one with a thousand 4 character lines.

But the first one is better by your definition?

Gay.

I'd rather have more lines than gigantic run-ons

Name: Anonymous 2009-09-13 12:32

>>10
YHBT

Name: Anonymous 2009-09-13 12:34

Lines can easily get long when programming in Lisp, but you can break them as you see fit, and with a reasonably good editor (at least Emacs in lisp-mode), your code should nice and indented. You have a lot of freedom where you can break your lines, so there's rarely any need to go much over some limit you impose for yourself (80chars?).

Name: Anonymous 2009-09-13 13:47

Average around 100, max is 128.

Name: Anonymous 2009-09-13 14:03

>>5
Did you move every loop to a separate function? Just curious.

Name: Anonymous 2009-09-13 14:09

>>9
How do you get into trouble in Common Lisp? I find it pretty easy to keep line lengths down.

Name: Anonymous 2009-09-13 14:10

>>14
not >>5 but I prefer named lets

Name: Anonymous 2009-09-13 15:19

~210, BecauseAllMyVaraibleNamesLookLikeThis.
Its the price for being enterprise.

Name: Anonymous 2009-09-13 19:38

>>17
this

Name: Anonymous 2009-09-13 21:01

5 because I'm an EXPERT C PROGRAMMER.

Name: Anonymous 2009-09-13 21:30

>>19
Macros are not C.

Name: Anonymous 2009-09-13 21:35

>>20
The C preprocessor is part of the C language.

Name: Anonymous 2009-09-14 3:15

>>21
No, it's not. It may be defined in the C spec, but that does not make it a part of the language. You cannot debug macros, they're expanded at compile time and literally 0% of the preprocessor instructions have any ASM representation.

If you took out the preprocessor entirely, you could still make as much C as you wanted, though admittedly, you would need some additional C facility for importing the header files that you need. The language is not affected by the presence of the preprocessor; it's a convenience and not a part of C.

Name: Anonymous 2009-09-14 4:10

>>22
2/10

Name: Anonymous 2009-09-14 7:59

It may be defined in the C spec, but that does not make it a part of the language.
slapfaced myself

Name: Anonymous 2009-09-14 17:56

>>23-24
The ANSI spec segregates the preprocessor from the rest of the language. The C99 spec, however, details more about the preprocessor and does not provide this segregation of purpose explicitly.

If it's not obvious to you that it isn't a part of the C language, I think it is I that HBT.

Name: Anonymous 2010-12-17 1:39

FOLLOW THE NEW GNAA TWITTER AT http://twitter.com/Gary_Niger

Name: Anonymous 2011-02-02 23:22

Name: Anonymous 2013-01-19 21:01

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List