- Feature Articles
- CodeSOD
-
Error'd
- Most Recent Articles
- Lucky Penny
- Mike's Job Search Job
- Teamwork
- Cuts Like a Knife
- Charge Me
- Que Sera, Sera
- Hot Dog
- Sentinel Headline
-
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
Recruiter: this medior dev has 5 years of experience in Java (ahem script ahem ahem).
Admin
I'm assuming that the Java syntax was the reason that IDEs with auto-complete were invented.
Admin
For anyone who's not worked in Java lately, it's now possible to define your own classes.
Admin
I think this person believed casting operators mutate the original reference. Then he saw that doesn't work, so he cast them again in the subsequent lines.
Admin
I've heard rumours about that, and folks who say the same thing about C++, C♯, Objective C, and even other languages. I'm not sure I believe it ...
Edit Admin
You don't need an IDE to develop in Java, but it sure helps!
It also helps a lot if you don't write truly dreadful code like this article has. Good grief! I'm guessing they read about how arrays are more efficient than objects (which they are in some circumstances that don't apply here) and completely misunderstood it. If you need something shaped like a class instance, you should darn well use exactly that unless you have the performance measurements to say otherwise.
Admin
This is clearly a PHP dev who is casting about wildly for something familiar to hold onto. Such as an array of, well, just whatever.
Edit Admin
Or it could be an ex C programmer than is trying to replicate a union, or the (hopefully) lost art of passing untyped void* pointers around and casting them to whatever is needed at the target site.