AdvancedCollectionTableView icon indicating copy to clipboard operation
AdvancedCollectionTableView copied to clipboard

Is the naming of the library, classes and properties okay?

Open flocked opened this issue 3 years ago • 3 comments

I'm not happy with the library name AdvancedCollectionTableView. Recommend better names.

I’m also not sure about naming of the classes: I named them the same as in UIKit just with NS prefixes (e.g. UIContentConfiguration to NSContentConfiguration) . This isn't a library/code by Apple, so i’m not sure if it’s appropiate to name them like that. I also used the UIKit documentation about the classes, variables and functions and simply adapted it to AppKit. Is this okay/appropiate?

flocked avatar Dec 15 '22 15:12 flocked

What about NSUI? Hits the nail right into the coffin, I'd say, even though it breaks the convention of up to three letter prefixes at max.

Akazm avatar Jan 06 '24 21:01 Akazm

@Akazm NSUI refers to AppKit/UIKit typealias. For example: NSUIView: NSView/UIView

How would you name the typealias?

flocked avatar Jan 06 '24 22:01 flocked

How would you name the typealias?

I recently ran into this when it came to NS/UIColor, simply called it 'KitColor' because it's the common suffix of both platform framework names, hence it perfectly hints to the fact that this type has something to do with platform agnostic erasures.

Akazm avatar Jan 06 '24 22:01 Akazm