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

In this thread we show our love for XML

Name: Anonymous 2007-02-12 21:01

<?xml version="1.0" encoding="UTF-8"?>
<sentences>
  <sentence>
    <subjects>
      <subject>I</subject>
    </subjects>
    <verbs>
      <verb>Love</verb>
    </verbs>
    <objects>
      <object>XML</object>
    </objects>
  </sentence>
</sentences>

Name: Anonymous 2007-02-15 14:40

>>1,5
For single lines of text I much prefer using attributes instead of full tags. In this case it doesn't make much of a difference:

<?xml version="1.0" encoding="UTF-8"?>
<sentences>
  <sentence>
    <subjects>
      <subject text="I" />
    </subjects>
    <verbs>
      <verb text="Love" />
    </verbs>
    <objects>
      <object text="XML" />
    </objects>
  </sentence>
</sentences>

But suppose we know in advance that each sentence has only one subject, verb and object. Compare this:

<?xml version="1.0" encoding="UTF-8"?>
<sentences>
  <sentence>
    <subject>I</subject>
    <verb>Love</verb>
    <object>XML</object>
  </sentence>
</sentences>

to this:

<?xml version="1.0" encoding="UTF-8"?>
<sentences>
  <sentence subject="I" verb="Love" object="XML" />
</sentences>

Much more human readable and writeable. I use human-written XML input in some of my projects and I much prefer writing things this way.

Name: Anonymous 2007-02-15 15:08

>>40
What's so awesome about Haskell is how the code is completely self-documenting, you don't have to write any comments at all!  In fact, the only comments I add to the production systems are irrelevant funny quotes from books and movies.

Name: Anonymous 2007-02-15 16:39

>>42
o rly?

Name: Anonymous 2007-02-15 16:56

>>42
proof or stfu, I don't trust you, I write code for a living and I add comments, you're a liar.

Name: Anonymous 2007-02-15 17:55

>>42
omae monad!

Name: Anonymous 2007-02-15 22:14

>>42
One word, OH WAI-

Name: Anonymous 2007-02-16 16:41

>>44
Proof, eh?  Sure:

h = T (where h is the idea that Haskell is auto-documenting)
 h / 0 = T / 0
 Inf = Inf


QED.

Name: Anonymous 2007-02-16 18:42

XML FUCK THAT IM INTO SXML.
(html (head (title "LOL SXML")) (body (:bgcolor red) (p "FUCK YOU")))

Name: Anonymous 2007-02-17 5:03

>>48
ENJOY YOUR AIDS

Name: Anonymous 2007-02-17 8:32

(html
  (head
    (title "lol sxml"))
  (body bgcolor :red
    (p "fuck you")))

Name: Anonymous 2007-02-17 9:10

>>49
ENJOY YOUR XML

>>50
oh wow did someone just PWN XML?? I THINK THEY DID.

Name: Anonymous 2007-02-17 9:25

>>51
more like owned the OP!

Name: Anonymous 2007-02-17 9:50

>>52
cat shit vs dog shit

Name: Anonymous 2007-02-17 9:52

>>50
I like that so much more than XML. It's saner, simpler, and less verbose.

Name: Anonymous 2007-02-17 11:41

>>54
its still shit

Name: Anonymous 2007-02-17 12:01

>>55
its actually much more useful in more than just improved syntax, you should read some more before making silly assumptions

Name: Anonymous 2007-02-17 12:24

>>55
explain why or shut up.

Name: Anonymous 2007-02-17 12:37

html
  head
    title "lol forced indentation"
  body bgcolor=pink
    p "ONE WORD"

Name: Anonymous 2007-02-17 12:44

>>58
pythan faggot GTFO.

Name: Anonymous 2007-02-17 13:38

char[4] 'html'
dword 2
char[4] 'head'
dword 1
char[4] 'titl'
dword 1
char[4] 'utf8'
dword 10
char[10] 'binary unf'
char[4] 'body'
dword 2
char[4] 'styl'
dword 2
char[4] 'rgb '
dword 0xFFFF00
char[4] 'back'
dword 1
char[4] 'rgb '
dword 0xFF00FF
char[4] 'para'
dword 1
char[4] 'utf8'
dword 11
char[11] '*fapfapfap*'

Name: Anonymous 2007-02-17 15:44 (sage)

>>59
it's not python, u fagget

Name: Anonymous 2007-02-17 19:58

>>61
yeah but he who wrote it IS a python faggot
OH SO ARE YOU .

Name: Anonymous 2007-02-17 20:30

>>62
No, that syntax was not Pythonic.

Name: Anonymous 2007-02-17 20:56

>>63
Forced indentation of XML, thread over.

Name: Anonymous 2007-02-19 14:50 (sage)

__sage__

Name: Anonymous 2007-02-20 5:15

JSON > XML

Name: Anonymous 2007-02-20 13:38

You can make XML more awesome but adding more Xs. Remember, Xs are cool. So XML -> XXX

Name: Anonymous 2007-02-20 16:53 ID:o2PuWtE+

>>67
You gave me an awesome idea! Let's do XML over XML, for more enterprise-ready parsing and universal data sharing! For example, <a href="dicks">...</a> becomes:

<element>
  <name>a</name>
  <attribute>
    <name>href</name>
    <value>dicks</value>
  </attribute>
  <contents>
  ...
  </contents>
</element>


OMG this is superenterprise fap fap fap!1one

Then we can do XML over XML over XML, and get XXX!

Name: Anonymous 2007-02-22 22:06 ID:8DNinEu9

>>68

I chuckle'd

Name: Anonymous 2007-02-23 9:54 ID:FZ7h98pS

>>68
Wooah, I just got a massive raging boner on reading this.
It's true, XML on XML on XML = XXX

Name: Anonymous 2007-02-23 23:15 ID:Wjgg0Kb3

>>68
Looks like the "xml" that Apple uses for its property lists.

Name: Anonymous 2011-11-10 11:22

old thread is old

Name: Sgt.Kabu煙kiman誘 2012-05-28 22:29

Bringing /prog/ back to its people

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