Yes you’re right. I forgot that this specific code is real world . Stop being silly. You’re here to practice standards.
Guess what, sometimes you have to practice on silly little toy problems if you can’t read anything more complex. And judging by your responses, you’re in no position to determine “what’s needed in production code”.
Again, you’re either trolling or straight simply don’t understand that FCC tests are not production level code.
Here you are complaining about a simple revealing module pattern, because you can do it easier for this made up test. YET, you have no idea what it even is.
So please educate me here…how is it that you know this is a useless, complicated pattern, when you couldn’t even tell what it was when you read it?
Is the standard of what’s easy determined by what you can read?
And no, you couldn’t read it because you didn’t even recognize the data structure when you saw it. It may as well have been dirt smeared on your screen. Seriously dude…
You wrote a one-liner. Yes, you’re now ready to architect an app
No it does not. Unless you discovered a way to encapsulate private data inside an arrow function, which doesn’t even have it’s own execution context, and return a module.
Yes. I can see your future coworkers, if you ever get to be so lucky, will just have a great time arguing with the newbie about what’s simpler. Lulz.
“Hey guys! I’m serious! You don’t need a module pattern! On FCC I just used arrow functions everywhere!”
smdh…
But what do I know? I only started learning to code last year in January, and got to level 3 kyu in codewars by december because FCC made things more difficult than it needed to be.
It definitely wasn’t because I researched all the data structures and patterns they introduced me to. Nah…it couldn’t have been that.
Feel free to have a look JM-Mendez | Codewars
And if you don’t mind, would you share your solution to this simple, level 5 kata?
I’d very much like to learn how you’d code this simply, just using one line arrow functions. And not any other well known design pattern.
And this is level 5. Just a little above entry level…ah, who am I kidding? You don’t need me to explain. I’ll just let you get to proving me wrong.