-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename(): IPoint
=> XY
#8806
rename(): IPoint
=> XY
#8806
Conversation
thankfully VSCODE is a reliable tool
Build Stats
|
I have still to understand why iPoint is bad, interface for point. |
at some point XY will become IXY if we keep consistency where I are interfaces and T are types. If you have 5 minutes, make an effort and explain why IPoint is bad. |
I think that as a dev using fabric it is unnscessary overhead to have types starting with T and interface starting with I when all I want is to find the type easily and intuitively by guessing the name and autocomplete. I don't know if it is an interface or type and I don't want to know because I don't care. It is annoying to find it like that and opens up discussions like "should this type be an interface or a type?", which is a waste of time and effort. We just want to get it done. |
I think that as a dev using fabric it is unnscessary overhead to have types starting with T and interface starting with I when all I want is to find the type easily and intuitively by guessing the name and autocomplete. I don't know if it is an interface or type and I don't want to know because I don't care. It is annoying to find it like that and opens up discussions like "should this type be an interface or a type?", which is a waste of time and effort. We just want to get it done. |
But TXY is silly and not self explanatory |
So your answer is not that IPoint was a bad name, but that you don't like the prefixing with I for interfaces and so since Point was already taken, for the class itself, XY is an alternative. Regarding this:
Guessing the name and autocomplete is maybe your way to finding things that is fine. pressing T and knowing that most of the auto complete will be a type is another good way to do things. |
True, I don't understand the difference between type and interface. I do understand that interface defines an API and is meant to be used with the implements directive but I think type can be used for that as well. Pressing T is a way to find types, absolutely. That is why I am against I. I don't think it is a good idea to press T and then press I. I won't be sure I didn't miss what I am looking for if there are 2 places to lookup instead of 1. Or if the type exists or not. |
Motivation
IPoint is a bad name
Description
A non brainer rename, nothing else
Changes
Gist
Thankfully VSCODE is a reliable tool
In Action