yoanbernabeu / Airtable-Client-Bundle

Simple Client for Airtable API
MIT License
33 stars 12 forks source link

Toughts on grammar and semantics #17

Closed TangoMan75 closed 3 years ago

TangoMan75 commented 3 years ago

Hi Yoan, šŸ‘‹

I was looking at your videos šŸ‘ and I thought I could help on your Airtable project with a couple suggestions.

šŸ’” 1. Rename findTheLatest() to findLast()

šŸ”„ Affected files:

Though not grammatically incorrect per se, usage of superlative Latest and article The makes me cringe šŸ˜¬ a little. I suppose native english speaker would simply use findLast(). For example if we would need to retrieve the first item in Airtable we would not name the method findTheFirst() we would simply name it findFirst() IMHO.

šŸ’” 2. Rename addOneRecord() to addRecord(), or add()

šŸ”„ Affected files:

Do you plan to develop a addMultipleRecords() method at some point in the future ? If not, maybe addRecord() would be just as good from a semantics point of view then... Or just add(). I like to keep method names short and simple.

šŸ’” 3. Rename findOneById() to find()

šŸ”„ Affected files:

With Doctrine we would just use find() method to query an item by id from the database, I suggest to use the same convention.


Tell me what you think about it, and I will work on a PR to fix this.

Hope that helps, peace āœŒ

liorchamla commented 3 years ago

I love it, would you file a PR for those changes ? If you don't plan to propose, I could implement this when I have time, let me know :)

TangoMan75 commented 3 years ago

Hi @liorchamla, šŸ‘‹ it is not a lot of work at all, I can have a PR ready quite soon.