Click here to Skip to main content
15,178,605 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: My Professor Said Pin
trønderen13-Jan-21 10:03
Membertrønderen13-Jan-21 10:03 
GeneralRe: Why is XML? Pin
DumpsterJuice13-Jan-21 6:32
MemberDumpsterJuice13-Jan-21 6:32 
GeneralRe: Why is XML? Pin
rhyous13-Jan-21 6:37
Memberrhyous13-Jan-21 6:37 
GeneralXHTML Pin
Chris Maunder13-Jan-21 7:25
cofounderChris Maunder13-Jan-21 7:25 
GeneralRe: Why is XML? Pin
Bruce Patin13-Jan-21 7:12
MemberBruce Patin13-Jan-21 7:12 
GeneralRe: Why is XML? Pin
Peter Adam13-Jan-21 7:18
professionalPeter Adam13-Jan-21 7:18 
GeneralRe: Why is XML? Pin
Roger Wright13-Jan-21 10:07
professionalRoger Wright13-Jan-21 10:07 
GeneralRe: Why is XML? Pin
trønderen13-Jan-21 11:53
Membertrønderen13-Jan-21 11:53 
Roger Wright wrote:
Do you remember what we had before XML?
Well ... What if I do?

I was studying ASN.1 in the very early 1980s. The scheme is mandatory; the legal constructions are always specified. Great!

It is abstract: ASN.1 specifies the logical structure of files/documents, with no concern for a specific representation or format. Great!

An ASN.1 document/file may be represented in a handful well specified, clearly identified concrete encodings - functionally 100% identical; you may read in one encoding and write back in another encoding, with no loss of information. Great!

You must have access to the scheme, which ensures a proper interpretation with no guesswork. You know what you get. Great!

A data stream not adhering to the scheme is like a transmission ruined by noise: It is worth nothing. Any non-ruined document honors the ADN.1 scheme. Unconditionally. Great!

The 'Tag' part is binary. You display it to the user e.g. by mapping it to local language terms (Since you must have access to the scheme, you have an opportunity to set up a meaningful mapping) - I worked with a handful applications providing mappings of tags to several different languages. Great!

The representation essentially being binary required the use of an ASN.1 data editor - vi wouldn't suffice. As a result, you never forgot to add the closing tag (there was no closing tag). Great!

You never misspelled a tag name, but selected from those allowed by the scheme. Great!

You never got the length wrong - that was handled by the ASN.1 editor and concrete coder. Great!

The format was space efficient (although dependent on the encoding), BER excessively so, according to some critics. (Some other concrete encodings, such as the XML encoding, could be quite wasteful, though.) Great!

The 'Value' part was completely unrestricted, a binary blob, with no need for escapes, quoting or anything resembling 'character entities'. (Or Base64, QP, AtoB/BtoA, BinHex, UUencode, or whathaveyou.) Great!

If you wanted to edit an ASN.1 document, you had to use an ASN.1 editor that made sure that the scheme was honored; the document couldn't be arbitrarily tampered with outside scheme control. Great!

I sure miss both the abstract ASN.1 side, and the BER encoding.
GeneralRe: Why is XML? Pin
chrisseanhayes13-Jan-21 10:18
Memberchrisseanhayes13-Jan-21 10:18 
GeneralRe: Why is XML? Pin
Chris Maunder13-Jan-21 10:34
cofounderChris Maunder13-Jan-21 10:34 
GeneralRe: Why is XML? Pin
chrisseanhayes13-Jan-21 11:20
Memberchrisseanhayes13-Jan-21 11:20 
GeneralRe: Why is XML? Pin
trønderen13-Jan-21 11:06
Membertrønderen13-Jan-21 11:06 
GeneralRe: Why is XML? Pin
chrisseanhayes13-Jan-21 11:16
Memberchrisseanhayes13-Jan-21 11:16 
GeneralRe: Why is XML? Pin
englebart13-Jan-21 11:25
professionalenglebart13-Jan-21 11:25 
GeneralRe: Why is XML? Pin
Stefan_Lang13-Jan-21 11:45
mveStefan_Lang13-Jan-21 11:45 
AnswerRe: Why is XML? Pin
Member 1494407415-Jan-21 4:59
MemberMember 1494407415-Jan-21 4:59 
GeneralRe: Why is XML? Pin
af122117-Jan-21 9:49
Memberaf122117-Jan-21 9:49 
GeneralRe: Why is XML? Pin
BotReject18-Jan-21 4:44
MemberBotReject18-Jan-21 4:44 
GeneralRe: Why is XML? Pin
Member 1485238518-Jan-21 17:11
MemberMember 1485238518-Jan-21 17:11 
GeneralRe: Why is XML? Pin
Matt McGuire22-Jan-21 7:49
professionalMatt McGuire22-Jan-21 7:49 
GeneralUmm is everybody busy? Pin
glennPattonInThePub312-Jan-21 3:54
professionalglennPattonInThePub312-Jan-21 3:54 
GeneralRe: Umm is everybody busy? Pin
Slacker00712-Jan-21 4:09
professionalSlacker00712-Jan-21 4:09 
GeneralRe: Umm is everybody busy? Pin
RickZeeland12-Jan-21 4:15
mveRickZeeland12-Jan-21 4:15 
GeneralRe: Umm is everybody busy? Pin
  Forogar  12-Jan-21 4:28
professional  Forogar  12-Jan-21 4:28 
GeneralRe: Umm is everybody busy? Pin
RickZeeland12-Jan-21 4:36
mveRickZeeland12-Jan-21 4:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.