Lookery Dev Blog RSS

"Stream of geeky consciousness..." @electromute


Authors
@ckelly@danmil
@dcancel@eliast

Friends


Archive

Oct
8th
Wed
permalink

Argh, Java!

As someone long-time gone from the Java world, I sometimes think that I bash the whole Java thing too strongly. But then I read some actual Java code, and it rarely takes more than about 45 seconds before I see something which makes me say “Oh, god, make it stop, my eyes, my eyes!”. To wit, the first source file I just opened up for something I need to read and understand:

private final Pattern THING = 
Pattern.compile(
"http:\\/\\/app\\.thing\\.com\\/click\\?id=[\\d]+\\&xsd=[\\d]+\\&tm=[\\d]+")

Really? That’s how you have to express regex patterns? I’m sorry, but are you &#*($#$ing kidding me? Double backslashed escapes? For \d? No, really?

-Dan M

Comments (View)
blog comments powered by Disqus