Antoine Martin <[email protected]> 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
_______________________________________________
Parti-discuss mailing list
[email protected]
http://lists.partiwm.org/cgi-bin/mailman/listinfo/parti-discuss

Reply via email to