3 ms·
> using ramda for brevity please don't do that. Unless the article also uses Ramda (it doesn't) its not really appropriate for you to do so. If you want to use
by svnpenn 4y ago
> using ramda for brevity
please don't do that. Unless the article also uses Ramda (it doesn't) its not really appropriate for you to do so. If you want to use Ramda in your own, personal code, go ahead. But if you're posting a public example for other people to look at, including Ramda only makes sense if you're on a Ramda forum.
The whole point of this article is clarity in programming, you've reduced that with you decision to include some obscure package.
- adregan 4y agoIt was only intended to be illustrative of thinking about the operation as merging two identical data structures in a manner that produces the result. You could accomplish the it using any technique your codebase prefers be it FP, OOP, &c. (some languages might even handle such an operation natively). In this case, I felt that it was sufficiently close to pseudo code “merge these objects by subtracting identical keys left to right,” but I understand your objection to obscurity. I actually feel that the implementation in this example is fairly unimportant.