These are chat archives for ramda/ramda

24th
Aug 2016
Vladimir Starkov
@iamstarkov
Aug 24 2016 08:07

few days ago i shared functional programming knowledge with my colleagues. First session was about theoretic intro https://iamstarkov.com/fp-js-workshop/01-theoretic-intro/

I would appreciate any feedback

Vincent Orr
@Cmdv
Aug 24 2016 08:53
Hi fairly random question, trying to convert an existing api which uses a lot of dot notation chaining, which I have to keep :worried: at the same time I want the ability to compose (hence Ramda) :smile: here should give a better example of what I'm trying to achieve. Thanks
should say has anyone got any pointers hehe
Aaron Mc Adam
@aaronmcadam
Aug 24 2016 09:48
I don't think that's composition @Cmdv. It looks like you want to use partial application?
Vincent Orr
@Cmdv
Aug 24 2016 10:04
Yes, you're righ I managed to get a solution....
Brad Compton (he/him)
@Bradcomp
Aug 24 2016 17:47
@iamstarkov Nice!!
Gleb Bahmutov
@bahmutov
Aug 24 2016 18:12
+1 @iamstarkov
Juan Lulkin
@joaomilho
Aug 24 2016 19:24
@raqystyle sorry for throwing the question and leaving. Well, Act is still 0.x, which means I'm welcoming more people to help and contribute with ideas. TypeScript certainly looks interesting. The only goal I don't want to give up is to have an API that unfolds while people learn. This is why main('Hello World') works.
Juan Lulkin
@joaomilho
Aug 24 2016 19:34

@iamstarkov if you really wanna impress your colleagues, change

const double = i => i * 2;
const declarativeDoubleArray = arr => arr.map(double);

to

declarativeDoubleArray = map (*2)
or in Ramda
const declarativeDoubleArray = map(multiply(2))
Brad Compton (he/him)
@Bradcomp
Aug 24 2016 19:38
@joaomilho Is there like a blog post or introduction tutorial for act?
Or is it pretty much just review the example code for now?
Juan Lulkin
@joaomilho
Aug 24 2016 19:53
there's a lot of docs
I really feel that understanding this is 51% http://act-framework.github.io/act/docs/concepts/signals.html
Brad Compton (he/him)
@Bradcomp
Aug 24 2016 19:56
Thanks!
Juan Lulkin
@joaomilho
Aug 24 2016 19:58
but yes, I suppose it is time for a medium article with a tutorial :D
Vladimir Starkov
@iamstarkov
Aug 24 2016 19:59
@joaomilho i had preparation before first talk and got feedback that its a bit too much to grasp at first time
so i decided to split first introduction slides into two
theoretic introduction to describe and show how it can be useful
this friday will be 2nd part "practical introduction"
Juan Lulkin
@joaomilho
Aug 24 2016 20:07
yes, I agree :D
I just feel array.* is a little misleading :D