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

2701.

Building dynamic forms with Facebook React and KendoUI(dustingetz.com ↗)

2 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

enterprise consulting teams face a perverse incentive to be less efficient than product teams - a consultancy can actually kill itself by being too efficient

comment 12y ago · link · parent

one thing React by itself can do that React+Backbone.Model can't, is handle oddly shaped state. Which is almost all of your state, once your application becomes nontrivial.

http://jsfiddle.net/dustingetz/YUCBT/2/

comment 12y ago · link · parent

Sure, its about half "Kendo-React adapter" and half general functional-programming friendly form abstractions that aren't coupled to the underlying widget implementation. The higher level of abstraction is the important bit - this level of abstraction isn't possible in "just Kendo" or any other OOP style widget library.

2705.

ReactJS library for dynamic forms, grids and widgets – with interactive demos(github.com ↗)

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

comment 12y ago · link · parent

False, the meaning of the like button has historically changed over time. It had nothing to do with brands and advertising when it launched.

comment 12y ago · link · parent

Your first paragraph is true of functional languages too, which are decidedly not OO by any modern definition. OOP is about inheritance and encapsulating mutable state.

comment 12y ago · link · parent

yo switch the gist to markdown to get word wrap

2709.

Promises are the same as simple function composition(dustingetz.com ↗)

3 points · by dustingetz · 12y ago · 1 comment

comment 12y ago · link · parent

+1 react, I also believe it would satisfy OP's need. React is going to take over the world in the next 5 years

comment 12y ago · link · parent

You don't need it because since reads don't touch network you can run multiple queries with JVM code interspersed wth no network cost. So in your example you can query two sets seperately and do a set difference in your app process. Doing it in app process scales horizontally, doing the same thing in the database process (like SQL) scales vertically. So if they were to implement this in datalog, per my understanding they would probably be doing it in your process anyway.

comment 12y ago · link · parent

If something this powerful was reasonable to do in javascript, it would be mainstream knowledge by now.

Clojurescript's core.async is a macro approach which is not quite the same but very similar to what I describe.

You could probably do it in sweet.js (marcos for javascript that are expanded at compile time) but as far as I know, nobody is actually doing it so there are probably showstoppers.

A monadic approach requires all of your code to be pure-functional, which is unreasonable because you'd have to rewrite all of your dependencies to be pure.

comment 12y ago · link · parent

Only true in the most pedantic sense.

For monads to work, all your code needs to be pure (in the FP sense). So if you want to do anything substantial with monads in an imperative language, you need to rewrite the entire ecosystem of libraries. That would cost quite a bit more money than your average organization can afford ;)

comment 12y ago · link · parent

Promises are actually very simple - so fundamental that you can think of them as dual to function composition. By a dual to function composition i mean that you can mechanically convert async promise code to everyday synchronous function calls - including everyday exceptions. That means that literally the code can look exactly the same whether or not you are async or sync. The trick is you need either macros or monads to do this.

(This is kind of the whole point of monads - you could write a piece of code by composing a few functions, and then make it asynchronous without breaking the function composition! No need to rewrite your code to use callbacks; the same code will just work.)

comment 12y ago · link · parent

Maybe not. The bass at a dubstep show hits your chest really hard, I can imagine it floating a golf ball. You can do some simple DSP to cancel out most of the amplitude too

comment 12y ago · link · parent

bitcoin can be an implementation detail of credit cards, totally hidden from the user. In the medium term, banks can probably figure out how to work this to their advantage, for example by reducing cc fraud.

comment 12y ago · link · parent

!!!!

This kind of knowledge is acquired by reading 'Javascript the Good Parts'. It goes without saying that someone who considers themselves a good frontend engineer has read this book.

edit: I am a frontend tech lead (not even in SV!!) and my most junior engineer will answer the question correctly. I can't even fathom how one could contribute to a non-toy app without knowing this.

comment 12y ago · link · parent

http://thrift.apache.org/

comment 12y ago · link · parent

> so that the widget gets handed both its data and a function to call when it wants to change just its data

this is precisely how React works.

comment 12y ago · link · parent

wallets speak louder than words, and if your clients pay you more than once, they're telling you that you're giving them what they want. Notably, that means that you aren't lying, in their eyes.

2721.

Urbit: functional programming from scratch (2010)(moronlab.blogspot.com ↗)

1 points · by dustingetz · 12y ago · discuss

comment 12y ago · link · parent

A language IS its ecosystem. In 2013 java is a good platform.

comment 12y ago · link · parent

Immutable doesn't mean unchanging. It means no mutation. I can throw a ball in the air and model it as a function of time without mutation.

comment 12y ago · link · parent

looks like a nash equilibrium to me!

comment 13y ago · link · parent

I write scala in an IDE and I am not a beginner

comment 13y ago · link · parent

I do this quite aggressively about local companies but i know them and have mutual respect through meetups. Once you have a relationship you get lots of inside info that they would NEVER say to a stranger.

comment 13y ago · link · parent

Pretty sure no human is buying BTC at $1k, this spike has got to be HFT bots arbing across exchanges or making tiny trades, every human is thinking "cool im smart so ill buy when it crashes"

comment 13y ago · link · parent

> Both Google (on May 3, 2010)[3] and the CIA have invested in the company, through their investment arms, Google Ventures and In-Q-Tel, respectively.

In-Q-Tel = CIA; Google Ventures = Google

comment 13y ago · link · parent

Pro tip: these tests are filtering mechanism on only one candidate funnel. Go figure out a way to get in through another funnel. Impress someone at a meetup, send a targetted email. If you can't distinguish yourself from the masses, you are the masses.
1
909192
121