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

SEEKING WORK

Facebook React expert, functional programming [1]

    Location: Philadelphia
    Remote: Yes
    Willing to relocate: No
    Technologies: Facebook React, Javascript, Scala, level 3 REST (HATEOAS)
    Resume: linkedin.com/in/dustingetz
    Email: dustin.getz@gmail.com
[1] https://github.com/wingspan/wingspan-forms https://qconnewyork.com/presentation/functional-programming-... https://thestrangeloop.com/sessions/functional-programming-o... https://news.ycombinator.com/item?id=7906657

comment 12y ago · link · parent

Facebook React expert, functional programming [1]

    Location: Philadelphia
    Remote: Yes
    Willing to relocate: No
    Technologies: Facebook React, Javascript, Scala, level 3 REST (HATEOAS)
    Resume: linkedin.com/in/dustingetz
    Email: dustin.getz@gmail.com
[1] https://github.com/wingspan/wingspan-forms https://qconnewyork.com/presentation/functional-programming-... https://thestrangeloop.com/sessions/functional-programming-o... https://news.ycombinator.com/item?id=7906657

comment 12y ago · link · parent

"You do not tell them this is a language for smart people. You do not tell them you are smart because you use this language. You tell them that types are for fallible people, like we all are. They help us reason and catch our mistakes, because while software has grown more complex, we’re still stuck with the same old brains. If they tell you they don’t need types to catch errors, tell them that they must be much smarter than you, because you sure do."

This tactic is used a lot in evangelism talks and it doesn't work. A lot of the non-FP people listen to these talks and come away thinking, "this person is obviously really smart", and then it comes up in the discussion afterwords, so not only is it unhelpful, but it distracts from the message and perpetuates exactly the myth that we're trying to dispel. We have to calibrate to the audience's understanding of relative words like "smart".

comment 12y ago · link · parent

does facebook intend to use this internally? The code is (C) Facebook, so Facebook is at least interested enough to pay for the development, right? or is this just some sort of R&D that won't have near term impact at facebook?

comment 12y ago · link · parent

i think the scala/intellij lag is intellij's fault, not your cpu - i get it on my spring 2014 mbp.

comment 12y ago · link · parent

Mediocre programmers can learn scala, and the idea is that over time scala can help them become less mediocre. Or at least shift the bar in the right direction.

comment 12y ago · link · parent

https://github.com/wingspan/wingspan-forms https://github.com/dustingetz/react-cursor http://www.dustingetz.com/2014/02/18/react-dynamic-forms.htm...

comment 12y ago · link · parent

transit is cross-language and faster

comment 12y ago · link · parent

cljs/om gives you functional programming as a default, with javascript/react you have to work for it

comment 12y ago · link · parent

Project requires designers committing on your codebase -> use react with jsx

Able to use cljs and don't care about designer friendly -> what are you waiting for!!!

comment 12y ago · link · parent

We chose cursor.value and cursor.onChange to line up directly with react's value/onChange convention. But, we are considering a nomenclanture change and we will probably expose all the react.addons.update - set, merge, push etc. Knowing when to choose value vs pendingValue() is essential complexity, but cursors make it a mechanical decision - in a lifecycle method? use `value`, in an event handler? use `pendingValue()`.

Email me if you want to talk about it.

comment 12y ago · link · parent

If your react state contains large lists, I think React's render() is going to be the bottleneck, not javascript arrays. That's why react state needs to be structured in a tree, so you can implement shouldComponentUpdate and get O(log n) renders. I wrote more in reply to jlongster.

comment 12y ago · link · parent

I've done some research too - check out this implementation of cursors, it enables drop-in O(1) shouldComponentUpdate (like Om) and is compatible with rAF batching (like Om). We explored Mori for a bit too and ended up deciding Mori wasn't worth it. (Our app was big enough that we experienced pretty brutal performance without shouldComponentUpdate. Now our bottleneck is methods like Array.prototype.map over large lists in render, which Mori can't help with - we have to restructure our state away from lists and into trees to better take advantage of shouldComponentUpdate)

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

(It is backed by react.addons.update, it provides a mechanism like mori.assoc_in for immutable subtree updates, and it preserves reference equality for equivalent cursors (value/onChange tuples))

(Cursors are also not vulnerable to issue#122 https://github.com/facebook/react/issues/122)

comment 12y ago · link · parent

YES - I've built two enterprise app frontends (CRUD forms and dashboards) in react since react came out. Now that I know what I'm doing and have my tools built out, I am contracting and hitting ridiculously tight schedules that I would never have been able to hit without the level of abstraction react enables. It helps that a react codebase is massively smaller than a comparable OOP-style codebase (I've used Backbone, Knockoutjs, and ExtJS in comparable apps)

comment 12y ago · link · parent

Can we improve react.addons.update then? Mori is not syntax compatible with javascript datastructures, and needs to be marshalled to interop with javascript components. If you include marshalling overhead, mori is in the same ballpark as react.addons.update.

http://jsperf.com/sprout-vs-mori/3

comment 12y ago · link · parent

What are you using Mori for that react.addons.update doesn't do?

comment 12y ago · link · parent

Yeah, the Om beginner tutorial demos this in lighttable with clojurescript, it's pretty epic.

edit: https://github.com/swannodette/om/wiki/Basic-Tutorial

comment 12y ago · link · parent

Functional is the new pythonic!

(edit: It actually is, half of the good things in Python, like list comprehensions and tuples and destructuring, were first seen in functional languages!)

comment 12y ago · link · parent

I've architected two enterprise-class business apps - both projects would have failed without react IMO. Neither are open source, but both use this library for widgets: https://github.com/wingspan/wingspan-forms

comment 12y ago · link · parent

I think it comes down to if your company has strong enough technical leadership to retain an ocaml engineering team. If there is dissonance between how engineering thinks about the business and how the leadership thinks about the business, you'll not reap the benefits of ocaml and the team will leave. In practice I think this means the founding team has to have an ocaml expert for ocaml to work (or any other not-mainstream tech choice). You can't just hire one and hope for the best.

2631.

Speed in Software Development(targetprocess.com ↗)

12 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

optimizing for cache hits and only loading the code for the view you need are not mutually exclusive. Your build can package optimized assets at a page or component granularity. But parsing a little bit too much javascript is not so slow as extra requests, doubly so considering that the biggest unoptimized assets are the dependencies that every page needs, like jquery, angular or whatever. I have worked on several gmail-sized apps and, to date, the profiler told me not to bother.

comment 12y ago · link · parent

if your user goes to your site twice, he has your assets in cache.

comment 12y ago · link · parent

Article presents incorrect information as truth.

Optimize for cache hits, then no requests happen!

comment 12y ago · link · parent

So what does it look like to define a layout in elm?
1
878889
121