home.social

#namingthingsishard — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #namingthingsishard, aggregated by home.social.

  1. There's resistance against using the same name in a namespace and a type inside that namespace. Why? What is the actual problem with this code? Is the 'foo::foo' looking too much like a constructor definition (in that context)? Isn't it great how the call to 'bar' has a clear relation to 'foo'?
    Why is it considered bad practice that shouldn't pass code review?

    #cpp #cplusplus #WG21 #cpp26 #namingThingsIsHard

  2. I'm working on a new project which will be using Protocol Buffers for messaging between two systems. One of the message operations will be a ping/pong heartbeat, so that the two systems can know that the other system is operational.

    In Protocol Buffers language, the ping message will be named PingRequest. What should the name of the pong message be?

    #ProtocolBuffers #NamingThingsIsHard