HNHacker News
TopNewBestAskShowJobs

escherize

875 karma · joined January 21, 2013

escherize.com
submissionscomments
escherize··on A small dive into, and rejection of, Elm
Thanks guys I'll look into it.
escherize··on A small dive into, and rejection of, Elm
Your small dive prompted me to create a simple version of what you were describing [1]. I didn't use my usual editor, and just used the cljsfiddle itself.

I really wanted to create a spec for the data in app-state, and check the value in the app-state atom each time I edited it (perhaps with an add-watch). That gets you many of the same advantages of static typing, but you only add the extra insurance when you think its worthwhile instead of always.

Instead of using strings for time-choices and page-choices (in the code at [1]), you can use maps like

    [{:title "Day" :time 24}, {:title "Hour" :time 1}...]
and expand when nessicary. It shouldn't be too difficult to keep them in sync this way.

You might want to check out clojurescript again sometime soon. Clojure.spec (and cljs.spec) are going to offer a huge jump in usability. Clojure.spec is a tool kit, and specs are basically definitions of data, that can be used for parsing, unparsing, and generating that very data. The beginning of this (interactive, cljs driven) blog post shows clojure.spec off a bit.

[1] - http://escherize.com/cljsfiddle/#gist=eea10854f99ef124f8dc15...

[2] - http://blog.klipse.tech/clojure/2016/10/10/defn-args.html

escherize··on Ask a Female Engineer: Interviewing and Company Culture
And can't even safely mention whites.
escherize··on Why I hate frameworks (2005)
We build complicated software with simple tools where I work using Clojure. There's even a talk about Java:Powertools::Clojure:Handtools! [1]

[1] - https://www.youtube.com/watch?v=ShEez0JkOFw

escherize··on Programmer, interrupted (2013)
Why don't you ask those people? Or explain your signaling mechanism a bit more.
escherize··on Too Poor to Afford the Internet
Do you actually believe the public school system's goal is to educate children? More like freeing up parents to go to work (and tax), and employing teachers and administrators. It's nearly impossible to fire teachers, thanks to a public sector union who's got their back.

School is like a prison for kids. One form of punishment is detention - more school.

Also, "In the 2000 report, commissioned by the American Association of University Women, surveyors asked students between eighth and 11th grades whether they had ever experienced inappropriate sexual conduct at school. The list of such conduct included lewd comments, exposure to pornography, peeping in the locker room, and sexual touching or grabbing. Around one in 10 students said they had been the victim of one or more such things from a teacher or other school employee, and two-thirds of those reported the incident involved physical contact." - http://www.slate.com/articles/news_and_politics/explainer/20...

So, asking if something the public school system is doing is student focused betrays a fundamental misunderstanding of its purpose.

escherize··on Hammerspoon – Powerful automation of OS X with Lua
For me, I use cmd+alt+control to let me access shortcuts like:

cmd+alt+control+k emaKs cmd+alt+control+T Trello cmd+alt+control+M chroMe

And I have cmd+alt+control+/ print this bubble message onto the screen to help remember them all: https://fetchh--captured.s3.amazonaws.com/2016-07-15_135709....

escherize··on Hammerspoon – Powerful automation of OS X with Lua
Yeah - code or it doesn't exist!
escherize··on Simple Ways of Reducing the Cognitive Load in Code
I'd like to add one: let your tools do the work for you. It may seem like a pain to learn the tooling behind what you do, but once you internalize it, it becomes a superpower.

An example is that I use Clojure Refactor Mode (with CIDER) for emacs. A trick (and treat) that a lot of Clojure code uses is the arrow macros: -> and ->>. Clojure Refactor Mode has thread-first, thread-first-all, thread-last, thread-last-all and unwind. Since I've committed those to my long term memory, I can just call thread-first-all on something like:

    (reduce * (repeat 4 (count (str (* 100 2)))))
and get:

    (->> 2
         (* 100)
         str
         count
         (repeat 4)
         (reduce *))
This is so huge, because many times changing the levels of threading makes reasoning about the code so much easier.
escherize··on Emacs Live (2013)
I'm also a huge prelude fan. Very easy to get helm, projectile, and cider working. I've used spacemacs (love the theme), emacs live (love the theme), Steve Purecell's emacs config, emacs starter kit, and others.

I settled on prelude because it is the most like a "vanilla" emacs installation (unlike spacemacs), and is easily extensible.

escherize··on Show HN: Slide – an open-source plain text presentation maker
Sure, here's a link to the repo: [1]. I followed the guide in the org-reveal repo to get it working, I'll find it, hang on... Found it: [2]! Happy hacking!

    [1]: https://gitlab.com/escherize/talks/tree/master/cljsfiddle
    [2]: https://github.com/yjwen/org-reveal
escherize··on Show HN: Slide – an open-source plain text presentation maker
I ctrl+f'd for org-reveal, and didn't find it so I'll give it a plug.

