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

This is a very mind expanding book on FP in javascript that covers currying amongst other things. https://leanpub.com/javascript-allonge

Here's a famous post from HN's nostrademons that talks a bit about why people care about FP. https://news.ycombinator.com/item?id=185153

comment 13y ago · link · parent

I just coded this today, do you think this is a decent example? Uses monads to do logging around I/O that can fail, in such a way that your logs across multiple threads are guaranteed not to interleave. The code can be improved in many ways, this is a first pass "let's make this compile to prove it works".

https://gist.github.com/dustingetz/5606201

comment 13y ago · link · parent

i have 50k lines of Ext 3 and I agree with his comment, fwiw. We've completely abandoned it for a polymer-like approach. Ext 3 doesn't separate model and view. Ext 4 has better "model-view-whatever" separation but I never really studied it deeply.

comment 13y ago · link · parent

I see it more as a potentially native impl of MVVM which is currently done in the application layer. the speed optimization is important if we want to have UIs as complex as, say, an IDE in the browser, which is pretty clearly where we are headed this decade.

comment 13y ago · link · parent

knockout is not FRP. Knockout uses single events, FRP uses event streams. Here's a quote from Knockout's creator.

http://stackoverflow.com/questions/5101113/whats-the-differe...

comment 13y ago · link · parent

its because most instructions are unhelpful and a waste time to read, so we're conditioned to ignore them.

comment 13y ago · link · parent

there are some out of band issues. SMS, email, etc are "push" which means I can't stop people from sending me sensitive things unencrypted. Centralized platforms like facebook, while technically opt-in, are so deeply rooted in the younger generation's lives that opting out has unacceptable social consequences for many people.

2888.

John Carmack looking to do moderate sized project in haskell(twitter.com ↗)

3 points · by dustingetz · 13y ago · discuss

comment 13y ago · link · parent

agreed.

in a 3 person private conversation, a factual inaccuracy that is not central to the point isn't going to harm the participants. Online, the conversation is public. People who don't know what they're talking about should be politely called out before they stir up FUD or otherwise cause harm.

(i am a hackerschool alum)

comment 13y ago · link · parent

Wingspan needs experienced functional programmers (we use scala; clojure or haskell expertise would be similarly awesome) !! -Dustin at wingspan

comment 13y ago · link · parent

if someone i respect says something stupid, its probably not.

this is why signaling is so important.

comment 13y ago · link · parent

what's the idea behind no feature branches?

comment 13y ago · link · parent

does Dommy provide a pure API on top of the DOM? (e.g., lens based) I don't immediately understand how one would make that performant given that the DOM is a mutable data structure.

edit: WebFUI[1] is one clojurescript project trying to provide a pure interface for dom manipulation; there are others.

[1] https://github.com/drcode/webfui

comment 13y ago · link · parent

killer quote: "Ideas come from need; understanding of need comes from experience; and experience comes with age."

comment 13y ago · link · parent

scaling customer service is hard; customer service is a cost center at scale; leadership wants to reduce costs. DHH cites telecoms and airlines as examples; Telecoms enjoy natural monopolies, so competition and the free market can't fix it; airlines compete solely on price, so it would be silly to invest in good customer service.

comment 13y ago · link · parent

For apps that read a lot more than they write, there exist ACID databases in which reads don't have to touch network, while retaining consistent writes. Datomic is one; for those who have never studied datomic, the database storage is immutable in the same way that Git commits are immutable, which enables a lot of git-like things in your database, like queries without network. That way your apps can be fast without giving up ACID.

I don't know if anything like Datomic exists on mobile; and OP is talking about mobile apps not webapps; so OP may be kind of correct, at least today.

comment 13y ago · link · parent

i use backbone for a in-development app that is larger and has a more complex UI than the examples on the backbone site. (it's in early stages, but we think we've prototyped enough to know it's going to work nicely.) Most definitely "serious"; we're talking 10 engineers for a year type of size.

> Backbone requires you to write a lot of boilerplate code, which I think is totally unnecessary. This is in my opinion a direct threat against developer productivity.

a lot of people parrot this but i think they're missing the point. Backbone doesn't require you write boilerplate; it requires you to handle dom manipulation yourself. if you do dom manipulation wrong there's a lot of boilerplate; or you can use one of many libraries that make this very easy. backbone isn't meant to be the only dependency, it's meant to play well with other dependencies. So some of our Backbone.Views use knockoutjs (with knockback.js) for HTML rendering, and other Backbone.Views use KendoUI widgets instead of raw HTML. Nowhere are we doing raw dom manipulation and our view hierarchies are logical, not too deep, and rendering is quite clean. Notably we are not using Marionette; the "boilerplate" Marionette tries to reduce, for us, is actual decision points that are essential complexity.

Flexibility in rendering implementation is very important as we're working with a very talented external graphic design firm to provide a clickable HTML prototype. We really don't want to be in the business of rewriting their delivery to suit our framework's rendering choices.

comment 13y ago · link · parent

this is called http://en.wikipedia.org/wiki/Natural_monopoly and is well studied

comment 13y ago · link · parent

EDN is natively extensible to more types, for example, the dozens of types postgres supports[1] which actually makes EDN significantly more suitable for this use case. JSON can't encode the difference between a string, a date, a timestamp, and a uuid -- they're all encoded as strings and consuming code needs to go out of band to understand the type.

the stuff about EDN being natively supported by clojure is a red herring and irrelevant.

[1] http://www.postgresql.org/docs/8.4/static/datatype.html

comment 13y ago · link · parent

parent comment is out of date; git subtree is part of git since roughly git 1.8.

comment 13y ago · link · parent

the people you want to hire don't need to be told this

comment 13y ago · link · parent

Consider a service powering a right click context menu. REST's HATEOAS constraint is a generalization of this idea - decoupling the API from the client.

A lot of popular web APIs, e.g. Twitter, do not embrace HATEOAS, which is why API changes break clients. Which isn't really a big deal if you control all the clients.

comment 13y ago · link · parent

the point isn't how fast your CDN is, the point is how likely it is that the user already has the asset in browser cache.

comment 13y ago · link · parent

for `M-x ns-toggle-fullscreen` you need `brew install emacs --cocoa`

2905.

Datomisca: Embrace Datomic the Scala way(pellucidanalytics.github.com ↗)

3 points · by dustingetz · 13y ago · discuss

comment 13y ago · link · parent

https://en.wikipedia.org/wiki/Pascals_Wager

comment 13y ago · link · parent

Modeling side effects as transformations on data is what functional programmers do all day. I'm not talking about monads - simple things like inserting keys into a map and manipulating collections does not rely on side effects in functional languages.
1
969798
121