XML and DOM and Java are the worst things ever

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
XML is a tool. Nothing wrong with it except some people trying to apply it to every file format and data exchange whether it makes the most sense or not.

That and the people treating it as magic, that it somehow magically writes all the marshalling / un-marshalling logic on both sides of a connection.

Also many of the XML toolkits are slow, bloated memory hogs.

Oh, and SOAP isn't that great either. After working on 3 similar SOAP APIs for client-server content creation I'm now working with a plain old HTTP POST based API that is simpler, cleaner, and easier to understand.

But other than that XML is fine :)
 

schizoid

Banned
May 27, 2000
2,207
1
0
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D

you are working on your phd in comp sci and you cant whip up an app to do xml parsing using some java based dom parser?

please kill yourself.
 

schizoid

Banned
May 27, 2000
2,207
1
0
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D

you are working on your phd in comp sci and you cant whip up an app to do xml parsing using some java based dom parser?

please kill yourself.

Hah. Another grunt speaks.

No, I'm a horrible programmer. I am, actually, not a programmer. I avoid that crap like the plague. I'm a freakin' scientist man. Sorry, but someone's gotta do it.
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: DaveSimmons
XML is a tool. Nothing wrong with it except some people trying to apply it to every file format and data exchange whether it makes the most sense or not.

That and the people treating it as magic, that it somehow magically writes all the marshalling / un-marshalling logic on both sides of a connection.

Also many of the XML toolkits are slow, bloated memory hogs.

Oh, and SOAP isn't that great either. After working on 3 similar SOAP APIs for client-server content creation I'm now working with a plain old HTTP POST based API that is simpler, cleaner, and easier to understand.

But other than that XML is fine :)

some of the perl dom parsers are huge pigs, they need upwards of 40x the size of the file in memory. its crazy
 

schizoid

Banned
May 27, 2000
2,207
1
0
Originally posted by: notfred
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D


What's the assignment?

It's actually not that hard...just make an HTML form that takes in the URI of an XML document, then parses it and displays in a table. We're given samples and it doesn't have to be too robust (i.e. we have a reasonable idea of what's gonna be fed to it). So, it's just a matter of navigating about a bazillionty predefined functions to find the right one to get at the the right XML nodes at the right time, and a bit of logic and control flow that any third week CS 101 guy could do.

So, of course, I have trouble with it.

Can't I just do a proof of Godel incompleteness instead? Perhaps a NP-hard reduction? ANYTHING BUT THIS!
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: schizoid
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D

you are working on your phd in comp sci and you cant whip up an app to do xml parsing using some java based dom parser?

please kill yourself.

Hah. Another grunt speaks.

No, I'm a horrible programmer. I am, actually, not a programmer. I avoid that crap like the plague. I'm a freakin' scientist man. Sorry, but someone's gotta do it.


thats like saying an architect doesn't need to know how to make blueprints or a carpenter not needing to know how to use a saw.

you are a moron. every good computer scientist should know how to code.

ps: i havent written much code in the last year but i still know how to do it.
 

schizoid

Banned
May 27, 2000
2,207
1
0
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D

you are working on your phd in comp sci and you cant whip up an app to do xml parsing using some java based dom parser?

please kill yourself.

Hah. Another grunt speaks.

No, I'm a horrible programmer. I am, actually, not a programmer. I avoid that crap like the plague. I'm a freakin' scientist man. Sorry, but someone's gotta do it.


thats like saying an architect doesn't need to know how to make blueprints or a carpenter not needing to know how to use a saw.

you are a moron. every good computer scientist should know how to code.

ps: i havent written much code in the last year but i still know how to do it.

That analogy is, um, a TAD bit flawed. There are plenty of computer scientsist who NEVER code. Alan Turing might be considered one of them. I know HOW to code, man, I just hate it and I'm not particularly good at it. I have a decent post-up game, ya know? Some people are good at some things, bad at others. I'm personally good at architecting systems and problem-solving, but not so much at figuring out when to use inheritence and when to use templates and/or casting.

Does this make me a moron? Do YOU have a good post-up game? If you don't, would that make you a moron?

 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Originally posted by: Ameesh
