I think it will be a long way to convince the whole world to switch over from spinners to skeletons haha. But I think that it will be easy with such good libraries like moti.
Also: what your opinion on prefixing boolean variables with is or has? I always find it much easier to read isLoading instead of loading
I’ve seen isLoading used a lot. I agree that it’s more descriptive. For some reason I just like shorter words without camel case, but I definitely see the merit to isLoading.
Prefixing a verb with "is" signals that it's a state/Boolean.
Naming something with just a verb could be confused with a function.
Using shorter words when working on your own is fine, if you're part of a team going against established conventions makes it a pain for everyone else.
I think it will be a long way to convince the whole world to switch over from spinners to skeletons haha. But I think that it will be easy with such good libraries like moti.
Also: what your opinion on prefixing boolean variables with is or has? I always find it much easier to read
isLoading
instead ofloading
I’ve seen isLoading used a lot. I agree that it’s more descriptive. For some reason I just like shorter words without camel case, but I definitely see the merit to isLoading.
Prefixing a verb with "is" signals that it's a state/Boolean.
Naming something with just a verb could be confused with a function.
Using shorter words when working on your own is fine, if you're part of a team going against established conventions makes it a pain for everyone else.
I’m not sure if ‘loading’ would ever be considered a function. You’re free to add ‘is’ there if you want.