Ports recommending other ports

Ryan Schmidt ryandesign at macports.org
Mon Feb 9 20:18:50 PST 2009


On Feb 9, 2009, at 22:04, Bradley Giesbrecht wrote:

> I like lint and I like var names that mean something to humans  
> unless humans don't need to use them.
>
> I also am not a fan of the plural form.
>
> In my applications I would probably use "recommendation"
>
> Let the app add the "s".
>
> foreach (something as thing) add recommendation[thing].
>
> user table vs users table.
>
> What variant or you talking about vs what variants are you talking  
> about.
>
> It's a variant not a variants.
>
> It's a recommendation not a recommendations.
>
> usersnames
> groupsnames

I was going for consistency with the existing variable names we have  
in portfiles:

categories
platforms
master_sites
checksums
patchfiles
configure.args
depends_lib

These are already plural, and in each case, each one can have  
multiple values. A port can be in multiple categories, work on  
multiple platforms, be downloaded from multiple master_sites, etc.,  
just as a port could offer multiple recommendations for supplemental  
ports, and conceivably also for alternative ports.





More information about the macports-dev mailing list