This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-14
Channels
- # beginners (4)
- # boot (78)
- # braveandtrue (3)
- # cider (9)
- # clara (6)
- # cljs-dev (4)
- # clojure (57)
- # clojure-brasil (1)
- # clojure-russia (99)
- # clojure-spec (20)
- # clojure-uk (40)
- # clojurescript (162)
- # component (17)
- # cursive (4)
- # datomic (21)
- # docker (2)
- # emacs (5)
- # figwheel (2)
- # hoplon (363)
- # jobs (1)
- # leiningen (1)
- # om (4)
- # om-next (5)
- # onyx (10)
- # proton (1)
- # re-frame (13)
- # reagent (13)
- # ring (3)
- # rum (1)
- # slack-help (1)
- # test-check (3)
- # untangled (7)
- # vim (24)
@alandipert run into a snag with local storage atoms
getting an object like {0: "foo"}
from a third party
throws an error because of the round trip through read-string
(cljs.reader/read-string (pr-str (js-obj 0 "a")))
errors out
kk 1 sec i'll try that 🙂
ah, i think i see what i was doing wrong @micha
originally i was doing what you're suggesting but also using keywordize-keys
it does not like 0
as a keyword
(cljs.reader/read-string (pr-str (js->clj (js-obj 0 "a"))))
all good
(cljs.reader/read-string (pr-str (clojure.walk/keywordize-keys (js->clj (js-obj 0 "a")))))
well it's not json at that point
it's a cljs something
yeah i see that it would break a round trip back to json
but i was surprised to see ^^ break
i'm like 5 or 6 levels deep in yak shaving right now
all because they changed from an array to an object between lib versions
hah, only that i got one of my team at my last job to build some internal tools with it
so only vicariously 🙂
he said it wasn't too bad, was hooking up scala js to make a UI for a database encryption/decryption backend
so you can do "real" things with it for sure
i was really trying to get him to use hoplon with it at the time 😉
i feel like they'd be a good match
we were also considering hoplon + electron for an app to sit behind a touch screen for some IoT style devices
@micha what's wrong with chrome though? too much stuff going on?
ironic
mmm, i'm a tab fiend
could not imagine living without them
it's a rube goldberg machine at the moment kind of but it's pretty nice having the tabs be window manager tabs rather than some special in-browser tabs
so my vim keybindings for browser stuff doesn't interfere with the webapp keybindings if they have those
oh yeah, i see how that kind of standardises things
i had a look when you mentioned it before 🙂
they're now sort of forked now, with old working code that is on gtk2 with an older version of webkit, and new not-working code that is on gtk3 with new webkit
when you download something it sends an event on the fifo, and you can use wget or whatever to download it
mmm, but like you said, all the "rendering a page" stuff moves pretty fast
need to be able to keep up with it somehow
well atom uses electron
the "browsing" is invisible unless you go looking for it
oh, you're thinking if you go loading remote urls then bits of ui will start popping up?
i'd be surprised if that was the case
there are definitely keybindings
but i think you can do things with them
cmd + r definitely refreshed the browser when i was looking at what matt was doing with that database tool
but it doesn't "refresh" atom
but it does refresh slack
so there's some mechanism you can override there
hopefully it's not just the raw JS stuff
because keyboard shortcuts in JS can be a pita
yeah but only if you need to be able to run on different platforms with different keyboard layouts 🙂
that's true
makes it a lot easier
well i mean, you could make it do whatever you want
i think postman is done in electron too
that seems like something pretty close to what you're looking for
but visual instead of the raw text
haha yeah that would be fun
like a component maker
like the actual deployed application would have some set of compiled components, defelems basically
mmm i like that
the "business logic" part of the frontend would run in a web worker or something that is loaded separately
you do want to make sure to support on/do as well as just defelem too
i think it would be a challenge to get the right mix of being able to do everything and visual "magic"
mmm, the "wiring up" though
it does
but it doesn't really have a "UI"
well yeah i know how to make a ui with javelin
i mean, a ui to show what's going where with javelin
i'm imagining something like what they do with audio/visual stuff
where you literally drag out inputs and outputs into each other
like sticking leads into pedals 😛
oh, well, i supposed you can't force people to be organised
it's heavily OO
from what i've seen
if i have too many cells and it's hard to understand i will make a function that absorbs a bunch of formulas into one
that's not really restricted to javelin
well, classes
a guy i used to work with moved out of web and into more of this audio stuff, but i really can't remember the names of the programs now >.<
he said it wasn't really a big deal to switch between "wiring mode" and "editing the class" mode
yeah see that's the thing
if you can only do one or the other
it's going to be a painful process, not really using the tool properly
but in audio you can see why it makes sense
it's really like if you had cables and pedals, but you can write OO classes to replace "pedals"
so you're inventing pedals and wiring them up
which is what you're used to doing physically
yeah the problem is when they define a fixed set of pedals that are turing complete and then don't let you make your own pedals
yeah you have to be able to have both
have you tried unity?
that's similar, but without wires
instead you get a 3d modelling tool to make a "world"
and then you write your code into classes
and you drag and drop the classes onto your objects to make them do stuff
and all the public properties show up in the UI as sliders and text fields and dropdowns
so you're kind of "playing your game" while actually writing the code for it
it's quite fun
you can write the code in either JS, C# or some language they made up, from memory
because then everyone would do it and we wouldn't have jobs 😉
honestly, since i moved to hoplon and adopted clj on the front and backend
most of the time i spend messing around with things is dealing with other people's stuff
spending days to figure out why this button sometimes doesn't do anything when you press it
"used to be" - company i worked for bought a crazy russian jquery web app sitting on jade/node templates about 2 months ago
ppl are still doing it...
if you're coming from the gross jquery world
it takes some time to find, then learn both cljs and then hoplon
there are definitely many things
there aren't that many truly different web framework approaches though
just lots of people riffing on the same chords over and over
<--- reformed drupal developer
i know all about incidental complexity
yeah, i'm in two minds about the docs
on the one hand, they are generally *accurate*
on the other hand, it is hard to "get it" when you're coming from a JS framework background
actually, the blog post on splint js really helped me
but the blog post specifically clearly shows moving through progressively less bad tactics to achieve the same thing
^^ me graduating from jquery to hoplon/javelin 😛
haha, i wish i could take the credit for that >.<
when i first looked at javelin it was like "oh yeah, i can see how you can make 2 from 1 + 1, but can i really build a whole site with that?"
for a really long time i had this suspicious that i'd run across "something" that i just couldn't do well and the whole thing would fall apart somehow
obviously every day that goes by without everything falling apart makes that less of an issue
but i dunno how you tackle that with docs in a world of hundreds of shiny frameworks making big claims about solving all your problems for you 😕
you don't want to end up painting yourself into a corner and end up with a ton of work invested in something that has a fatal flaw that was hidden
not at all
even more than that, i want to be able to use some of that ton of work as a launchpad for the next project too!
yeah, i'm personally not that bothered by having jquery there, but i know not everyone is ok with that
that's totally fair
but then browsers will just adopt the jquery api anyway
i suppose in some areas its much easier to avoid jquery than others
also hoplon doesn't even touch on all the things that jquery is for
actually, i did a review of someone's first hoplon attempt, who is used to doing things "the jquery way"
and they made a lot of the same mistakes as i did
trying to traverse the dom or doing weird things with events
actually i didn't find that as hard as everyone makes out tbh 😛
maybe because people make such a big deal about it
yeah but, whatever, think about how hard it was the first time you learned all the different ways to do things in OO
also, there always seems to be that one guy who loves making really complicated classes
so i was expecting something like, 10x harder than all that, at least
to justify all the resistance
so yeah, didn't really live up to my expectations
maybe you could do some "migration" docs :thinking_face:
but it's more like, responding to the things ppl say here in chat from different backgrounds
jquery, react, other cljs approaches, etc.
i have been looking at http://readme.io lately
ah cute
oooh, not that cheap though
docs are hard
and yeah, my experiences with wikis is that out of date, broken info always gets left lying around in nooks and crannys
it would be cool maybe to have an electron app that gives the http://readme.io interface
it would be super easy to make little electron apps that stitch apis like that together
i guess a program that takes markdown files organized as a book and compiles them into a github wiki
it's defs on my list of thing to try out
curious to see how you go
@micha i've used this before, for just getting a heirarchy of markdown up on something like github pages http://www.mkdocs.org
for sure
also, there's like a million static site generators out there
if your main requirements are markdown + automatic TOC
https://github.com/hashobject/perun this guy too
i reckon you can avoid the monthly fee
like http://readme.io you can edit in the page, which is kind of nice sometimes
that's true
on the flipside, when i'm doing commercial things i tend to ask ppl to PR docs with technical info in them
i did see that cljsjs has something ready to go for this https://yabwe.github.io/medium-editor/
ah, well
also i g2g
it's like 3:30am here
damn tz