Fork me on GitHub

I have a new job where they don't think it's crazy if I use Clojure, and I am psyched. I want to do a thing that sounds complicated but maybe isn't? I'm doing QA on a new app with a Java back end and an AngularJS front end. It's pretty big --- not enterprise/legacy big but bigger than projects I've made for sure. I want to get some visibility into what is happening, so I want to open and connect to a repl on the front-end. (I also want to do this on the back end but Ill ask in #java about that).


I know that there are functions that will open a repl you can connect to. I think what I need to do is write a tiny bit of code in our app somewhere that will call those functions. I'm still getting used to how there's a global namespace with all kinds of vars floating around in the browser; i.e. there's a lot I don't know


Any advice on where to begin with this would be most appreciated!


I have worked with figwheel before, but only on little greenfield projects where I just used the template and jacked in from emacs and boom, everything was shiny


For now I'm doing the obvious thing and just reading the quick start carefully


@mathpunk unless I'm miss-understanding your situation, inserting a Clojure REPL into the java process sounds like a clear win. Whereas, the ClojureScript REPL may not be as much of a win over Chromes built in devtools.


oh now i get it, you want to write additional code in clojurescript


@bhauman I see. I am not familiar with those devtools. The reason for the crazy idea is simply, 1) being more familiar with ClojureScript than JavaScript --- though I will be writing plenty I'm sure --- and 2) wanting to eventually find places to insert generative testing to break things and help the devs figure out where


Yeah I'm not one of the app developers but I am QA with possibility of datasci


devtools are the tools that open in the bottom of the browser window, like firebug of old


Trying to balance "Fit in with the team" with "We're fine if it's effective to do something odd"


These are tools going beyond the console then?


I'm testing through the UI now, with Protractor which is webdriver-for-Angular. Anything that gets me faster information about what's going on than squinting at Inspect Element will qualify as a win


well I was thinking that the console is a better introspector of a JS application, than a cljs REPL


ok! "Learn to JS introspect" is a great answer actually


yeah, and its probably going to be hard to get by without learning the internals of Angular


I'm definitely learning those. I got this job by not knowing anything about webdriver, but knowing how to REPL (with etaoin) my way into understanding.... now I'm learning about how Angular does things, what kinds of classes to look for


but, I've been looking for them by inspection