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

2551.

“Nearly 25000 allocations are made for every keystroke in [Chrome's] Omnibox”(groups.google.com ↗)

26 points · by dustingetz · 12y ago · 2 comments

comment 12y ago · link · parent

This link just clickjacked my facebook and posted to my feed as me. Flagged.

comment 12y ago · link · parent

open source has won, we are innovating at faster and faster speeds than ever before, and the best innovations eventually bubble up to the top, bad ideas get peer reviewed out and thrown away before the whole world depends on them, this is amazing!

I for one am perfectly able to track all this innovation within my specialties (enterprise web dev) across multiple language ecosystems, and if I miss something, someone in my monkeysphere will make me aware of it, all of this fuss sounds like hot air to me.

comment 12y ago · link · parent

Cache: http://webcache.googleusercontent.com/search?q=cache:7WmF1rm...

comment 12y ago · link · parent

It's different in practice because languages have built-in "opinions" (often codified by syntax, or the standard library, or other ways) that heavily influence their ecosystem.

Functional javascript, or python, is not awesome because the default datastructures are mutable, and the ecosystem of libraries are written in an OOP style using mutable data structures. There is some small value in writing the code you control in as FP a way as possible, but you aren't going to have a ton of success in that unless you are willing to rewrite your dependencies to also be more functional.

ReactJS may be a killer app that can influence javascript's "opinions" at the ecosystem scale, but that is going to take more time. I've been using ReactJS since it came out as tech lead on small teams, and it was not without challenges to get an OOP trained team to use React well, and to avoid the OO parts of React.

Edit: In theory, yes, if you could somehow statically enforce that your C code (and dependencies, including the OS) have no side effects, then some hypothetical compiler could combine your imperative C statements into functional expressions, though I don't know what advantage that would give you. Maybe I have misunderstood your post.

2556.

Common mistakes to avoid when creating an Om component. Part 2(annapawlicka.com ↗)

1 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

Hi dragonwriter, is there a way that I can contact you with a few questions about REST that aren't appropriate for here? Twitter, IRC, email?

comment 12y ago · link · parent

Its not about making a living, it's about exposure. We live in a world where content created yesterday can go viral today and reach millions of people. Once you have the exposure, you can figure out how to monetize it. More and more, the ability to gain exposure is in the content creator's hands, not a middleman.

comment 12y ago · link · parent

What? Can anybody comment if it is true that many SV companies only hire from a handful of elite schools?

comment 12y ago · link · parent

> I’m not willing to contribute my life’s work to an experiment that I don’t feel fairly compensates the writers, producers, artists, and creators of this music

A lot of megastars acknowledge that the success of their "life's work" is somewhat a function of luck. Internet radio's artist discovery mechanics scale down to give exposure to smaller artists. It seems to me like we're headed in a direction where a manufactured top-40 single, funded by huge corporations, isn't a prerequisite to success, and that just doesn't seem possible without disruptors like Spotify.

comment 12y ago · link · parent

"simulated the universe as a collection of 1,000 particles that interact with one another only by gravity, representing the galaxies and stars that float around the cosmos. The researchers found that regardless of starting positions and velocities, at some point the particles inevitably find themselves clustered together in a ball before dispersing again"

Wait, what? That conclusion doesn't make any sense to me.

comment 12y ago · link · parent

its not at all clear to me that you are correct.

I'm glad that people are putting thought into the cljs build process though, to this day it is still a particularly un-fun part of clojurescript.

comment 12y ago · link · parent

I don't know, think bigger. The internet changed things forever, and before that computers. Revolutions have been happening at exponentially increasing rates. The explosion of software complexity we see today is perfectly ripe for innovation and maybe even could cause another revolution. The software industry isn't exactly mature when you take a longer time perspective.

comment 12y ago · link · parent

yes, for example, https://github.com/documentcloud/underscore-contrib

comment 12y ago · link · parent

> The just-good-enough wins against excellence, because it is cheaper.

Its not clear to me that this is the case anymore. The whole startup thesis is that a small, excellent team can outperform vastly larger teams of average people. This is the opposite of how it was in the 80s.

comment 12y ago · link · parent

Physics is pure, god is the runtime.

comment 12y ago · link · parent

This was answered on reddit a few years ago

http://www.reddit.com/r/AskReddit/comments/e2uui/why_is_wifi...

comment 12y ago · link · parent

SEEKING WORK - Philly or remote

Full stack web apps, ReactJS expert, built two enterprise grade frontends in ReactJS (designed and led implementation - 50 to 100 pages of wireframes), two open source React libraries, multiple conference talks and workshops.

Seeking long term ClojureScript work or short-medium term Javascript contract. (I am open to fixed price bids and project ownership, I have access to a small team who I have worked with before)

https://github.com/dustingetz/react-cursor https://github.com/wingspan/wingspan-forms https://www.linkedin.com/in/dustingetz

comment 12y ago · link · parent

Location: Philly

Remote: Maybe

Willing to relocate: Maybe

Technologies: Clojure, ClojureScript

Full stack web apps, ReactJS expert, built two enterprise grade frontends in ReactJS (designed and led implementation - 50 to 100 pages of wireframes), two open source React libraries, multiple conference talks and workshops. However I am no longer interested in working in javascript except on a contracting basis.

https://github.com/dustingetz/react-cursor https://github.com/wingspan/wingspan-forms https://www.linkedin.com/in/dustingetz

comment 12y ago · link · parent

I have a macbookpro which is my developer workstation. It is in a default configuration, it is on 12 hours a day, always behind a NAT. What do I need to do to protect myself?

comment 12y ago · link · parent

not sure if i am following you, but in my apps, the data is always in React state. Whether it came from network or from localstorage is irrelevant. There is some code somewhere that loads data into React state from whatever source. All react is doing is rendering views as a fn of state.

comment 12y ago · link · parent

(Author here) I explored an API like that, the problem I ran into was that often you don't want to refine all the way to a primitive; e.g. What is the value of the whole record so I can validate it? Sometimes you want the record, sometimes you want the cursor.

comment 12y ago · link · parent

That is correct. `cursor.value` always respects the react component lifecycle: this is what you always want in `render()`, `componentWillUpdate()` and other React lifecycle methods.

`cursor.pendingValue()` gives you the latest queued state update, which is always what you want in your event handlers (e.g. complicated state transitions in response to a click).

The decision is essential complexity, but at least when you use cursors the decision is mechanical. React has a slightly different API (but equivalent information) that makes the decision less mechanical.

comment 12y ago · link · parent

(update) The discussion here has convinced me; I have opened an issue to eventually change the nomenclature.

comment 12y ago · link · parent

if your state is { foo: ['a','b','c'] }, you can either do:

    cursor.refine('foo', 3).onChange('d')
    cursor.refine('foo').onChange(['a', 'b', 'c', 'd'])
(indexes in a js array are the same as keys in a map)

It is possible to implement `push` and other list/object ops that are exposed by React.addons.update, they have not been implemented yet because they make the interface more complicated.

http://facebook.github.io/react/docs/update.html

I opened an issue for discussion: https://github.com/dustingetz/react-cursor/issues/10

comment 12y ago · link · parent

I would like to see this as well.

comment 12y ago · link · parent

(Author here) I have added a short section to the readme describing how `react-cursor` differs from other, similar, libraries (e.g. Cortex). https://github.com/dustingetz/react-cursor#comparisons-to-si...

comment 12y ago · link · parent

The most common use of cursors will eventually bind them to React form components. Cursor's value/onChange interface is meant to directly line up with React form components' value/onChange convention. That said, I get asked this question a lot, perhaps mostly by people who aren't already React developers.
1
858687
121