[Parti-discuss] [PATCH] client support for M$ Windows!

Toby Haynes thaynes at ca.ibm.com
Thu Mar 26 09:45:16 EDT 2009





Antoine Martin <antoine at nagafix.co.uk> wrote on 25/03/2009 02:31:04 PM:
> Nathaniel Smith wrote:
> > (In general, I want to avoid having different code paths for different
> > platforms when possible; it's just more chances for bugs to creep in,
> > and makes testing harder.)
>
> Indeed, I am more used to writing server side Java code. So writing code
> that knows and even cares and branches based on what platform it is
> running on is a new and completely alien concept to me... and it makes
> me cringe!

I work on multiplatform code day-in, day-out. Identify all the areas which
need platform-specific handling, abstract them and stick all the
platform-specific code into it's own folder. That way at least you have
some hope of maintaining sanity in the main line.

Cheers,
Toby Haynes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.partiwm.org/pipermail/parti-discuss/attachments/20090326/1c30b4dc/attachment.htm>


More information about the Parti-discuss mailing list