glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Refactoring


From: Cyrille Dunant
Subject: Re: [glob2-devel] Refactoring
Date: Mon, 1 May 2006 13:55:24 +0200
User-agent: KMail/1.9.1

On Monday 01 May 2006 13:43, Sébastien wrote:
> Hi,
> As a first step in the migration to string, I suppressed use of xxxprintf
> format functions and replaced it by boost::format. Why ? Because xxxprintf
> use ellipsis and as a result, we can't pass string to this function, we
> have to call c_str() for every string. With boost::format we can use
> strings directly, wich is far more practical... It impact directly the
> GameGUI::addMessage method, it doesn't use the ellipsis anymore...
> The next step is to use only strings in StringTable and in Widgets...
> I also cleaned some unused functions in Utilities and SupportFunctions
> (concat, dencat, newstrdup...) but I guess I missed some...

Wowowowowow...

Now, I should have complained right when someone had the _stupid_ idea to use 
boost simply because fractions were too hard for him to implement -- not to 
mention the fact that simple _scaling_ would have produced the same result.

But now, replacing printfs ! 

Dependencies are _bad_. Evil. Not good. 

Lazyness is no excuse for introducing unneeded dependencies.

speex, yes, of course, we are not going to implement our own codec. SDL, 
obviously, everything from scratch is silly.

But dependencies for the sheer sake of convenience...

Anyway. "he who codes decides". But let it not be said that there weren't any 
opposition.

-- 
-- Cyrille Dunant
-- EPFL-IMX-LMC 
--

   "I was gratified to be able to answer promptly, and I did.  I said I
didn't know."
                -- Mark Twain

Attachment: pgpVcaWGrYJyS.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]