You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While browsing through the endpoint files, I stumbled upon methods with no parameters (e.g. playlist.me) that are written with get properties and actual methods with no parameters (e.g. me.savedShows()). It would be nice to iron out the inconsistancy with a set code convention rules (contributing.md) or at least a guide (e.g. an issue or wiki-page) for new developers who want to add more features.
The text was updated successfully, but these errors were encountered:
Here are my suggestions so far. Please feel free to add/change/remove/... them:
Suggested conventions:
Methods with no parameters should be written as a property, e.g.
Barget foo => ...;
or if it is an async operation:
Future<Bar> get foo async=> ...;
All members of the models should be written in camelCase. If the API returns a value with_underscore, use @Jsonkey(name: 'with_underscore') to map the json entry e.g.
While browsing through the
endpoint
files, I stumbled upon methods with no parameters (e.g.playlist.me
) that are written withget
properties and actual methods with no parameters (e.g.me.savedShows()
). It would be nice to iron out the inconsistancy with a set code convention rules (contributing.md
) or at least a guide (e.g. an issue or wiki-page) for new developers who want to add more features.The text was updated successfully, but these errors were encountered: