mattcodes

Thailand

Sep
27
awarded Popular Question
Sep
19
comment ClojureScript, Om and Core.async: How to handle events properly
Interesting. I started with the same distinction between app state and local state, but now I consider local state information that I would throw away should the browser crash, everything else is app state to me. It became problematic when one equated app state with domain model. Like MS Word, if crashed and reopened, I'd expected the browser to remember current page and cursor position, so my app state would look like {:document [] :view { :page 1 :line 3 :char 4 } }, local state I might use for say Find dialog { :termSearched "blah" :match 4 :results 10 }.
Aug
6
awarded Popular Question
Jul
2
awarded Curious
Jul
2
awarded Curious
Jun
28
comment Do Typescript generics use type erasure to implement generics?
What an awesome question... hoping it doesnt closed SO style
Jun
26
comment Is this a safe way to empty a list in Golang?
@twotwotwo does it keep a reference to underlying array so if you have b = make(int[], 100) and a = b[:0] even when b is garbage collected a internally will still maintain a reference to that big ass array?
Jun
4
awarded Popular Question
Apr
7
comment How does the performance of using background-gradients in CSS vs using images?
By more than one do you mean one filter applied to one element, or just one filter css directive applied to many elements, or just one type of filter?
Mar
18
awarded Scholar
Mar
18
accepted Is there a technical reason Android update story is so bad?
Mar
18
awarded Nice Question
Mar
17
awarded Popular Question
Mar
16
comment Is there a technical reason Android update story is so bad?
Hmm.. That's the reality of the situation I guess, but if the improvements are mainly "user-land" then they keep the hardware ABI on major versions shouldnt this process be more streamlined. At this rate, blogs etc.. we should really compare iOS 7.1 to Android 6.2
Mar
16
awarded Student
Mar
16
asked Is there a technical reason Android update story is so bad?
Mar
11
accepted Unsubscribe links in email marketing
Mar
11
comment Unsubscribe links in email marketing
bah could people please explain the downvotes, to confirm this isn't a spam/UCE list/campiagn or other name that essentially disguises the same thing. The paraphrased tl;dr of the question is antivirus/malware scanners doing a HTTP GET on links within the email thus could false positive unsubscribes
Feb
17
comment How are Atoms implemented in Clojurescript?
Javascript is single threaded so I doubt there is much too it.
Dec
7
comment What happens to second println statement? (Clojure repl)
Okay got it (i think), it looks like REPL-y captures the result of whole expression first in its own buffer thus when an exception occurs it prints only that rather than what was buffered for stdout. Can observe by this (map (fn [x] (Thread/sleep 5000) (println "x") x) [1 2 3]) even though println calls flush REPL-y nothing prints until after 15 seconds.
1 2 3 4 5