— Hello, world! - said my new blog.
A week ago I created small tool called populate js which helps coders to do less copy-pasting while testing theirs site markup with big amount of fake content. It serves you the simple CSS API, CSS classes
populate-inner-n causing automagically cloning of your DOM parts. With it’s help you don’t ever need to copy-paste content and to turn your clean HTML markup into jumble, keeping it clean and ready to integrated into CMS all the time you’re working with it.
Why I’m writing about it here? I don’t know, if such tool would be really useful for the broad range of coders, but it was really saving me a lot of time working on my recent project. But currently the problem is that I can’t get feedback from colleagues and understand well if some improvements or features are actually needed. I will be glad seeing your comment under this post dedicated to using and value of the populatejs. You’re welcome.
Anyway, additionally I’ve found few interesting tools making generating of fake content more easy task. At first you should take a look to online tool called JSON generator. If you do a lot of REST services on the backend, you will find this tool irreplaceable while mocking backend on the client-side tests. It generates fake GUIDs, names, emails, phones, practically all kinds of data you’re can imagine with the help of it’s own flexible template engine.
Another solution I’ve been discovered was Faker.js. It may run inside node.js or in browser and provides you similar capabilities but through the powerful JS API.
For my taste, using it is bit complex. I believe that a better way is to keep data and code separated, because in most cases code generating data looks like unmaintainable blob.