Comments (6)
Alright, then I'll implement a change where
postcode()
returns a random existing postcodeaddress()
returns a valid postcode-city combination while keeping the format"{{streetAddress}}\n{{postcode}} {{city}}"
, sostreetAdress
will remain fake.Cool?
Sounds good though its hard for me to decide where i have no clue how postalcodes in austria work.
But if you generate a valid postalcode city combination, the postalcode can also be valid from the same list right?
But we generate fake data. I do not really care much if a city name matches the postalcode where it is fake data. Meaning as long as the format is good im fine actually
from faker.
Imo a faker method should return valid data. If it is invalid it is useless to start with.
So if that means a lot of logic, then this is the case we have to deal with
from faker.
So this would then mean that you'd prefer a solution where
postcode()
returns a valid postcodeaddress()
returns a valid postcode-city combination?
To be 100% valid address()
would of course also have to be a valid street-postcode-city combination, meaning a pretty extensive list of valid streets per city..
from faker.
So this would then mean that you'd prefer a solution where
postcode()
returns a valid postcodeaddress()
returns a valid postcode-city combination?To be 100% valid
address()
would of course also have to be a valid street-postcode-city combination, meaning a pretty extensive list of valid streets per city..
Well we create fake data. This means that dummy names can be used there. However if we can build something that is more realistic it would always be good.
The most important thing imo is the format though
from faker.
Alright, then I'll implement a change where
postcode()
returns a random existing postcodeaddress()
returns a valid postcode-city combination while keeping the format"{{streetAddress}}\n{{postcode}} {{city}}"
, sostreetAdress
will remain fake.
Cool?
from faker.
Okay, than I'll just take the easier path and replace the existing randomly generated postcode with valid ones.
from faker.
Related Issues (20)
- Discuss release schedule HOT 2
- Drop support for PHP 7.4 HOT 4
- Update docs to reflect different major versions HOT 2
- Remove functionality for populating ORM models and entities HOT 1
- The output of the md5(), sha1() and sha256() generators is misleading HOT 4
- The output of Base::randomFloat() is biased for certain inputs
- The Miscellaneous::boolean() generator could take a random float instead of an integer
- Warning DEPRECATED use of static pt_BR PhoneNumber HOT 1
- Opinions on Providing a Fake for CIDR/IP Prefixes HOT 3
- Faker images links are broken HOT 6
- Unable to get any other text but Latin HOT 4
- E-commerce Plugin - Feature HOT 1
- [ru_RU/PersonProvider] Double `а` in female lastName when using the `name()` function HOT 3
- Feature Request: Adjective Animal HOT 2
- Issue when try to use the create() function in the class_exists, throws an error when the documentation says the the function should not returns error just bool value. HOT 1
- `Generator::seed` in `Generator::__destruct` may break determinism HOT 1
- date/datetime functions not consistently seedable HOT 1
- `gmail.com.au` domain causes email validation to fail
- Is it maintained ? HOT 7
- Curses/profanities in dutch realText HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faker.