Towards less magic strings.

Brad Bishop bradleyb at fuzziesquirrel.com
Fri Sep 15 00:33:10 AEST 2023


On Thu, 2023-09-14 at 01:36 -0500, Patrick Williams wrote:
> 
> ## Service Names
> 
> I think it should be rare that you need a hard-coded service name in
> your code, since typically you'll want to do some kind of mapper 

I would actually propose the opposite - we should use mapper lookups as
a last resort and prefer hard-coded service names.  Mapper lookups add
latency, and require developers to have OpenBMC specific domain
knowledge to do something that should otherwise be simple and well
documented.  Mapper indirection also prevents the use of dbus
activation, which drastically simplifies service dependencies.

Thanks,
Brad


More information about the openbmc mailing list