V1.0 other suggestions related to codes organization: #12
Replies: 2 comments 1 reply
-
(1) resolved in 0.6.0 |
Beta Was this translation helpful? Give feedback.
-
0.6.0 is a fantastic release, congrat! I feel like the file splitting is a bit too much. (I struggled a bit to find where is the Again it is subjectif, there is no right or wrong. This mater is related to the point 5. I asked my friend "chatgpt" who suggest the following rule of thumb: |
Beta Was this translation helpful? Give feedback.
-
(1) To keep the "ore" package cleaner, we should move all the following struct outside the "ore" package
I suggest to move them to the "internal" folder, They will have a public Uppercase name in here but still not accessible from outside.
(2) Code samples in the documentations
/examples
folder. In other words, each codes snippet in the Doc should link to a full working codes in theexamples
folder. The corresponding working example will help to validate that the corresponding codes snippet in the doc could actually works.(3) We will have to make sure that the examples work as well. Ideally, the github action pipeline should failed if the certain example doesn't compile.
(4) it is nice to have a documentation website supporting the "text search" button. It might require a lot of work, but would definitely attract more users.
(5) it is nice to have some convention on
type concrete struct
, I'm not sure where to put it, should it be inore.go
or onconcrete.go
,util.go
.. or when I created a new func, how to choose a good place for itBeta Was this translation helpful? Give feedback.
All reactions