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 11y ago · link · parent

American unicorns are available internationally, why haven't I heard of these?

comment 11y ago · link · parent

if a web problem is worth solving we can build a new browser which solves it, which is what google did vs microsoft. That is simply not allowed on apple hardware.

comment 11y ago · link · parent

Did you put it on Twitter? There's a vote ring detector

comment 11y ago · link · parent

No, I have time/money to re-skill if/when I mis-predict the future, I worry more about getting older

comment 11y ago · link · parent

I price quite high as a freelance react specialist. I worked at a javashop building enterprise pharma apps. I made frontend technology decisions and bet on /early adopted React when it first came out in 2013, open sourced some stuff to fill in holes in the ecosystem since it was still immature, spoke at a couple conferences, gave a few workshops. With this portfolio it is really easy to land clients at high rates from the HN whoishiring threads. I have had zero successful leads from linkedin and recruiters, it always falls apart when we talk about rates. I've learned that your common recruiter and linkedin manager cant differentiate between okay talent and high end talent. CTOs read HN whoshiring threads and those are the people who can tell the difference. https://www.linkedin.com/in/dustingetz

TLDR: make predictions about the future, specialize, be right.

Edit: I post in the HN whoshiring freelancer threads and potential clients reach out to me, for example https://news.ycombinator.com/item?id=9998249

Edit: I have a friend who does wordpress freelance for local small businesses, her business is extremely different than mine as is her story, there are many approaches that can work, the key is to understand your market

comment 11y ago · link · parent

Its a good and common question. Backbone can handle rectangular models okay. When you get into more complicated UI states, or if you have two different views backed by the same ui state like here [1], backbone models totally fall apart - backbone model is designed for list-of-records where the list can change or a record can change, it can't elegantly handle other shapes, like nested records, or list-of-lists, or tree-like (recursive comments), whatever arbitrary shape most naturally models the domain.

Backbone models are also mutable which means lots of model change listeners (callback soup) - check out the flame charts here [2] to get an intuition for what callback soup does to your code and how react fixes it.

[1] http://wingspan.github.io/wingspan-forms/examples/faceted-se... (json blob is the ui state) [2] http://swannodette.github.io/2013/12/17/the-future-of-javasc...

comment 11y ago · link · parent

Pasting from midway down

Fogus: In an old paper of yours, “Callbacks in C++ Using Template Functors”, you write favorably about C++, OOP, and static typing. Why did you change your mind?

Hickey: I’m not sure I did. I said C++ was flexible—it is—and that, when implementing a callback system for C++, one should remain aligned with its object orientation and static typing. More interesting to me, in rereading it, is that I am still now making the same arguments I made then, fifteen years ago, against mixins and derivation as extension mechanisms.

That said, I certainly was a fan of C++ in the day, and five more years of it cured me of that. The complexity is stunning. It failed as the library language it purported to be, due to lack of GC, in my opinion, and static typing failed to keep large OO systems from becoming wretched balls of mud. Large mutable object graphs are the sore point, and const is inadequate to address it. Once C++’s performance advantage eroded or became less important, you had to wonder—why bother? I can’t imagine working in a language without GC today, except in very special circumstances.

Along the way, I discovered Common Lisp, which was much more flexible, dynamic, simpler, and fast enough, and decided that was how I wanted to program. Finally, with Clojure, that is becoming possible, and practical, for me.

comment 11y ago · link · parent

The problem is that traversing a HATEOAS graph (like the www) requires a request at each edge. (The query is only the entry point to the graph, it doesn't help you traverse the graph. Relational joins make it so you don't need to traverse the graph, but this requires a lot of custom endpoints that bake in up-front knowledge about which nodes of the graph will need to be pre-fetched)

edit: Either you edited or I misread, but "You can describe traversals of the graph or tree in a query embedded in an HTTP endpoint" - this is basically what GraphQL/Relay is: an easy way to do arbitrarily nested or recursive queries, like those you find in real complex applications.

(Plug: I am a React consultant, hire me!)

comment 11y ago · link · parent

