r/node • u/luciferreeves • Jan 06 '22
Faker.JS is dead. I created "BluffMaster"
https://www.npmjs.com/package/bluffmaster40
u/Stephen110 Jan 06 '22
Eh, I think I'm going to pass, the updates being made look like they are coming from someone with little to no experience as a professional software developer or as an open source maintainer -
released 5 versions in the past 6 hours, none of which are tagged, but the fact you are releasing things so quickly without any review is a big red flag
you are merging a TON of commits directly into Master, no review process, no pull requests (you are the only maintainer, but still shouldn't be pushing directly to master)
commit messages are meaningless; there are 4 commits in a row that are all "Update main.yml". Maybe slow down and make all changes you want to make before commiting. Do you have ctrl+s macro'd to auto commit or something?
(personal opinion) the name could be better
6
3
u/doodirock Jan 07 '22
There is already a community fork as well. This kid is just changing typos and mass merging for fun. It would be better to delete this repo and let the current community fork take over.
2
u/cuboidofficial Jan 07 '22
I usually make separate branches and make PRs from those to merge my changes from the staging branch into the master branch after testing in the staging environment and confirming the changes work. Would you say that's a proper way to go about it? (Still somewhat new, so figured I could learn something from you)
3
u/Stephen110 Jan 07 '22
Yep, thatâs a good practice. If you are working on a team youâll also have code reviews and approvals on the PR prior to merging. After merging, I typically delete the feature branch to keep the repo clean.
2
0
Jan 07 '22
I think youâre being a bit dogmatic about reviews. If heâs the only one working on the project, the process of adding a review and approving that himself is nothing but ceremony. Most projects start off this way and thatâs fine. Once he builds a community of developers working on the project and it gains a substantial following, then it might be time to add a little more controls to the project.
0
Jan 06 '22
[deleted]
16
u/Stephen110 Jan 06 '22 edited Jan 06 '22
If I'm looking back at a commit history, I want to be able to clearly see what all commits went into a bug fix or a new feature. I wouldn't call that a waste of time.
Even with a single maintainer, I'd recommend feature and bug work being done on a separate branch and merged in when work is complete. Even better, have CI build feature branches and require the branch successfully builds and passes tests before allowing it to be merged into Master.
Having 50 new commits today all pushed directly to master, none of which with meaningful comments is not good. Having none of those commits tagged to a release is also not good. Having several commits that couldn't even build pushed directly to master is a fucking joke.
Keep in mind - this guy is trying to position "BluffMaster" as a legitimate replacement for a library used by a ton of individuals and organizations. Its not a pet project. The changes that have been made scream instability.
4
u/luciferreeves Jan 07 '22 edited Jan 07 '22
Update: I am constantly pushing new changes. Since, I forked it today itself, it takes time to make changes (not deployed to NPM yet, though). Here's a small list:
Fixed typos (and trust me there were a lot)
Fixed testing functions (almost all of them were failing and now all are passing) - took me a lot of hours to fix the code as the code was outdated too. In order to write new test cases and make older ones pass, I had to modify around half of the core lib files.
Fixed the generate bitcoin function. Also added a new big int datatype.- Replaced fakercloud (faker was using it to generate random profile pictures and this also went down) by pravatar.
Replaced jshint with eslint and fixed all linting errors.
Coverage reports were not being generated, I fixed that too.
And of course, I renamed it. I wanted something unique on NPM, I credited the original author though. Renaming also take a lot of time, unfortunately.
I am still fixing and adding new things. I understand I was a bit rough with the quick releases and non-descriptive commit messages today, mostly because I was trying new things and wasn't worried too much about a production ready app. But I have learnt and now am fixing things on a different branch and merging through PRs. Also I am trying to have more descriptive commit messages.
Thank you.
8
u/JaxLikesSnax Jan 07 '22
It is dead with the question "What really happened with Aaron Swartz?" and you just make a new one... my god read the room.
1
u/TheSwissArmy Jan 07 '22
Should have gone with blaver.JS
1
u/luciferreeves Jan 07 '22 edited Jan 07 '22
Okay done. I renamed it to âblaverâ. Thanks for the suggestion
1
u/NotABotAtAll-01 Jan 07 '22
Does have ts types?
1
u/luciferreeves Jan 07 '22
One function is not there. Will add soon. Other than that everything is there
1
1
u/NotABotAtAll-01 Jan 07 '22 edited Jan 07 '22
Why it is dead? I tried 6.6 and it doesnât work! So was using v5 on Node..
Why it says What really happened with Aaron Swartz? Why last PR says endgame
What really happened to library? It was great for dummy data generation
1
u/luciferreeves Jan 07 '22
Yeah. I created âblaverâ and added all the latest fixes to it. Itâs on npm
4
u/geekfreak42 Jan 06 '22
well played sir! gotta love that MIT license.
-10
Jan 06 '22 edited Jan 06 '22
indeed, meanwhile https://fakercloud.com
2
u/ryhaltswhiskey Jan 06 '22
what was the point of linking to a parked domain?
0
Jan 06 '22
parked domain
they did, I'm wondering what would be, faker through API ?, I don't know
3
u/luciferreeves Jan 06 '22
Actually it was service which resulted in an image when an image name like "hello.jpg" was passed. The service no longer works. I already fixed it in my version by using pravatar.cc
-7
u/ryhaltswhiskey Jan 06 '22
Oh no, you are helping corporations!
(and a lot of people who aren't corporations, but it's hard to care about them)
-11
0
Jan 06 '22
[deleted]
0
Jan 06 '22
[deleted]
2
u/rkesters Jan 07 '22
You could have kept the same name but with a scope... like
@lucifercreeves/fakerjs
0
19
u/oze4 Jan 06 '22
i created fakerer.js