Pretty Placeholder Data and Why You Need It
By: Aarjit
Nothing makes a new UI look more awful than blank/empty sections. The problem is that when you initially start a project, waiting for actual users to sign up just to see if your layout works is a waste of time. This is why you need GOOD placeholder data.
Usually called "mock data" by developers, this is basically just fake information used to fill up your database. Populating your app with fake names, emails, and profile pictures gives you a realistic look at how the final product actually functions.
It's also essential for testing. Empty databases cause errors. If your code expects a username and gets an empty record, the page might crash. Pumping your app full of mock data prevents this and lets you test edge cases. For example, you can throw in a 50-character name just to see if it breaks your layout. Also, since the data is stored locally, you can keep testing everything even if you’re not connected with the internet.
Most of the time, developers format this data using JSON (JavaScript Object Notation). It organizes information into key-value pairs. You set "firstName" as the key and "Obama" as the value, and group them with curly braces. It’s the standard/typical format because it’s incredibly readable for both humans and computers.
In addition, nobody wants to manually type out a hundred fake test emails. Online tools like Mockaroo can let you specify the exact columns you need and download thousands of rows of data without really spending that much time. If you instead want to keep it inside your codebase, libraries like Faker can create random names and phone numbers directly inside your code. Overall, placeholder data is really important and can save time when initially starting on a project, and you shouldn’t just rely on 2 entries and pray your script works with an entire database.

