7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions
https://twitter.com/dustingetz
comment 13y ago · link · parent
A great example is the present state of browser development t. Google "backbone sucks site:news.ycombinator.com" and you find tons of comments from people who struggle with backbone - a supercomposable library, not a framework by design.
Composabilty pays off huge in the long, but you need experienced leadership to wield it.
There's also a happy medium in things like Play Framework, a functional scala framework but designed almost as a collection of composable libraries so you can lean on Plays opinions for most things but since it is designed to be composable (compare to "pluggable", or "extensible") so you can swap different pieces out if you like. That is my experience, at least.
comment 13y ago · link · parent
"... The facts the Storage Service returns never change, so Peers do extensive caching ... Once a Peer's working set is cached, there is little or no network traffic for reads ..." [1, paragraph 4]
this basically means that your reads are VERY fast -- in-memory fast -- which means you can program as if your data wasn't in a database.
[0] http://www.codinghorror.com/blog/2006/06/object-relational-m... [1] http://docs.datomic.com/architecture.html
ps video is only 14 minutes long, worth a watch
comment 13y ago · link · parent
don't think that's the underlying point at all. A functional Language gives the compiler more room to optimize - the compiler has more information because a functional language let's the programmer express constraints in ways imperative languages can't - the compiler fundamentally knows more and thus can generate better machine code. The productivity benefits of HLLs are secondary to this discussion.
comment 13y ago · link · parent
there is ongoing research into dom manipulaton in clojurescript - Conrad Barski presented one approach[1] at Conj 2012 where the dom is mirrored in clojurescript data structures, and then 'synced' with the dom - so that way the imperative ickyness is tucked away in the sync method - it remains to be seen if that can be made fast enough until we get a native persistent interface to the dom.
comment 13y ago · link · parent
maybe HTML6 will have native functional dom manipulation and we can rewrite all our favorite javascript libraries to expose functional interfaces. one can dream.
comment 13y ago · link · parent
comment 13y ago · link · parent
i'm not sure if you're freelancing an app as a sole developer, or if you're an early stage startup, or if you work on amazon.com store. and where your project is, in this spectrum, is incredibly relevant context when you're dissing a framework.
comment 13y ago · link · parent
here's python source to a monadic lisp interpreter, which i wrote to follow along the paper "monad transformers and modular interpreters" [1]. i think this is a much simpler implementation of python monads than provided in the ValuedLessons article. https://github.com/dustingetz/monadic-interpreter
Study of this implementation will teach you why nobody actually uses monads in python for non-toy projects. A literal port of this code to clojure would feel so much more idiomatic and not hacky at all.
here are some smaller code dumps demonstrating the fundamental concepts to that monadic lisp interpreter:
http://www.dustingetz.com/2012/10/02/reader-writer-state-mon... http://www.dustingetz.com/2012/10/07/monads-in-python-identi...
[1] http://haskell.cs.yale.edu/wp-content/uploads/2011/02/POPL96...
comment 13y ago · link · parent
here's an example: https://github.com/dustingetz/getz-bootstrap/blob/datomic/sr...
comment 13y ago · link · parent
legal documents reuse diction that has been ruled on and has court established precedent, which creates a bias towards diction which ended up in court in the first place.
i read that in a HN comment somewhere, sorry, no citation.
comment 14y ago · link · parent
comment 14y ago · link · parent
python's data structures are mutable, and mutable data structures necessarily expose a different interface than immutable data structures. using mutable datastructures in immutable style necessarily has severe performance penalties; and to do meaningful stuff you need to use a statement, and you can't put a statement in a python lambda. And Guido thinks lambda's are un-pythonic and a misfeature which he seems to regret [1].
python is a great sandbox for imperative programmers interested in FP, and these are great slides. it's awesome to play with these concepts in a familiar language - thats how i started - but its important to note that FP is just not pythonic, and thus it's probably a mistake to put functional-style python into production.
[1] http://news.ycombinator.com/item?id=3962316
if you are interested in functional python, i wrote about it a bit this year in my blog, because despite all this, python is a nice language for evangelism aimed at imperative developers.
[2] implement generators without yield http://www.dustingetz.com/2012/10/03/implement-python-genera...
[3] easy monads http://www.dustingetz.com/2012/10/07/monads-in-python-identi...
[4] hard monads http://www.dustingetz.com/2012/10/02/reader-writer-state-mon...
[5] peter norvig's Lispy refactored using monads https://github.com/dustingetz/monadic-interpreter
comment 14y ago · link · parent
http://www.dustingetz.com/2011/05/05/how-to-become-an-expert...
http://www.dustingetz.com/2012/10/07/java-sucks-because-idio...
comment 14y ago · link · parent
functional programmers get to express their ideas as code
imperative programmers are so busy playing whack-a-mole with their bugs that they don't have time to think about new ideas
just look at the research[1] coming out of the <del>Clojure</del> functional programming community - especially Datomic. once you learn how to get your defect rate under control, you have time to explore crazy awesome new ideas
[1] https://thestrangeloop.com/archive/2011
[1] https://thestrangeloop.com/archive/2012
editedcomment 14y ago · link · parent
[1] http://www.dustingetz.com/2012/09/24/StrangeLoop2012-monads-...
really i think it comes down to, for a lot of talks, slides aren't value-add to the audience, they're just a loose outline for the speaker
comment 14y ago · link · parent
http://www.dustingetz.com/2012/09/24/StrangeLoop2012-monads-...
comment 14y ago · link · parent
[1] http://www.sfgate.com/technology/businessinsider/article/Mar...
comment 14y ago · link · parent
whether google intends it or not, real people rely on google services for income, and losing this income can cause hardship.
comment 14y ago · link · parent