They appear to be middle-level freelancers, where convincing your clients that you are really smart and making a lot of noise in social media is more important than actually being really smart. (I am also a freelancer, so i'm not trying to be snarky so much as point out the incentives, the article is clearly not meant for HN)

comment 11y ago · link · parent

Here's a quote which I think well describes Facebook's stance on REST, before GraphQL and Relay were public. This is the idea that motivated GraphQL and Relay.

"REST does a shitty job of efficiently expressing relational data. ... I mean REST has its place. For example, it has very predictable performance and well-known cache characteristics. The problem is when you want to fetch data in repeated rounds, or when you want to fetch data that isn't expressed well as a hierarchy (think a graph with cycles -- not uncommon). That's where it breaks down. I think you can get pretty far with batched REST, but I'd like to see some way to query graphs in an easier way."

-- Pete Hunt in 2013, when he worked at Facebook on React: https://news.ycombinator.com/item?id=7600565

comment 11y ago · link · parent

I always get the email address of the interviewer I bonded with the most and ask a follow up question over email; that way you have a direct line to a human who likes you, for use in situations like this.

comment 11y ago · link · parent

Bootstrap does not achieve abstraction except in a superficial dont-repeat-yourself-that-much sense, though I'm not sure abstraction is a design goal.

comment 11y ago · link · parent

> baffles me

IMO pretty clear why, winner-takes-most economics emphasizes dev speed over quality, and then we need to maintain compat with it

comment 11y ago · link · parent

I hear what you are saying about clean and elegant css being possible with preprocessors that add abstraction capabilities. I have never ever seen it in practice, at least nothing on par with the abstraction abilities of code. Can you post a medium scale example of clean & maintainable css that we might study?

comment 11y ago · link · parent

Did you consider contracting? You can bill as a team, you control the interview process, you can split and reunite at will, and the people who are booked can support the people who are benched are working on open source portfolio stuff to attract more clients.

comment 11y ago · link · parent

If Transit is just a human readable XML that is easy to use, that's a great thing because people will actually use it!

comment 11y ago · link · parent

your question resolves to when to choose imperative vs OO v functional, and while I'm not going to try to discuss that here, they are profoundly different. Winapi is imperative, React is functional.

comment 11y ago · link · parent

> I bet they do a lot of shouldComponentUpdate, which kills the functional purity.

functional purity enables shouldComponentUpdate

comment 11y ago · link · parent

I don't agree with your core thesis, "redraw" and "draw" are imperative verbs which are ubiquitus in winapi, `return <b>{msg}</b>` is not a verb but a value, this not superficial or an implementation detail, but rather a massive change in programming model to the point that IMO comparisons that overlook this difference are not useful at best and harmful at worst

comment 11y ago · link · parent

MVVM makes ubiquitous use of mutable state which means model change listeners, callbacks calling callbacks etc, FP/React is about using immutable state to dodge all these problems by design.

http://www.dustingetz.com/2013/09/12/comparison-knockout-ang...

comment 11y ago · link · parent

The author does not understand React :(

> React by itself doesn’t actually solve how to propagate changes

It does actually - you update the state, then React propogates the changes for you through it's props mechanism. Flux is an extra layer of indirection over state changes if you need it: https://twitter.com/floydophone/status/649786438330945536 (edit: I regret my tone here, there is clearly ongoing work in this area and no widely accepted best practice yet)

Flux is not message passing, React components do not redraw themselves, React components do not pass messages to each other, Flux only superficially looks like winapi because of the switch statement in that particular example.

React provides the view as a function of state. winapi is nothing like that.

React is a giant step towards functional programming. winapi is definitely nothing like that.

edit: Windows -> winapi

comment 11y ago · link · parent

> The client should not dictate what the server api should look like

But it always does. rest client needs rest backend. graphql client needs graphql backend.

comment 11y ago · link · parent

cherry-picked statistics are not helpful, flamebait, and derail discussions

comment 11y ago · link · parent

GraphQL means UI components can stand on their own - they work without custom endpoints. And it's faster. You do need to write an adapter between GraphQL and your datastore, which is probably hard today, and probably easier next year, but you only need to pay that cost once.

comment 11y ago · link · parent

I am the author of react-cursor, which abstracts over the react immutability helpers[1], which I have used in four large projects. It scales great and I recommend it over full-on action-store-dispatcher flux (redux and the rest) for almost all projects except the very largest (like multiple frontend teams). Action-store-dispatcher is less direct and has an abstraction tax compared to just connecting views to state directly.

A React.js lead even just wrote on twitter [2], "Starting to see a trend of premature fluxing of react apps. Try plain @reactjs first and bring in flux only when you absolutely need it."

Here's a screenshot of a pretty big project that scaled great with cursors: http://curator-lilita-10664.bitballoon.com/work-area-metadat.... We had all sorts of complexity scaling problems while building this, but none of them were due to state management, migrating to cursors made 99% of pain due to complicated ui state go away.

[1] https://github.com/dustingetz/react-cursor

[2] https://twitter.com/floydophone/status/649786438330945536

comment 11y ago · link · parent

That's a really interesting idea. As a data point, lets look at a healthy, modern, high quality project, what does it use the issue tracker for?

https://github.com/facebook/react/issues

They are using the issue tracker for all sorts of things, and it clearly has value.

comment 11y ago · link · parent

Sorry, it looks like I read your comment uncharitably.

comment 11y ago · link · parent

> being different for the sake of being different

Urbit has brilliant technical insight into perhaps the hardest problem our industry currently faces: why does everything always turn into a big ball of mud?

Urbit may turn out to be incredibly important. Parent comment is unjustified, uninformed, poor tone and ad hominem.

1
808182
121