How do you deal with ios people complaining about ...
# multiplatform
u
How do you deal with ios people complaining about naming schemes? i.e.
CustomerId vs CustomerID
?
s
Are the iOS devs on your team complaining, or iOS devs on social media/slack?
If the latter, if that is all they complain about, then they have a pretty good dev life ๐Ÿ™‚
๐Ÿ˜„ 2
f
Talk with them about creating a coding-convention; See: https://kotlinlang.org/docs/coding-conventions.html#source-file-names
u
yes devs on my team, they talk that the interface provided is not swifty - when called from swift
s
They are not wrong, but iOS devs at my work have gotten used to it. The kotlin-to-swift interface (naming) is not yet optimal. But using KMP's potential saving is likely to outweigh these issues.
u
Is there a way to maybe rename it for them? i.e. some annotation or something
s
You can annotate to provide a Swift or ObjC name, although you might find that clutters things a little.
Copy code
@ObjCName(swiftName = "customerID")
val customerId: String
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.native/-obj-c-name/
๐Ÿ‘ 2
s
fist bump 2
u
oooh great
m
Tell them the compiler doesn't care about your naming conventions so get used to it ๐Ÿ˜†
๐Ÿ˜„ 2
u
I gotta appease them somehow in the beginning ๐Ÿ˜„
j
You could point out that "ID" is not an acronym (it's an abbreviation for identity or identifier), and thus the 'D' shouldn't really be capitalized. Apple made a mistake in capitalizing it in their frameworks e.g. CoreData. ๐Ÿ™‚