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

Pages: 1-4041-

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-12 22:09

>>1
One word, the forced indentation of code. Thread over.

Name: Anonymous 2007-02-13 3:36

<?xml version="1.0" encoding="UTF-8"?>
<xml>
 <opinion owner="me">SUCKS</opinion>
 </xml>

Name: Anonymous 2007-02-13 3:43

XML blows. It's a stupid, limited language parser that got so far up every spiky hair enterprise manager's ass that they want everything to use XML, because they think using XML means magically understanding anything. Not only that, but it's verbose and kind of half-assed, and has a ugly syntax.

A general BNF grammar processing standard tool would have been much better.

Name: Anonymous 2007-02-13 3:58

>>3
<?xml version="1.0" encoding="UTF-8"?>
<xml>
 <opinion>
  <owner>me</owner>
  <text>SUCKS</text>
 </opinion>
</xml>

Name: Anonymous 2007-02-13 5:29


<?xml version="1.0" encoding="UTF-8"?>
<xml>
 <message>
  <talk>
   <expression type="opinion">
    <owner>m</owner>
    <text>
     <word>
      <letter case="uppercase">S</letter>
      <letter case="uppercase">U</letter>
      <letter case="uppercase">C</letter>
      <letter case="uppercase">K</letter>
      <letter case="uppercase">S</letter>
     </word>
    </text>
   </expression>
  </talk>
 </message>
</xml>

Name: Anonymous 2007-02-13 6:18

>>4
Come now, it's better for company-to-company data interchange than, say, CSV.

Name: Anonymous 2007-02-13 6:26

Come now, it's better for company-to-company data interchange than, say, CSV.

Cat shit vs dog shit.

Name: Anonymous 2007-02-13 6:58

<filelist version="PLGEN_XMLHandler_0.1">
  <file>
    <filename>atb-the_summer_(ntsc-dd5.1).vob</filename>
    <folder>D:\Media\Music Videos</folder>
    <rating type="simple">2</rating>
    <tag>dance</tag>
    <tag>electronic</tag>
  </file><file>
    <filename>axwell-feel_the_vibe-dvdrip-svcd-2005-pmv.mpg</filename>
    <folder>D:\Media\Music Videos</folder>
    <rating type="detailed">
        <detail type="Video Quality" value="5"/>
        <detail type="Audio Quality" value="3"/>
        <detail type="Video" value="3"/>
        <detail type="Music" value="4"/>
    </rating>
    <tag>dance</tag>
    <tag>electronic</tag>
  </file>
</filelist>

Name: Anonymous 2007-02-13 9:23

<?xml version="1.0" encoding="utf-8"?>
<post>
 <paragraph>
  <sentence>
   <clause>
    <mood>indicative</mood>
    <subject>
     <pronoun>
      <person>2</person>
      <number>plural</number>
      <adjective>
       <type>simple</type>
       <value>all</value>
      </adjective>
     </pronoun>
    </subject>
    <verb>
     <type>copula</type>
     <tense>present</tense>
     <aspect>simple</aspect>
    </verb>
    <object>
     <noun>
      <value>bunch</value>
      <adjective>
       <type>article</type>
       <value>indefinite</value>
      </adjective>
      <adjective>
       <type>prepositional</type>
       <preposition>of</preposition>
       <object>
        <noun>
         <value>idiot</value>
         <number>plural</number>
        </noun>
       </object>
      </adjective>
     </noun>
    </object>
   </clause>
  </senctence>
 </paragraph>
</post>

Name: Anonymous 2007-02-13 11:06

well documented & designed binary format > * > xml

Name: Anonymous 2007-02-13 11:08

>>11
well documented & designed xml format > undocumented & poorly designed binary format

Name: Anonymous 2007-02-13 11:43

XHTML > XML

Name: Anonymous 2007-02-13 12:17

>>10
wow, and XML's supposed to be human-readable

Name: Anonymous 2007-02-13 13:52

>>1
You
>>3
stupid
>>5
faggots
>>6
utf-8
>>9
is
>>10
the default encoding!!

Name: Anonymous 2007-02-13 14:45

<?xml version="1.0" encoding="UTF-8"?>
<thread>
  <over>
    <word>Forced indentation of code.</word>
  </over>
</thread>

Name: Anonymous 2007-02-13 15:01

>>16
ONE WORD.  I AM LINUX TARBALLS, THE FOUNDER AND EMPEROR OF FORCED INDENTATION OF CODE.  THREAD OVER.  I GUARANTEE IT.

Name: Anonymous 2007-02-13 15:13

http://yaml.org/
--- !clarkevans.com/^invoice
invoice: 34843
date   : 2001-01-23
bill-to: &id001
    given  : Chris
    family : Dumars
    address:
        lines: |
            458 Walkman Dr.
            Suite #292
        city    : Royal Oak
        state   : MI
        postal  : 48046
ship-to: *id001
product:
    - sku         : BL394D
      quantity    : 4
      description : Basketball
      price       : 450.00
    - sku         : BL4438H
      quantity    : 1
      description : Super Hoop
      price       : 2392.00
tax  : 251.42
total: 4443.52
comments: >
    Late afternoon is best.
    Backup contact is Nancy
    Billsmer @ 338-4338.

