von jgbreezer » 03 Jul 2006, 19:38
I agree, generic code is very nice and easy to maintain. You can probably get away with it in Java too most of the time without writing any. I don't know the language much, but is there a general library you can import for doing web stuff that knows about the local machine's proxy? I know if you're using it inside a web browser as an applet it can use the browser to make requests and they should go through the same way.
Anyway, fair enough. Sometimes you need to do platform-specific, and as long as it's covered under all platforms it'll be used on and not an essential part of it (ie has a safe fallback if not defined for a specific platform) and doesn't change the rest of the functionality I don't mind doing it myself.
I agree, generic code is very nice and easy to maintain. You can probably get away with it in Java too most of the time without writing any. I don't know the language much, but is there a general library you can import for doing web stuff that knows about the local machine's proxy? I know if you're using it inside a web browser as an applet it can use the browser to make requests and they should go through the same way.
Anyway, fair enough. Sometimes you need to do platform-specific, and as long as it's covered under all platforms it'll be used on and not an essential part of it (ie has a safe fallback if not defined for a specific platform) and doesn't change the rest of the functionality I don't mind doing it myself.