[ClojureScript] Re: cljs or js, I'm in a trouble

2016-09-18 Thread mars0i
On Sunday, September 18, 2016 at 6:14:02 PM UTC-5, Alan Moore wrote:
> Another red pill rescue... ;-)
> 
> I know how you feel... My day job is all in C++ and JS so it is nice to go 
> home and work in a sane language.
> 
> I sometimes apply the general principles I've learned to the day job and I 
> challenge myself to translate certain idioms from FP to C++. I've noticed 
> that 

I think of Javascript as a language that allows you to do functional 
programming.  It allows you to do a lot of other things, too.  Jiyin Yiyong, my 
guess is that much of what you do in Clojurescript could be written in an 
analogous style in Javascript.  There are libraries available for Javascript 
that make this easier, and books and websites that teach functional programming 
techniques in Javascript.  That wouldn't be as much fun as Clojurescript(!), 
but it might not be as painful as other programming methods in Javascript.

Maybe the real problem is not Javascript, but the skills of other programmers 
you work with (I don't think that imperative programming, OO, etc. is bad--but 
it's not what I like), and the libraries you are using (you mentioned some 
template languages).  

When I worked at jobs in programming teams, sometimes I used functional methods 
in Java or in Perl.  I had to make sure that other programmers would understand 
the code later, so I made sure that I documented it very thoroughly.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


[ClojureScript] cljs or js, I'm in a trouble

2016-09-18 Thread Alan Moore
Another red pill rescue... ;-)

I know how you feel... My day job is all in C++ and JS so it is nice to go home 
and work in a sane language.

I sometimes apply the general principles I've learned to the day job and I 
challenge myself to translate certain idioms from FP to C++. I've noticed that 
some of the most reliable C/C++ I've run across in the wild tends to be more 
functional in style. Const used to be an anachronism but now I reach for it 
early and often.

I also educate my peers on better ways to achieve the same things (without 
being too preaching or over-enthusiastic.) Some get it, others don't. You can 
lead a horse to water...

I hope you find a good outlet for your FP skills and that the day job isn't too 
unbearable.

Alan

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.