There is a rise in languages that output javascript, such as CoffeeScript and ClojureScript. Since javascript will not be going away anytime soon, I presume this pattern of development will continue.  One problem people have is that you write code in...
I'm seeing lots of code using the pattern:  if (typeof a.b === 'undefined') { ...   Now I'm translating this to:  (if (nil? (-.b a)) ...   Is that appropriate - or am I losing some crucial data?  My question is: What is the ClojureScr...
I'm writing an Electron application, and in this application I need to interact with some of the Node.js APIs - read files, get directory entries, listen to events.  Of course, I can write ClojureScript same way I would write JavaScript, but I wa...
Is it possible to use third-party React components in an Om application?  I have a project written in ClojureScript with Om and I would like to use JedWatson/react-select, how should I approach this problem?...
I'm am trying to .push some data to my Firebase but I'm getting this error in my Chrome console:      Uncaught Error: Firebase.push failed: first argument  contains an invalid key (cljs$lang$protocol_mask$partition0$) in property 'arr.0&#...
Many tutorials have the goog/base.js file included in a script tag and then use goog.require('your_script') to start the app running. For example, here is the header of an HTML file from the linked tutorial:  <script type="text/javascr...
getUserMedia has a number of prefixes that are still necessary in many browsers. I am attempting to hide the use of these prefixes by putting all the prefixes in getUserMedia.  (def getUserMedia   (or js/navigator.getUserMedia       js/navigator.webk...
How to specify which ClojureScript file to include in a particular page?  Let's say now I have two pages, home and login, and I want only the compiled js from (ns foo.home) to be included in the home page, and only the compiled js from (ns foo.lo...
I would like to get the binary form of a number, e.g 6 -> "0110"  I've tried (js/toString ...) but no matter what syntax I use, the repl always returns "[object Window]". What does this mean?  I'm also confused because toSt...
I want to write a clojurescript function that returns a complex item like ["foo" "bar"] or (list "foo" "bar") and I want to be able to call this function from javascript and get at the parts of the return value. How ca...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.