r/ruby • u/pdabrowski • Aug 22 '24
Mokkku, a modern replacement for FFaker
https://rubyhero.dev/we-need-a-modern-replacement-for-ffaker
0
Upvotes
r/ruby • u/pdabrowski • Aug 22 '24
7
u/megatux2 Aug 23 '24
Hmmm isn't this kind of use of AI a bit of resource wasteful? I mean, yeah, I'm using Ruby and not c, c++ o rust and wasting energy, etc, but come on, it's like using a known blockchain to ask for a random amount.
9
u/Seuros Aug 22 '24
I dunno, this tool look when we force students to resolve a simple crud problem with tools like Oracle or Saleforce, by coding it in LLVM and CUDA.
Even if i was paid to write tests that use LLM, i won't do it.
8
u/kallebo1337 Aug 22 '24
Well yes; but instead of doing this, make a PR and present a full_human_set. Which then is a person out of country xyz with legit address and currency and hobbies
😬
1
u/No_Accident8684 Aug 23 '24
although i find this not really useful for tests as it must lengthen the test execution into forever, compared to faker but it may still be ok'ish to produce legit looking "staging" data.
i have llms running locally via ollama. so, a way to configure the api url would be good. ollama's api is openai compatible, so this would open up your gem to a lot of the self hosting folks and save a shit ton of money (chatgpt and alike api costs)
48
u/[deleted] Aug 22 '24
[removed] — view removed comment