r/javascript • u/mehmetegemen • Sep 17 '22
Functional Programming and Naturality in Javascript: Conjunctions
https://medium.com/@mehmetegemenalbayrak/functional-programming-and-naturality-in-javascript-conjunctions-78039af7c0920
Sep 18 '22
[deleted]
2
u/mehmetegemen Sep 18 '22
To be honest, it's not self-promotion. I don't have a belief that blog posts on medium can lead me anywhere, I just wanted to communicate and exchange ideas, I like to think a lot in a day and wanted to do it collaboratively. I wouldn't care any upvote or clap or benefit, I am too detached from societies' norms to care about those.
Anyways, I am more of a guy who share his products on a simple html page, that's due to the fact that I started programming 20 years ago with a white and huge keyboard, everything was plain back then, no fancy UIs. For me the most important thing is content, the meaning. And I wanted to have a chat with people who are like me, so didn't care about style much, and I still don't.
0
Sep 18 '22
[deleted]
-2
u/mehmetegemen Sep 18 '22
I am person and my account is a persona, I didn't know it's not allowed to be a person, what you say is a total nonsense.
I am, as a person, telling you the truth here, I give 0 Fs about self-promotion, I more interested in a talk. But you don't listen to me and instead stick to your invalid assumptions, that's a habit of a negative person. I don't want to do ad hominem, but what you write is a paranoid fluff, you can downvote and move on, this wasn't the conversation I wanted from this article.
And another funny thing is you insist that why I didn't present it like you prefer, and I get strong narcissistic vibes from this sentence. I didn't, because I didn't care. Content is important, you can go to fancy websites for your needs.
1
u/Yord13 Sep 18 '22 edited Sep 18 '22
It feels a little bit wrong to just “throw away” the preposition arguments as in
add(15, and, 10). Especially since this would allow for using “wrong” prepositions like inadd(5, by, 10).I feel like you are looking for enforced named parameters like they are widely used in Python:
They have a preposition vibe. JavaScript does not have named parameters, but they can be emulated with object parameters:
Note that I don’t endorse actually writing functions like this. I just feel like this would be a cleaner way to reach the same goal?