Name: Anonymous 2007-02-13 15:41 (sage)

# The Arkenstone of Thrain
# Was +2 WIS/DEX

N:3:of Thrain
I:39:102:3
W:50:50:5:50000
P:0:1d1:0:0:0
F:ACTIVATE | SEE_INVIS | HOLD_LIFE | RES_CHAOS | HIDE_TYPE | LUCK
F:INSTA_ART | SPEED | RES_LITE | RES_DARK | ESP_ORC | LITE3
a:HARDCORE=THRAIN
D:A great globe seemingly filled with moonlight, the famed Heart of the
D:Mountain, which splinters the light that falls upon it into a thousand
D:glowing shards.

Name: Anonymous 2007-02-13 17:32

>>15
Teh fuck did you include me (>>9) for? I didn't write shit about encoding!

Name: Anonymous 2007-02-13 17:54

<?xml version="1.0" encoding="UTF-9"?>
<thread>
  <over>
    <word>Forced indentation of code.</word>
  </over>
</thread>

Fixed

Name: Anonymous 2007-02-13 19:55

>>21

<?xml version="1.0" encoding="UTF-16"?>
<thread>
  <over>
    <word quantity="1">Forced indentation of code.</word>
  </over>
</thread>

FIXED!

Name: Anonymous 2007-02-13 20:00

>>18
http://yaml.org/faq.html

# Why does YAML forbid tabs?

Tabs have been outlawed since they are treated differently by different editors and tools. And since indentation is so critical to proper interpretation of YAML, this issue is just too tricky to even attempt. Indeed Guido van Rossum of Python has acknowledged that allowing TABs in Python source is a headache for many people and that were he to design Python again, he would forbid them.


One word, the forced indentation of code. Thread over.

Name: Anonymous 2007-02-13 20:17

>>22
<?xml version="1.0" encoding="ASCII"?>
<thread>
  <over>
    <word quantity="1">Forced indentation of code.</word>
  </over>
</thread>

FIXED!

Name: Anonymous 2007-02-13 22:52

<?xml version="1.0" encoding="UTF-8"?>
<thread>
<over>
<word>Optional indentation of code.</word>
</over>
</thread>

Name: Anonymous 2007-02-13 22:56

>>25
<?xml version="1.0" encoding="UTF-8"?><thread><over><word>No indentation of code.</word></over></thread>

Name: Anonymous 2007-02-14 1:51

>>15
what if some future version of xml uses a different default encoding?

Name: Anonymous 2007-02-14 3:20

>>27
what if you're a fucking clueless moron?

Name: Anonymous 2007-02-14 3:32

>>4

Bad troll! Bad, bad troll!

Wait, aren't trolls those naked little guys with the crazy hair...shouldn't "trolls" be called gollums or something...?

Name: Anonymous 2007-02-14 4:17

Name: Anonymous 2007-02-14 6:09

>>8
Statement of truth.

>>10
Win. That's the Enterprise XML spirit.

>>11
You became an hero. I'd like either:
1. A simple binary format for serialization of simple types (int, float, unicode string, raw bytes) with lists and dictionaries of them (with which you can create trees and anything you want, and allow you to ignore stuff you don't know or care about), that can be unserialized and serialized in almost all existing languages and it would be extremely simple to use, thus profitable.
2. A standard, multi-platform, real grammar processing tool that's able to parse any file (i.e. existing file formats) without restrictions (binary safe too) into said types in your language.

>>29
>>4 was not a troll

Name: Anonymous 2007-02-14 6:54

>>10 here. the really crazy part is that i typed all that on my cell phone and then the battery died before i could post it.

Name: Anonymous 2007-02-14 8:31

what we need now is a contest for the most enterprisey XML

Name: Anonymous 2007-02-14 11:48

>>20
Sorry... faggot.

Name: Anonymous 2007-02-14 14:45

>>31
1. The great thing about binary formats is the freedom it gives you. Need to be able to quickly index some structure? No problem, just add a few extra pointers. Expect some parts of the file to be edited often? Add some padding etc around them.
2. You don't need this because there's very little need for complex parsing when it comes to binary formats. If the format is documented, writing code to deal with it is trivial.

Name: Anonymous 2007-02-14 19:06

>>8
No man, that's like dog shit vs. elephant diarrhea. One is manageable, and the other is barely manageable but takes a lot of work and is piles upon piles nastier than the less horrible alternative.

At least there's _some_ metadata in XML files. Sometimes there's too much, due to fugliness produced by the system-in-a-system effect.

Name: Anonymous 2007-02-15 9:08

<?xml?>
<text>I'm a rebel weeeeeee
</paragraph>
<thread>
</over>

Name: Anonymous 2007-02-15 13:08

FORCED CLOSED TAGS OF SYNTAX THREAD OVER

Name: Anonymous 2007-02-15 14:10

At least there's _some_ metadata in XML files
yeah, more metadata buzzword. data and metadata and metametadata is the same crap: DATA!!! use binary and shut up. key=value is already data AND fucking meta-data, and if you want more fucking meta-crap, use metacrap=metavalue.

Name: Anonymous 2007-02-15 14:18

>>39
lol moron cant comprehend the idea of a self documenting syntax.

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

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