- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Sergio is back! The true form of my joy about that is inexplicable.
<!-- -->Admin
So, it seems that the main site link fix is finally applied.
Admin
Some syntax hightlighting would be nice...
Admin
I like that the language doesnt understand booleans :smiley:
String resultado = "false";
Admin
Oh! You don't want your XML with something like:
<concertado type="java.lang.Boolean" value="false"/>
Admin
TRWTF™ is Struts
Admin
GestionSolicitudFormBean
Paula? Is that you?
Admin
At least the string written out pretending to be XML doesn't contain a NUL. That would be awful, as opposed to merely really bad…
Admin
Wasn't Sergio Erik Gern's beat? I hope this means that Erik doesn't write for TDWTF anymore.
Admin
I think Erik is the man behind Dan J. Would explain why the Shadow over ShipPoint story was so ... polarizing,
Admin
Honestly, I don't think it is. The writing style is quite different and way better (though it's not hard to be better than Erik's dreck.)
Admin
Is it just me who thinks it's overkill that a retirement community with hundreds of residents has a full-time developer of software?
Admin
Given that the company appears to own many such communities, and I suspect that we're not so much talking “developer” as “general IT odd-job-man”, it's not so surprising.
Admin
IDK, maybe it's me but when I tried looking at the code snippet it was just a wall of naueous text, I couldn't see anything wrong just because it was so fucking impossible to get through the mental overload.
Admin
So we're going to scrub Casa de Quixote but not Centre de Dia Reina Sofia?
Admin
it's Dan J :stuck_out_tongue:
Only I know Dan's true, SECRET IDENTITY for sure.
Admin
When i see that, i can't help myself to think that Consuela is behind all this...#nonono
Admin
If a TDWTF submitter sends in multiple stories, I can agree that they reuse the "cover story" to save some work.
At least this time there was no story where the protagonist goes on a hopeless quest for documentation.
Admin
This looks like a lot of crap I have to deal with...I feel Sergio's pain :(
Admin
5 getNombre() apparently returns a string.
Admin
Admin
It's not just you. My Java is limited to "hello, world"; my Spanish is limited to "tequila", "cerveza", and "mi amigo está pagando"; and the payoff isn't worth the effort.
Admin
XML and Java, what could go wrong?
Admin
"Calendar calendar = new GregorianCalendar();"
Oh Java, you make me laugh.
Admin
I'm intrigued by having to specify "Gregorian". What other options are there? Can I port my Mayan Long Count calendar class to Java?
Admin
Didn't that get deprecated on 2012-12-21?
Admin
Well it's only used to measure dates between about 800 A.D. and 1450 A.D. so it doesn't really matter.
Admin
Well, you could. The GregorianCalendar seems to be the only one in the Java API, though: http://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html
Admin
Was just looking at that.
Maybe it's so that you can inherit the Calendar class without the Gregorian restrictions, and RYOC (roll your own calendar).
Admin
What could possibly go wrong?
Admin
Admin
If you're dealing with historical dates, the Julian calendar would be quite relevant. I don't think there's a standard Java implementation of it though. The signed 32-bit
time_t
model overlaps with a period when the Julian calendar was in use somewhere within the world; the Java basic time model covers an even longer period into the past…Admin
No, the Mayans just hung another Long Count on the wall.
Perhaps you'd want to implement an Arabic lunisolar, Japanese Imperial, or Thai Buddhist calendar sometime?Admin
I am not sure how many Java has, but .Net currently has 15 in total, including Julian and Gregorian. You could also roll your own by inheriting from System.Globalization.Calendar.
It is a facinating read, the calendar class in .Net.
Admin
The correct one is Joda Time anyways.
Admin
(OK, if you're trolling, you got me.)
What type would you feel is more appropriate for a function named getName()?
Admin
That was mistake numero uno.
Admin
TRWTF is mixing two languages...
Admin