Re: Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
I've broken out a folder "Structs and Enums" with sub-folders based on
related areas of operation. I'm currently prototyping so I don't have tons
and tons of operation types. Seems good enough, adds organization, and it
keeps my classes much cleaner. I will probably end up with less than a
dozen of each in total.

On Thu, Jul 13, 2017 at 9:56 AM Igor Ranieri Elland  wrote:

> If they’re not being declared inside another object, why not put them in
> their own files?
>
>
> > Am 13.07.2017 um 15:53 schrieb Eric E. Dolecki :
> >
> > Perhaps. Then maybe a folder of categorized structs and enums? I
> personally
> > dislike seeing them sprinkled throughout AppDelegate & other classes.
> It's
> > easy to cntrl-click to where they are defined, but it seems like a lot of
> > clutter.
> >
> > On Thu, Jul 13, 2017 at 9:52 AM Charles Srstka  >
> > wrote:
> >
> >> For a project of any appreciable size, that’s gonna be one huge file…
> >>
> >> Charles
> >>
> >>> On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki 
> wrote:
> >>>
> >>> I am planning on putting all my structs and enums into it's own swift
> >> file
> >>> - to keep my project cleaner. Seems safe enough, thoughts on this?
> >>>
> >>> Thanks,
> >>> Eric
> >>> ___
> >>>
> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >>>
> >>> Please do not post admin requests or moderator comments to the list.
> >>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >>>
> >>> Help/Unsubscribe/Update your Subscription:
> >>>
> >>
> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com
> >>>
> >>> This email sent to cocoa...@charlessoft.com
> >>
> >>
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/cocoa-dev/igor%40elland.me
> >
> > This email sent to i...@elland.me
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Question about structs and enum placement in a project

2017-07-13 Thread Igor Ranieri Elland
If they’re not being declared inside another object, why not put them in their 
own files?


> Am 13.07.2017 um 15:53 schrieb Eric E. Dolecki :
> 
> Perhaps. Then maybe a folder of categorized structs and enums? I personally
> dislike seeing them sprinkled throughout AppDelegate & other classes. It's
> easy to cntrl-click to where they are defined, but it seems like a lot of
> clutter.
> 
> On Thu, Jul 13, 2017 at 9:52 AM Charles Srstka 
> wrote:
> 
>> For a project of any appreciable size, that’s gonna be one huge file…
>> 
>> Charles
>> 
>>> On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki  wrote:
>>> 
>>> I am planning on putting all my structs and enums into it's own swift
>> file
>>> - to keep my project cleaner. Seems safe enough, thoughts on this?
>>> 
>>> Thanks,
>>> Eric
>>> ___
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>> 
>>> Help/Unsubscribe/Update your Subscription:
>>> 
>> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com
>>> 
>>> This email sent to cocoa...@charlessoft.com
>> 
>> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/igor%40elland.me
> 
> This email sent to i...@elland.me

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Question about structs and enum placement in a project

2017-07-13 Thread Charles Srstka
Folders are good. I’d avoid glomming too many types into one file, because 
you’ll spend a lot of time scrolling through that file looking for things. 
Better to break things into smaller files where possible.

Charles

> On Jul 13, 2017, at 8:53 AM, Eric E. Dolecki  wrote:
> 
> Perhaps. Then maybe a folder of categorized structs and enums? I personally 
> dislike seeing them sprinkled throughout AppDelegate & other classes. It's 
> easy to cntrl-click to where they are defined, but it seems like a lot of 
> clutter.
> 
> On Thu, Jul 13, 2017 at 9:52 AM Charles Srstka  > wrote:
> For a project of any appreciable size, that’s gonna be one huge file…
> 
> Charles
> 
> > On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki  > > wrote:
> >
> > I am planning on putting all my structs and enums into it's own swift file
> > - to keep my project cleaner. Seems safe enough, thoughts on this?
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
> > )
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
> > 
> >
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com
> >  
> > 
> >
> > This email sent to cocoa...@charlessoft.com 
> > 
> 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
Perhaps. Then maybe a folder of categorized structs and enums? I personally
dislike seeing them sprinkled throughout AppDelegate & other classes. It's
easy to cntrl-click to where they are defined, but it seems like a lot of
clutter.

On Thu, Jul 13, 2017 at 9:52 AM Charles Srstka 
wrote:

> For a project of any appreciable size, that’s gonna be one huge file…
>
> Charles
>
> > On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki  wrote:
> >
> > I am planning on putting all my structs and enums into it's own swift
> file
> > - to keep my project cleaner. Seems safe enough, thoughts on this?
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com
> >
> > This email sent to cocoa...@charlessoft.com
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Question about structs and enum placement in a project

2017-07-13 Thread Charles Srstka
For a project of any appreciable size, that’s gonna be one huge file…

Charles

> On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki  wrote:
> 
> I am planning on putting all my structs and enums into it's own swift file
> - to keep my project cleaner. Seems safe enough, thoughts on this?
> 
> Thanks,
> Eric
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40charlessoft.com
> 
> This email sent to cocoa...@charlessoft.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
I am planning on putting all my structs and enums into it's own swift file
- to keep my project cleaner. Seems safe enough, thoughts on this?

Thanks,
Eric
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com