Fork me on GitHub
Daniel Hines02:01:58

Request for comment! I'm soon going to be giving a talk on declarative UI. I want to express how React has moved us forward in this realm, so I've written a tiny implementation of what I understand to be the essence of React. I'd appreciate comments on the following: - Is it clear and easy to follow? - Does it actually capture the core of what React is about? - Is it correct? - Is the demo enough?


the React reconciliation docs are really good, if you haven’t read them already:

👌 5

Cool to see and sounds like a good book. I wonder how much overlap the book’s content would have with Clojure concepts?


No idea... yet! But I'd love to see a Clojure equivalent for the Little / Reasoned / Seasoned Schemer


Anyone with some good tutorial for learning Clojure/Getting interested in Clojure as a beginner? I want to introduce a friend to Clojure (actually using it, not Rich's videos), but to throw setting up Emacs in his face together with feels a bit too much. Even if I went that path.


I recommended Cursive, but not sure if Light table is easier.. would be nice with a all-in-one Tutorial.


is he new to programming? If not, then try to use what they are already used to


he is not. I guess Cursive would work since he uses IntelliJ on a daily basis


I’ve recently revieweed a few books for intro material — Getting Clojure seemed to be the most gentle, no-fluff approach.

💯 5

If he uses IntelliJ, cursive seems a no brainer.


I second @U7PBP4UVA with Getting Clojure.


The downside of that book is that it doesn’t have exercises. My plan so far is to use the 2015 AoC puzzles, as the first 5-6 are very easy to solve.


I'm a perpetual newbie in many respects. I use Atom with parinfer, previously with proto-repl, but I'm trying out Chlorine. I'm impressed by all popular options, at a distance. I gravitate towards Atom because: fewer bells and whistles than Cursive, more modern UI sensibilities than vim and emacs. Parinfer, because paredit makes me feel that a past as a professional piano player would have been useful (vim and emacs induce this sensation as well). Having at least tried my hand at all other options known to me, Atom is what I would recommend someone completely new to Clojure.


Note that Chlorine only supports socket repl. If nrepl is desired, proto-repl is the alternative.


That is a benefit of Chlorine in my opinion: it requires less of your Clojure app/REPL.

👍 5

Thoughts on Udemy as a resource? Our company migrated from a limited number of Pluralsight licenses to a per-employee Udemy license, but I know there's been major issues with course piracy in the past on that platform.


You mean people pirating other folk’s course and putting them on Udemy?


as someone who takes courses, I like Udemy over Kadenze and Pluralsight a lot


though I can't really reify that opinion beyond taste


What do these two python lines do?

def tokenizeWords(s) :
        global words                                          # clip comments, split to list of words
        words += re.sub("#.*\n","\n",s+"\n").lower().split()  # Use "#" for comment to end of line


Tokenizes words, of course


The re.sub() part removes the portion of each line s that contains #, from the # to the end of the line.


global is accessing a global variable from a different scope


Looks like it's stripping off trailing comments


Then converts what's left of the string to lower case and splits that (into words -- so presumably split splits on whitespace? maybe whitespace and punctuation?)


So "Hello World # say hello\n" => "Hello World " => "hello world " => ["hello", "world"]


(I feel tempted to spin up a Python REPL and just try it out...)


thanks for explaining 🙂

Lennart Buit22:01:23

(also, global is realy really really frowned upon in Python)

Lennart Buit22:01:39

Split indeed splits on consecutive whitespace, so "abc def".split() => ["abc", "def"]

Lennart Buit22:01:43

so its not equal to "abc def".split(" ")