faker
faker copied to clipboard
Check modules and methods regarding their name and location
Clear and concise description of the problem
Some methods are misplaced or misnamed. The same is true for some module.
E.g. the string and number methods, or the address and name modules
Suggested solution
Check every module and method regarding their current name/location.
Alternative
No response
Additional context
No response
See also
- #805
Blocked by
- #1341
- #1342
- #1343
- #1344
- #1350
This should no longer be blocked. Correct, @ST-DDT?
@xDivisionByZerox Yeah, you are right. Do you wish to tackle this?
Checklist from my side:
| Module | State |
|---|---|
| Animal | ✅ |
| Color | ✅ |
| Commerce | ✅ |
| Company |
|
| Database | ✅ |
| Datatype | #1590 |
| Date |
|
| Finance |
|
| Git |
|
| Hacker |
|
| Helpers | ✅ |
| Image | ✅ |
| Internet |
|
| Location |
|
| Lorem |
|
| Music | ✅ |
| Number | Maybe a bit weird that int and hex use abbreviation while binary and octal don't, but ✅ |
| Person |
|
| Phone | ✅ |
| Random |
|
| Science | ✅ |
| String |
|
| System | ✅ |
| Vehicle |
|
| Word | ✅ |
Checklist from my side:
Module State Animal ✅ Color ✅ Commerce ✅ Company
bsshould probably be deprecatedbsAdjectiveshould probably be merged intocatchPhraseAdjectiveand deprecatebsBuzzshould probably be calledbuzzWord(is that correctly written?)bsNounshould probably be merged intocatchPhraseNounand deprecatedDatabase ✅ Datatype #1590 Date
- I don't really know why we have
betweenANDbetweens- potentially
monthshould be calledmonthNameFinance
accountshould probably be calledaccountNumberibanshould perhaps be calledIBANmaskshould be renamed tomaskedNumberor be removedGit
shortShashould probably be merged withcommitShaand configurable via an argumentHacker
ingverbshould probably be calledingVerb(or generally a better name)Helpers ✅ Image ✅ Internet
- There is
exampleEmail(what is an example email?)Location
cityandcityNameshould probably be mergednearbyGPSCoordinateperhaps could be redefined tocoordinatesstateandstateAbbrshould probably be mergedstreetAddress- Having
street,streetAddress,streetNameANDsecondaryAddressis very confusing to mestreetandstreetNameshould probably be mergedLorem
slugseems out of place for me here- There is
paragraphsandtext- aint that the same thing?Music ✅ Number Maybe a bit weird that
intandhexuse abbreviation whilebinaryandoctaldon't, but ✅ Person
job*could fit in theCompanyModuleas wellPhone ✅ Random
- Having a
wordfunction while we have an entireWordModuleseems off (same forwords)localeshould probably be located in theLocationModule- The
RandomModulecould be dropped entirelyScience ✅ String
fromCharactersshould probably be located in theHelpersModulespecialshould probably be calledsymbolGenerate random symbol (eg: ! _ #) #1711System ✅ Vehicle
vinshould probably be calledidentificationNumberfor readability purposesvrmshould probably be calledregistrationMarkfor readability purposesWord ✅
About lorem.slug, perhaps we could move it to a new method internet.slug? I feel like it would make more sense in internet. I assume we would have to deprecate lorem.slug first though
✅ Team Decision: Company
bsshould probably be deprecated
Yes!
bsAdjectiveshould probably be merged intocatchPhraseAdjectiveand deprecatebsBuzzshould probably be calledbuzzWord(is that correctly written?)bsNounshould probably be merged intocatchPhraseNounand deprecated
Replace bs* with buzz* and improve JSDocs (buzz = manager language, catchPhrase = user language).
Team Decision: Date
I don't really know why we have
betweenANDbetweens
To be decided later.
potentially
monthshould be calledmonthName
Sounds good. More information will be discussed in an individual issue.
✅ Team Decision: Finance
accountshould probably be calledaccountNumber
Sounds good.
maskshould be renamed tomaskedNumberor be removed
Renaming sounds good.
ibanshould perhaps be calledIBAN
Nope, this is naming convention. Will not be changed.
✅ Team Decision Git
shortShashould probably be merged withcommitShaand configurable via an argument
Sound good. Can be a length param.
Team Decision: Hacker
ingverbshould probably be calledingVerb(or generally a better name)
We want to give this a more descriptive name but will discuss the details later. We can also consider removing but require more information for other languages.
Team Decision: Internet
There is
exampleEmail(what is an example email?)
rfc2606 - .example domain
We can merge both via an option flag in email and url.
Team Decision: Location
stateandstateAbbrshould probably be merged
Sounds good.
cityandcityNameshould probably be mergedstreetandstreetNameshould probably be mergednearbyGPSCoordinateperhaps could be redefined tocoordinates
Discuss all naming later.
Having
street,streetAddress,streetNameANDsecondaryAddressis very confusing to me
Discuss later.
✅ We also want to merge zipCode and zipCodeByState. zipCode should then throw an error if the provided state argument is unknown.
It seems we have tackled all needed changes. If we want to change something additionally, we should open issues/PRs specifically.