This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-18
Channels
- # announcements (43)
- # aws (28)
- # babashka (32)
- # beginners (80)
- # calva (13)
- # chlorine-clover (2)
- # cider (11)
- # clj-kondo (15)
- # cljs-dev (1)
- # clojure (151)
- # clojure-dev (11)
- # clojure-europe (11)
- # clojure-italy (3)
- # clojure-losangeles (3)
- # clojure-nl (4)
- # clojure-spec (20)
- # clojure-uk (58)
- # clojured (3)
- # clojuredesign-podcast (2)
- # clojurescript (37)
- # core-async (4)
- # core-typed (1)
- # cursive (53)
- # datascript (5)
- # datomic (26)
- # duct (23)
- # emacs (3)
- # fulcro (22)
- # graalvm (1)
- # jobs (2)
- # joker (11)
- # juxt (24)
- # lumo (1)
- # mid-cities-meetup (2)
- # nyc (1)
- # off-topic (54)
- # parinfer (1)
- # reagent (13)
- # shadow-cljs (16)
- # sql (9)
- # tree-sitter (9)
- # vim (9)
does anybody here happen to know why async function
s in javascript tend to use const
to store intermediate results? like
const verifyUser = async function(username, password){
try {
const userInfo = await dataBase.verifyUser(username, password);
const rolesInfo = await dataBase.getRoles(userInfo);
const logStatus = await dataBase.logAccess(userInfo);
return userInfo;
}catch (e){
//handle errors as needed
}
};
yeah, const is something "new" in JS, they also use it for (destructuring) requires: const { evalString, toJS } = require("@borkdude/sci");
const
has nothing to do with async
. You can use const
, you can use let
there. Up to you. If you can use const
, it's better to use it.
huh. what are the semantics there though? it seems super weird to have a scoped constant
gotcha. huh. weirdly enough it looks like you can change properties of objects declared as const lol
I think it's basically like final in Java
If you find something strange in JS, try not to dwell on it too much. :) Helps against getting headaches.
I use const
by default in JS, and only downgrade to let
in the rare case it's the only way to accomplish the task
nice. Well thanks! And thanks to all you folks at home for participating in this weeks episode of JS why u so crazy?
what if the original designer of JS had gotten 4 weeks instead of 2 to get it done before the first release... or 2 years
ugh, don't remind me. I'm interviewing for a primarily Nodejs job today. It'll take me a while to infiltrate their enclave of trust and infect them with cljs
someone has experimented with converting wasm to jvm bytecode: https://renato.athaydes.com/posts/running-wasm-on-the-jvm.html
I googled earlier and found "TeaVM" for the opposite direction, JVM -> WASM. It doesn't look near release though
the answer to the former question is that if he had more time, his bosses would've insisted even more that his scheme for the browser be rewritten to look like an oracle product :(
probably the only reason cljs is possible at all is because he only had 2 weeks to bastardize it lol
I think animated urls are my favourite JS hack https://matthewrayfield.com/articles/animating-urls-with-javascript-and-emojis/
But I think it can be fixed with https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
does anybody have any experience with negotiating intellectual property clauses in employee agreements?
this one states that all thoughts belong to the employer for those thoughts that I "conceive, develop, make, reduce to practice or acquire in performing contract services under this Agreement" I feel like thats a little vague and I don't want to limit my ability to contribute to or create open source software in my spare time. Id prefer it be a bit more specific but i need a template to negotiate from
I have experience with refusing to sign garbage like that :)
Seriously though, this is crap lawyers make
You can ask for an addendum that clarifies
Your hiring manager wants to hire people and does not generally like that stuff any more than you
yeah, I agree. I'm looking for examples of employee friendly language that doesn't completely compromise the intent of the agreement
Just state what you have above - the employees work on open source projects outside work areas does not belong to the employer. Something like that
My experience is that companies are more flexible than you expect on this stuff
another one is that I'm working for a company that does some NLP and thats an area of research I'm actively interested in participating in. My role is just to prepare and deploy the data for the model, not the development of the model. Id like to make sure that if I develop models on my own I can publish them or profit from them or open source them