Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hell165966yHow can someone be SO FUCKING retarded to NEVER try to change the fucking return type to something else and see if it works instead of writing a XML parser?
-
mt3o19136yInherited a project which used to transform objects as XML, internally. Two times. Once with SAX, then with XStream.
It was like that because those were two separate applications, then merged into one, by including the jar. My first successful refactoring was cleaning this mess. Just no one wanted to code a mapper for those objects. Doing it I gained TONS of experience. I appreciate it. -
I don't suppose you could publish that code? There's a few people I'd like to show it to
-
Was he originally a Tcl/tk developer? Just curious if the hurp durp was contracted elsewhere.
-
@sSam Good point - I think it must have been a constructor rather than a fromXml() method, now you mention it. This was some time ago, I'm fortunate enough to have forgotten the specifics...
-
@M3m35terJ05h I'm long gone from there I'm afraid, and I wouldn't have been able to anyway (commercial property and all that.)
-
@tamusjroyce I've no idea. That would make sense, since I've never seen anyone else come close to doing that...
-
sSam14836y@AlmondSauce ok, if it was a method returning an object and he was still returning strings elsewhere it's even worse (surprisingly possible).
-
Fake af. Nobody could be that... I dunno, I don't Think that beginner me could even write a xml parser
Related Rants
I inherited some Java code from a guy that thought you could only return strings from a method.
So how did he ever pass anything other than a string, I hear you ask? He had a (hand crafted, using no libraries, and not escaping anything properly) toXml() and fromXml() method on each object.
Yeah...
rant
wk133