I write org-mode files (kind of like a richer version of markdown), and use org-reveal and emacs' publishing system turn them into slide shows like [1] this: (pic: [2]). The best part about the workflow is including code snippets using org mode's add source block, which allows me to edit code in the usual mode that I edit code with. Also org-reveal uses emacs' code highlighting settings to do code highlighting.

    [1] http://escherize.com/rethinkdb_talk/
    [2] http://take.ms/FHrR0
escherize··on Why didn't Common Lisp fix the world?
Incedentally I also use Emacs for editing lisp. (emacs lisp and Clojure.) Learning the hotkeys/concepts behind structural editing of lisp code was life changing metamorphasis, but quite difficult overall. There's been some fantastic work done by the Parinfer [1] team to bring the awesomeness of structural editing of lisp to the masses. The basic idea is that your parenthesis should infer where they belong by way of your indentation.

I installed Parinfer it on my project: CLJSFiddle[2], and it's not what I'm used to and doesn't have everything but for a novice it is highly usable - check it out!

[1] https://shaunlebron.github.io/parinfer/ [2] http://cljsfiddle.com

escherize··on Why didn't Common Lisp fix the world?
I agree it's hard to write lisp without a proper editor. Having seen the light I just can't go back now. The power, ease, and simplicity are not something I've experienced with non lisps.
escherize··on A Plan to Flood San Francisco with News on Homelessness
So, from your article 40% of SF homeless people self-reported moving to SF. Doesn't that support GP?
escherize··on Nestlé Wants to Sell You Both Sugary Snacks and Diabetes Pills
... while being funded under the threat of force (taxation).
escherize··on Living Only on Bitcoins
The fed is not a public institution.
escherize··on Does the Database Community Have an Identity Crisis?
I was hoping this would be about PLace Oriented Programming (PLOP) which confuses identity with state. It's a problem for OOP in general, where the identity of objects is predicated on their particular state. The talk http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hic... goes over the idea in more detail.
escherize··on Amazon open-sources Ion – a binary and text interchangable, typed JSON-superset
Is there a source for benchmarks/reviews for the various ways to represent data? As far as I see it, there are a lot of them that I'd like to hear pros/cons for: json, edn + transit (my fave), yaml, google protobufs, thrift (?), as well as Ion.

And where does Ion fit here?

escherize··on Got a Hot Seller on Amazon? Prepare for Amazon to Make One Too
I'm curious how you know what's good for consumers more than they do. Would you mind explaining why it's bad for cost-cutting consumers in the long run?

Seems like amazon is content to run razor thin margins, and if they jack up the price after competitors go out of business, that move would recreate a market for item X and burn some Amazon good will.

I also find the Amazon branding on that laptop stand to be really tacky, though!

escherize··on Clojure, the Good Parts
Sorry but that's not the case.

    (r/create-class
      {:reagent-render render-fn 
       :component-did-mount (fn [] (js/alert "hi"))})
No metadata there
escherize··on Cleartext: A text editor that only allows the 1,000 most common words in English
Thanks for clarifying. I do agree that his speaking style is different and interesting.
escherize··on Cleartext: A text editor that only allows the 1,000 most common words in English
Is this the syllogism?

    Trump uses political language
    political language makes murder respectable
    ------
    Trump makes murder respectable
Why focus on Trump then? Care to name a politician who's not using political language? That seems to be an oxymoron.

Trump was against the Iraq War, probably the biggest killing event of the last xxx years.

escherize··on Cleartext: A text editor that only allows the 1,000 most common words in English
Dude, that's not an argument - that's a whole bunch of ad hominems. Could you bring an argument against Trump at least instead of literally smearing him and his supporters? The guy is acknowledged to have won (basically) every republican debate.. would you suggest a child can do that?
escherize··on Model 3 Unveiling [video]
I found out you can get a countdown timer if you google:

    countdown to 8:30pm PST
or use this link: https://www.google.com.au/?q=countdown+to+8%3A15pm+PST#q=cou...
escherize··on Cljsfiddle performace upgrade
Maintainer here. Here's the link to cljsfiddle itself: http://cljsfiddle.com

Also it looks like the dns server hasn't updated so if that link is broken try: http://52.62.155.17/

escherize··on Emac’s Org Mode will improve your software engineering
I'm pretty into org-mode. I got started from this article by Sacha Chua[1]. Her note taking style helped me learn faster. (This post was written in emacs.)

[1] - http://sachachua.com/blog/2014/01/tips-learning-org-mode-ema...

escherize··on How One Hardware Startup Solved Silicon Valley’s “Woman Problem” (2015)
Right, businesses collapse under their own weight when you stifle honest conversations.
escherize··on Grd – A CSS grid framework using Flexbox in 512 bytes gzipped
I like it. It'd be easier to play with the demo if there was some more space beneath it.
escherize··on Ask HN: What are some examples of beautiful software?
Wow, I knew about aleph, but just learned of automat. I was always a fan of FSMs in school, and automat's readme gave me goosebumps. Thanks!
← PreviousPage 4 of 12Next →