some of the perl dom parsers are huge pigs, they need upwards of 40x the size of the file in memory. its crazy
Yikes, glad we're working in C++. Some of the data sets our app processes are 2-4 MB of XML and many of our users have older systems with only 128-256 MB of physical RAM.
 

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
I've found the dom4j library to be the best when doing XML parsing in Java. Is that what you're using?
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: schizoid
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: Ameesh
Originally posted by: schizoid
Originally posted by: notfred
<xml><is/><useful/><in/><a/><lot/><of/&g
;<places/></xml>

So do this stupid assignment for me. You'll get like 0.01% of a Ph.D for it.

:D

you are working on your phd in comp sci and you cant whip up an app to do xml parsing using some java based dom parser?

please kill yourself.

Hah. Another grunt speaks.

No, I'm a horrible programmer. I am, actually, not a programmer. I avoid that crap like the plague. I'm a freakin' scientist man. Sorry, but someone's gotta do it.


thats like saying an architect doesn't need to know how to make blueprints or a carpenter not needing to know how to use a saw.

you are a moron. every good computer scientist should know how to code.

ps: i havent written much code in the last year but i still know how to do it.

That analogy is, um, a TAD bit flawed. There are plenty of computer scientsist who NEVER code. Alan Turing might be considered one of them. I know HOW to code, man, I just hate it and I'm not particularly good at it. I have a decent post-up game, ya know? Some people are good at some things, bad at others. I'm personally good at architecting systems and problem-solving, but not so much at figuring out when to use inheritence and when to use templates and/or casting.

Does this make me a moron? Do YOU have a good post-up game? If you don't, would that make you a moron?

ohh i see you are one of those folks: maybe you go out with your faculty advisor and sip coffee and talk about your new theory on how to solve the halting problem or maybe the topic will turn to the pumping lemma and how you used it in some other pointless intellectual jerk-off session to prove the new grammer you came up with is regular. Give me a break, you are not turing or dijkstra or anyone like that, you are a guy who can only talk about building systems rather then actually building them yourself.

i have interviewed dozens of your kind and I can promise that you most good software companies don't hire fresh PH.d's to architect anything of importance and second and probably most importantly, if they are going to come up with some new algo or system you damn well expect them to make prototypes. All the Comp Sci PH.d's at Microsoft Research, IBM Labs, Bell Labs, Xerox Parc, etc all can code and they do to show off their new projects. good luck getting a job architecting systems without being able to know when and how to use inheritence, rofl. idiot.

 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
Originally posted by: DaveSimmons
Originally posted by: Ameesh
some of the perl dom parsers are huge pigs, they need upwards of 40x the size of the file in memory. its crazy
Yikes, glad we're working in C++. Some of the data sets our app processes are 2-4 MB of XML and many of our users have older systems with only 128-256 MB of physical RAM.

yeah we are using xerces in C++ and java now. they seem to behave a lot better. For some of our bigger feeds that range betwen 80->120MB we try to use sax but it's pain in the ass because the schema for some of the bigger documents can get complicated.
 

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
Originally posted by: Ameesh

[owns the intellectual]

+5 Insightful on that. I'm graduating with my BS in computer science in May and I can say without a doubt the only computer science professors I've liked are the ones who have worked in industry writing actual code. Well...except one, but he's into computer security, not code writing. In fact I'm working for one who can talk about pumping lemma/regular languages all day long but is also doing a research project where he's written (and is maintaining) all the core code. He's farming out the GUI work to student workers.

That's how it ought to be. The code he's writing is pretty advanced, and what I'm working on is not.
 

DT4K

Diamond Member
Jan 21, 2002
6,944
3
81
Originally posted by: schizoid
That analogy is, um, a TAD bit flawed. There are plenty of computer scientsist who NEVER code. Alan Turing might be considered one of them. I know HOW to code, man, I just hate it and I'm not particularly good at it. I have a decent post-up game, ya know? Some people are good at some things, bad at others. I'm personally good at architecting systems and problem-solving, but not so much at figuring out when to use inheritence and when to use templates and/or casting.

Does this make me a moron? Do YOU have a good post-up game? If you don't, would that make you a moron?

WTF?
How can you possibly claim to be good at "architecting systems and problem solving" but not good at programming?
Programming is essentially architecting the solution to a problem.