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

Pages: 1-

Code aesthetics

Name: Anonymous 2015-06-13 8:38

Im an expert in code aesthetics. Ask me anything about GNU vs K&R brace placement, tabs vs spaces, the best comment syntax, huffman encoded syntactic tokens etc. I can also reformat code into a beautiful styel for BTC

Name: Anonymous 2015-06-13 15:24

Talk about Tabs vs Spaces, then.

Name: Anonymous 2015-06-13 15:38

>>2
I never could understand what tabs are for. They're just spaces. Why not use only one kind of spaces?

Name: Anonymous 2015-06-13 16:30

Where should an opening curly brace appear?

Name: Anonymous 2015-06-13 16:32

>>3
They're for tabulating figures into tables on typewriters.
That's why they're supposed to be up to 8 characters wide. 4 characters isn't enough room to fit any useful figure.
Their continued use in programming languages is an accident of history, though a useful one, as it allows people to view code at whatever indentation width they desire.

Name: Anonymous 2015-06-13 17:33

>>5
But we don't use typewriters anymore. Only the military and intelligence services use them.

as it allows people to view code at whatever indentation width they desire
This is better done by realizing that code is XML, not text, and that style should be separated from content.

Name: Anonymous 2015-06-13 17:55

>>6
My mom uses a typewriter, does that mean she's some kind of sleaper agent?

Name: Anonymous 2015-06-13 18:38

Tabs are better, because it is a simple matter of configuring how wide they are in the editor. If your editor didn't like it, get a new fucking editor. This isn't 1980, god damnit. Some people like 4 spaces wide, some like 1 or 8. I like 2 spaces. With tabbed we can all have it how we want.

Name: Anonymous 2015-06-13 18:43

>>8
With code stored as XML, this would be the least of possible style customizations available to everyone. With tabs, whenever someone replaces tabs with spaces, you're screwed.

Name: Anonymous 2015-06-13 19:19

>>9
Yes, but with XML, you're using XML, which is wise than death.

Name: Anonymous 2015-06-13 19:24

>>10
Lisp is XML too.

Name: Anonymous 2015-06-13 19:27

>>11
Don't compare LISP to XML, ``please''!

Name: Anonymous 2015-06-13 19:28

>>11
Lisp programs are typically stored as plain-text.

>>9
Why not just use tabs and be done with it?

Name: Anonymous 2015-06-13 19:36

>>13
No, they are stored as XML, otherwise there wouldn't be so many parentheses. Storing code as XML makes indentation arbitrary and allows indentation-customized display.
Tabs just don't cut it because not everyone uses them. XML, on the other hand, is solid.

Name: Anonymous 2015-06-13 20:42

>>13
Lisp programs are typically stored as plain-text.
So is XML. Stop comparing them ``please!''

>>14
No they are stored as LISP. Perhaps you mean abstract syntax tree instead of XML. Stop FUCKING MENTIONING XML. I FUCKING HATE XML> FUCKING FOEWFWOIwEF

Name: Anonymous 2015-06-13 20:50

>>15
S-expressions are a form of XML.

Name: Anonymous 2015-06-13 21:04

>>16
S-expressions are in the Lisp family and XML is in the ML family.

Name: Anonymous 2015-06-13 21:09

>>17
I just imagined something very, very horrible.

Name: Anonymous 2015-06-13 21:10

Extensible ML

Name: Anonymous 2015-06-13 21:19

>>16
S-expressions and XML are both trivial textual representations of abstract syntax trees, and one is significantly more fucking annoying than the other. If I could punch you in the face right now I would.

Name: Anonymous 2015-06-13 21:23

>>20
So why don't you just use the less fucking annoying of the two? You have only yourself to blame for your stupidity. Punch yourself in the face, please.

Name: Anonymous 2015-06-13 22:19

XML is a good trigger word

Name: Anonymous 2015-06-13 22:59

>>21
What makes you think I use XML? *Punches >>21-dono in the face*

Name: Anonymous 2015-06-13 23:36

>>20,21
The XML troll posts every time anyone mentions S-exprs, don't get mad at a silly joke!

Name: Anonymous 2015-06-14 0:26

>>24-cuck telling people to not get mad at silly jokes...

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