API method name collisions
See original GitHub issue
Top Results From Across the Web
Java - Method name collision in interface implementation
I encountered such a case where a legacy "Address" class implemented Person and Firm interfaces that had a getName() method simply returning a ......
Read more >Naming conventions | Cloud APIs
In the rare case where an interface name would conflict with another name within the API, a suffix (for example Api or Service...
Read more >Resolve method's name collisions with controller names #3957
I have a couple of controllers with the same method names in my project. And client contains GetData, GetData2, ..., GetDataN methods after ......
Read more >Name collision - Wikipedia
In computer programming, a name collision is the nomenclature problem that occurs when the same variable name is used for different things in...
Read more >Google Objective-C Style Guide | styleguide
Methods can be overridden in subclasses, either deliberately, or accidentally due to naming collisions. When editing a helper method, it may not be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
One more thing about method naming. Exchanges use a wide range of URL parameter names for the same thing. For example:
ticker/:traiding_pair
,ticker/:pair
,ticker/:coin
,ticker/:symbol
and so on. How should the library handle these cases? Use a unified name for the same thing, or respect how the exchange named it? In both cases it’s possible to have a collision (URL param issymbol
, and there could be a query param with the namesymbol
), so that should not matter when choosing.We think preserving them as per exchange is better, because later we could add a swagger-importer or a parser of this kind of format which is common to many exchanges (their API docs) and could make it much easier importing new exchanges later:
The parser should also support other types of brackets around named url params, like in
<id>
and[id]
or:foobar
, etc…If we find some naming that is not consistent with their original schema, we better make the URL listings look as similar as possible to the exchanges’ originals from docs.
Most of the time we can resolve these types of collisions. but so far we haven’t encountered them.