Profile

Cover photo
John Hicks (determinato)
Lives in Tampa, FL
854 followers|104,519 views
AboutPostsPhotos

Stream

 
Nothing infuriates team leads like developers hard-coding Windows paths in Java source files.


1. Use property injection.
2. If you HAVE to hard code a path, use File.separator.
3. There is only Option 1.
4
Daniel Monteiro's profile photoDaryl Teo's profile photoJohn Hicks (determinato)'s profile photo
3 comments
 
+Daniel Monteiro If you put the path in a property file using / every time instead of the Windows \, it will work every time by using ResourceBundle.getBundle().  This assumes that the property file in question is on the classpath, and you just refer to it by the name of the file without the .properties.

Or if you're using the Spring Framework, you can use the @PropertySource annotation and specify the name of the property file that way.  Then you declare member variables as normal, annotating them with the @Value("${<name of property>}") annotation.
Add a comment...
 
Happy Birthday #Google+, and thanks for the fish!
2
 
Adios, Hulu Plus.  I'm not paying you $9.00 a month to have you run commercials, which I thought was the whole point of paying for the "Plus".  If I wanted commercials, I'd be watching live TV.

And the standard excuse "We're only doing it with current season shows because those are expensive to license" doesn't really cut it.  The point is:  people pay for the service for a specific reason.  Making excuses to justify what is essentially a "bait and switch" just makes the service even less attractive.

Cancelled.
2
Randy Magruder's profile photoTiffy Fone's profile photo
3 comments
 
If you have a good high speed data try TV Portal (they are in Amazon Market - Google kicked them out for being too good)
 
The new #Communities  thing is kinda neat.
1
 
Y U NO INVITE ME #ingress   #ingressinvite  
3
J.D. Harris's profile photoShayla C's profile photo
2 comments
 
They say you don't need one anymore but I uninstalled it and reinstalled it like they said but it still asks for the stupid code. Bleh
 
Added photos to Taco Tuesday at Tijuana Flats!.
1
John Hicks was tagged in a photo.
Have him in circles
854 people
Adrian Wells's profile photo
Emily Nguyen's profile photo
Mitch Miller's profile photo
Dominic Bartl's profile photo
Frens Nemonic's profile photo
Evan Myers's profile photo
Eric Chong's profile photo
WAMBI ANDREW's profile photo
Stefano Argiolas's profile photo
 
Somebody wake me up when #throwthebumsout  becomes a thing.  I'm so sick of Congress I could vomit.
2
 
I LOL'd so hard.
 
This should be funny but it's actually scary. 
7 comments on original post
2
2
Mike DePaul's profile photoRachel Zablocki's profile photo
 
Good riddance, RNC. Thanks for the tourist cash.
5
Thomas Minser was tagged in John Hicks's photo.
 
When did G+ turn into my stream being an entire page of nothing but silly icanhazcheeseburger knock-offs?
1
Victor Sanchez's profile photo
2 comments
 
Need to get used to all these nexus users. Stream is nonstop now.
People
Have him in circles
854 people
Adrian Wells's profile photo
Emily Nguyen's profile photo
Mitch Miller's profile photo
Dominic Bartl's profile photo
Frens Nemonic's profile photo
Evan Myers's profile photo
Eric Chong's profile photo
WAMBI ANDREW's profile photo
Stefano Argiolas's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Tampa, FL
Previously
Erie, PA - Lowell, MA - Wheeler AAF, HI - Bend, OR - Shallotte, NC - Raleigh, NC
Story
Tagline
It takes a village of idiots to build a kingdom of morons.
Introduction
Java developer, Android enthusiast, Hockey fanatic.  I live for 3 things: Code, sleep, and the Tampa Bay Lightning.  GO BOLTS.
Bragging rights
I'm kind of a big deal.
Basic Information
Gender
Male
Other names
determinato