[SLL] faking Unix knowledge? pretend to know open source Unix?

Jesse Keating jkeating at j2solutions.net
Thu Jan 15 13:49:30 PST 2009


On Thu, 2009-01-15 at 13:35 -0800, Chuck Wolber wrote:
> The best example I can think of is the "slash problem". If properly 
> written, a Java app will use properties to discover the proper slash to 
> use at runtime. Inexperienced developers (read: developers who have not 
> been diplomatically educated by the operations team) may just throw a 
> slash character in their code and not realize the problem they are 
> creating.

Yep, python has the same.  os.path.sep returns '/' on Unix, '\' on
Windows, and well whatever other kind of insanity one might create in a
new system.

You're right that anybody can screw themselves with platform specific
code.  However with Java, even though the goal is /supposed/ to be run
everywhere because everything is duplicated in the JVM, the reality is
that almost every application I've come across in java not only can't
traverse platforms such as Unix/Windows, it cannot even traverse
different patch versions of a JVM.  It wouldn't be so frustrating if the
Java mantra wasn't WORA.

-- 
Jesse Keating RHCE      (http://jkeating.livejournal.com)
Fedora Project          (http://fedoraproject.org/wiki/JesseKeating)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
identi.ca               (http://identi.ca/jkeating)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists2.linuxjournal.com/pipermail/linux-list/attachments/20090115/cfae04ef/attachment.sig 


More information about the linux-list mailing list