Hyphenated company name in Java packages

后端 未结 5 1588
一生所求
一生所求 2020-12-09 01:54

Say you\'re working on the core module of the foo project for BarBaz Incorporated. Your code fragment might look like this:

package com.barbaz.f         


        
5条回答
  •  [愿得一人]
    2020-12-09 01:58

    I just looked through my browser's history, and in the last 2 months I haven't visited a single domain with a hyphen. So the convention is to rename the company.

    Alternatively, leave out the hyphen, because BazBaz won't ever include Baz=Baz's code in their own.

提交回复
热议问题