#Naming convention for API Client SDK

2 messages · Page 1 of 1 (latest)

wanton geyser
#

I'm currently working on API Client for node.
Since berserk is a well known client for Lichess, would it be better to match the method names with berserk?

For instance, berserk: client.account.get, equine(node): client.info().
Would it be better for the devs to match the name as get()?

More examples:

Berserk:

client.board.abort_game
client.board.offer_draw

Equine:

client.board.abort()
client.board.draw()
slender tinsel
#

choosing your own name is fine imho, there was no particular thought put into berserk’s ones