lein-figwheel

mathpunk 2018-05-21T14:29:50.000702Z

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).

mathpunk 2018-05-21T14:31:38.000105Z

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

mathpunk 2018-05-21T14:32:12.000066Z

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

mathpunk 2018-05-21T14:33:36.000657Z

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

mathpunk 2018-05-21T14:34:06.000219Z

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

bhauman 2018-05-21T15:25:40.000651Z

@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.

bhauman 2018-05-21T15:28:36.000551Z

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

mathpunk 2018-05-21T15:28:41.000292Z

@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

mathpunk 2018-05-21T15:29:07.000525Z

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

bhauman 2018-05-21T15:30:08.000022Z

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

mathpunk 2018-05-21T15:30:09.000404Z

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

bhauman 2018-05-21T15:31:14.000164Z

I gotcha

mathpunk 2018-05-21T15:32:05.000159Z

These are tools going beyond the console then?

mathpunk 2018-05-21T15:36:31.000428Z

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

bhauman 2018-05-21T15:36:59.000415Z

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

mathpunk 2018-05-21T15:37:34.000396Z

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

bhauman 2018-05-21T15:38:25.000258Z

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

mathpunk 2018-05-21T15:39:26.000511Z

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

mathpunk 2018-05-21T15:39:35.000051Z

but, I've been looking for them by inspection