Better HN
topnewbestaskshowjobs
Log inSign up

dustingetz

7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions

Founder Electric Clojure https://github.com/hyperfiddle/electric

https://twitter.com/dustingetz

Submissions

comment 12y ago · link · parent

If its the functional programming jargon you're interested in, you might start with Javascript Allonge [1]

[1] https://leanpub.com/javascript-allonge/read

2582.

React-cursor: a JavaScript implementation of the Cursor concept first seen in Om(github.com ↗)

136 points · by dustingetz · 12y ago · 68 comments

comment 12y ago · link · parent

It is written up now

comment 12y ago · link · parent

GitHub.com/dustingetz/react-cursor

It supports o(1) shouldComponentUpdate

My hn comment history has some discussion about it

I'm on my phone now but if you email me I can give more info. I've used react-cursor in two enterprise grade apps in regulated industries and couldn't imagine using react without cursors (believe me I tried)

comment 12y ago · link · parent

the same way that many are dependent on gmail

comment 12y ago · link · parent

i gave a livecoding talk that builds up to cursors at QCon NYC 2014 - it is not yet public but i can send you a private link if you email me

comment 12y ago · link · parent

you are right, this is a sticky spot when using immutability from javascript

- you can clone-and-mutate (I started here, but it quickly became a bottleneck in my app, and jr developers forget a lot leading to hard to find bugs)

- you can use real persistent datastructures (Mori), but now you have added a cross cutting concern - which type of array is the one i'm working with right now?

- you can use React.addons.update (I use this successfully, but you need to get used to a weird syntax)

Om provides an abstraction over React state called Cursors which provides immutable updates to react state at any point in a state subtree. I ported this concept to javascript (implemented in terms of React.addons.update) and have used this successfully in two large scale enterprise applications for regulated industries and I know of one other company using this. This provides a very clean and elegant programming model for immutable updates to react state.

https://github.com/dustingetz/react-cursor/ https://github.com/dustingetz/react-cursor/blob/master/examp...

comment 12y ago · link · parent

i'd wager nearly everyone lurked before making an account

comment 12y ago · link · parent

do you know of any large apps using scalajs-react in production?

comment 12y ago · link · parent

Has martin publicly responded to this anywhere?

comment 12y ago · link · parent

"(which a team of designers can freely modify without worrying about breaking anything or even touching the logic)"

wut

edit: JSX accomplishes this goal handily, no other tech i have ever used comes anywhere close to JSX, and I have used nearly all of them. (I'm the engineer who manages the designer and integrates his changes. Interactions with the designer are like, "Go to line 37 of XJZ.js and make it look like foo." In JSX, there usually isn't any integration to do as he can commit directly. Which is why JSX rocks.)

2592.

React vs. Ember – EmberNYC slides(docs.google.com ↗)

149 points · by dustingetz · 12y ago · 66 comments

comment 12y ago · link · parent

you gotta release something to be able to iterate it

comment 12y ago · link · parent

Not that simple, sometimes you want to change a dependency and test the change without pushing the commit.

comment 12y ago · link · parent

Subtree and submodule solve different problems. I use both often. Sorry about the downvote, I fat thumbed you

2596.

An Agnostic, Complete Flux Architecture Framework(github.com ↗)

1 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

microwaved oatmeal at my desk for breakfast = no cravings for a big or unhealthy lunch. YMMV

2598.

Solving the wrong problems (and why zippers are not all that useful)(pchiusano.github.io ↗)

2 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

who are the people putting 100 euro into digital goods in a single transaction?

comment 12y ago · link · parent

So lets pretend I am a tech lead at a AcmeCo, I quit and start a startup, and an old teammate wants me to hire him. But he is an important employee at AcmeCo and my old CTO will be unable to replace him & his knowledge. I care about my relationship with AcmeCo & the CTO in particular, he is a potential client, we share ownership of some open source offerings, he still mentors me.

How could I possibly take any action that damages this relationship?

comment 12y ago · link · parent

This particular example is javascript/Bower. A fresh clone and build of any javascript project using Bower has a non-deterministic build if it uses Bower's semver capabilites.

comment 12y ago · link · parent

if maintaining a positive relationship with another company is more valuable than the hire, (and when is this not the case?), obviously you will clear it with the other CEO first. I haven't read the book but you haven't quoted enough context to label this disgusting.

comment 12y ago · link · parent

Semver is busted because it makes builds non-deterministic. Building the same code tomorrow may fail if a third party dependency publishes a change violating semver.

For example: https://github.com/bower/bower/issues/1404#issuecomment-4876...

I unfortunately can only complain, I have no solution to offer.

comment 12y ago · link · parent

i think you're out of touch. HN is valuable because experts sometimes post things here that you can't get elsewhere. Try to post comments that are valuable to everybody and further the discussion. Comments like "Thanks", and responses from non-experts, contribute to the discussion derailing. All it takes is one non-expert to make an incorrect side remark and the discussion risks derailing into a flame fest.

Here is an example excellent, useful discussion with comments from experts: https://news.ycombinator.com/item?id=8143905

Here is an example of a not useful discussion with comments from non-experts: https://news.ycombinator.com/item?id=8133835

This post falls into the latter category which is probably why it just got nuked off the front page.

comment 12y ago · link · parent

> isolate the logic of map, filter etc from lists or any particular context

so Functors (fmap)? fmap still uses regular old fns, no machinery.

http://clojuredocs.org/clojure_contrib/clojure.contrib.gener... http://learnyouahaskell.com/making-our-own-types-and-typecla...

comment 12y ago · link · parent

> This is a way to unify all these abstractions so that you can write a single map/filter/concat transform once, and use it in many different ways.

I don't understand why these things aren't all unified in the first place, it's just function composition we're talking about here right?

Edit: I mean it's clearly not just simple function composition, but I don't understand why not

    (def xform (comp (map inc) (filter even?))) ; xform is a transducer
    (defn xform [aseq] (->> aseq (map inc) (filter even?))) ; xform is a fn
Why do these have to be different things? Why is there a need for machinery to do what fn composition is supposed to do?

comment 12y ago · link · parent

Not sure I understand - so Clojure is getting first class support for lazy collections and curried combinators? Or am I missing the important part?

comment 12y ago · link · parent

+1, I wonder if all reasonable immutable architectures share the same design foundations. Another example is datomic which if you squint only a little bit, is basically the same thing as CQRS/ES in shrink wrap
1
868788
121