davidn: (bald)
[personal profile] davidn
((Pile)state.piles.get(Integer.parseInt(carddata.getNamedItem("pile")
.getNodeValue()))).addCard(new Card(Integer.parseInt(carddata.getNamedItem("suit")
.getNodeValue()), Integer.parseInt(carddata.getNamedItem("value").getNodeValue())));
...is the most horrendous line of code that I've ever written. I hope it works, because I had forgotten what it meant by the time I reached the end of the line.

I'd also like to mention to whoever understands it that I've never liked the syntax for casting in Java. It looks untidy.

Date: 2005-12-18 02:49 pm (UTC)
From: [identity profile] tweeasfuck.livejournal.com
*hides under table in Code Fear*

Expand Cut Tags

No cut tags

May 2020

S M T W T F S
     12
3456789
1011121314 15 16
171819 20 212223
24252627 28 2930
31      

Most Popular Tags

Style Credit

Page generated Mar. 10th, 2026 10:24 pm
Powered by Dreamwidth Studios