mirror of
https://github.com/kettanaito/naming-cheatsheet.git
synced 2025-08-16 17:41:17 +02:00
@ -236,7 +236,7 @@ function deletePost(id) {
|
||||
|
||||
> **`remove` or `delete`?**
|
||||
>
|
||||
> When the difference between `remove` and `delete` is not so obvious to you, I'd sugguest looking at their opposite actions - `add` and `create`.
|
||||
> When the difference between `remove` and `delete` is not so obvious to you, I'd suggest looking at their opposite actions - `add` and `create`.
|
||||
> The key difference between `add` and `create` is that `add` needs a destination while `create` **requires no destination**. You `add` an item _to somewhere_, but you don't "`create` it _to somewhere_".
|
||||
> Simply pair `remove` with `add` and `delete` with `create`.
|
||||
>
|
||||
|
Reference in New Issue
Block a user