Simple version is I learnt ClojureScript and like to think with it. However my job is writing in JavaScript, which is mutable and full of statements and template languages. Now I find it stressful to write code in JavaScript.
I've thought about looking for a Clojure job. But it can be a lot more tough. Feeling anxious these weeks.
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
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 a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/poJkrYuumn4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.