question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should we rename APIs? sangte -> atom

See original GitHub issue

As a Korean, I really liked the name sangte since it just makes sense.

However, after putting myself into foreign developers’ shoes, I thought that they might not like it because they are not used to this word.

Thus, I am planning to change the name as below. I need some feedback! Should I go for it? Or stick with the current naming?

sangte -> atom
useSangte -> useAtom
useSangteActions -> useAtomActions
useSangteValue -> useAtomValue
useSetSangte -> useSetAtom
useSangteStore -> useAtomStore
useSangteCallback -> useAtomCallback
useResetSangte -> useResetAtom
useResetAllSangte -> useResetAllAtoms

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
velopertcommented, Sep 17, 2022

Thank you for sharing your thoughts everyone!

My current plan is:

Create alias atom for sangte, useSangteState for useSangte and keep all the API name as is.

There might be some changes after getting more feedbacks from other developers later on. By the way I am planning to make a video about this library (in English) sooner or later!

2reactions
kyuncommented, Sep 12, 2022

Jotai means a state in Japanese. I guess you have already known this. From the same perspective, The name Sangte looks okay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

We should rename nuclear energy
Nuclear energy needs a new name to differentiate it from nuclear weapons. Besides, most energy sources are named after their fuel rather ...
Read more >
Implement rename_obj (atomic rename) API in storage backend
As a side note for implementation, it looks like we need two types of consistency guarantees where: for creating the temp object, we...
Read more >
Can I rename API names of fields in a change set?
No you can not rename API names with change sets. If you need to do something like that I would suggest using the...
Read more >
Is rename() atomic? - linux - Stack Overflow
Yes and no. rename() is atomic assuming the OS does not crash. It cannot be split by any other filesystem op. If the...
Read more >
Question: Can the name of a locally installed Atom be changed?
As Pete mentioned, changing the name of the Atom as it appears within the AtomSphere UI is quite easy. However if you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found