This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-11
Channels
- # admin-announcements (20)
- # beginners (48)
- # boot (90)
- # cider (33)
- # cljs-dev (5)
- # cljsjs (10)
- # cljsrn (7)
- # clojure (68)
- # clojure-austin (5)
- # clojure-bangladesh (4)
- # clojure-finland (10)
- # clojure-gamedev (1)
- # clojure-madison (7)
- # clojure-poland (15)
- # clojure-russia (75)
- # clojurescript (25)
- # core-async (23)
- # cursive (5)
- # data-science (43)
- # datomic (15)
- # dirac (26)
- # editors (10)
- # emacs (2)
- # euroclojure (12)
- # funcool (23)
- # hoplon (7)
- # immutant (68)
- # jobs (24)
- # jobs-discuss (1)
- # juxt (1)
- # keechma (9)
- # ldnclj (7)
- # luminus (66)
- # off-topic (54)
- # om (170)
- # proton (7)
- # re-frame (1)
- # reagent (15)
- # ring-swagger (11)
- # spacemacs (6)
- # testing (1)
- # vim (1)
- # yada (19)
I’m having problems doing js/history.back
. It crashes inside react somewhere. As I am using Accountant, I was hoping to find some support there for this, but it has not and I conclude that I am thinking about this the wrong way. Someone here knows how to go about it?
@pez have you tried using the same code outside react? can you give us some sample code?
@hugobessaa: basically it was just [:a {:on-click js/history.back}]
. But as I’m using Accountant there is HTML5 pushState involved and such.
have you tried #(.back js/history)
?
@hugobessaa: That worked of course. Thanks! I have some reading up to do on interop.
@hugobessaa: js/history.back
yields #object[back "function back() { [native code] }”]
, so why the need for wrapping it? Is there a difference between javascript functions and cljs functions?
Quick one: what do people use to hash passwords in Reagent (or CLJS in general) or otherwise stop them from being transmitted in plain text over network?
@grav: I'm not sure. maybe @mikethompson can answer
@hjrnunes: I don’t know if there’s anything Reagent- or ClojureScript-specific, but when I Googled for “clojure bcrypt OR scrypt” this came up: https://github.com/weavejester/crypto-password (plus I think highly of a lot of @weavejester’s stuff in general).
(In today’s world, the only decent password hashing systems are bcrypt and scrypt. Which is why I did not just Google for “clojure password hashing”.)
(x-posting from #C0MDSV2LW) Please vote if you're interested https://twitter.com/mihaelkonjevic/status/708318966863761408
@smw: Huh, I haven’t heard of Argon2 until now. Thanks for the pointer! I’m not a crypto expert, so I go by what I read from the likes of https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2015/march/enough-with-the-salts-updates-on-secure-password-schemes/ (which was written before Argon2 existed).