Why do anyone have to create a file for every class if they wanted them to be encapsulated then? Why can't we put them in the same file if they are relativity small?On 01/11/2018 2:35 AM, 12345swordy wrote:On Wednesday, 31 October 2018 at 13:28:54 UTC, rikki cattermole wrote:Ok, you agree that it is subjective. Why is having more then one class per file "too large"?On 01/11/2018 2:25 AM, 12345swordy wrote:[...]Because it is.My rules (which tend to be a little stricter than most peoples) are:Soft split 1k LOC, hard split 3k LOC without a very good reason not to.But at the end of the day, it just depends on the scope of the module. Is it getting to large? If so, split.It doesn't. It is a group of related symbols. If it doesn't have function bodies (e.g. extern(C++) or COM) I would call that module to have too small of a scope.
Re: Wed Oct 17 - Avoiding Code Smells by Walter Bright
12345swordy via Digitalmars-d-announce Wed, 31 Oct 2018 13:25:30 -0700
On Wednesday, 31 October 2018 at 13:39:25 UTC, rikki cattermole
wrote:
- Re: Wed Oct 17 - Avoiding Co... 12345swordy via Digitalmars-d-announce
- Re: Wed Oct 17 - Avoidi... rikki cattermole via Digitalmars-d-announce
- Re: Wed Oct 17 - Av... 12345swordy via Digitalmars-d-announce
- Re: Wed Oct 17 ... rikki cattermole via Digitalmars-d-announce
- Re: Wed Oct 17 ... Stanislav Blinov via Digitalmars-d-announce
- Re: Wed Oct 17 ... rikki cattermole via Digitalmars-d-announce
- Re: Wed Oct 17 ... Stanislav Blinov via Digitalmars-d-announce
- Re: Wed Oct 17 ... rikki cattermole via Digitalmars-d-announce
- Re: Wed Oct 17 ... 12345swordy via Digitalmars-d-announce
- Re: Wed Oct 17 ... rikki cattermole via Digitalmars-d-announce
- Re: Wed Oct 17 ... 12345swordy via Digitalmars-d-announce
- Re: Wed Oct 17 ... unprotected-entity via Digitalmars-d-announce
- Re: Wed Oct 17 ... H. S. Teoh via Digitalmars-d-announce
- Re: Wed Oct 17 ... unprotected-entity via Digitalmars-d-announce
- Re: Wed Oct 17 ... H. S. Teoh via Digitalmars-d-announce
- Re: Wed Oct 17 ... unprotected-entity via Digitalmars-d-announce
- Re: Wed Oct 17 ... Neia Neutuladh via Digitalmars-d-announce
- Re: Wed Oct 17 ... unprotected-entity via Digitalmars-d-announce
- Re: Wed Oct 17 ... Laeeth Isharc via Digitalmars-d-announce
- Re: Wed Oct 17 ... unprotected-entity via Digitalmars-d-announce
- Re: Wed Oct 17 ... Neia Neutuladh via Digitalmars-d-announce
