7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions
https://twitter.com/dustingetz
comment 13y ago · link · parent
If your app is simple CRUD on 10 tables, anorm is great. But even for CRUD on complex types (nested objects, objects with collections of objects, objects with values that aren't primitives e.g. dictionary types where possible values aren't known until runtime...) those queries will be crazy complex and repetitive in raw SQL and you will quickly see you need an orm (or move off sql to some other acid alternative like datomic). Anorm would be an ideal layer to write your own ORM in though.
comment 13y ago · link · parent
comment 13y ago · link · parent
EAVT/Datomic is a better fit for apps with complex structured data than an ORM over SQL, but migrating there is no trivial feat. Nor is convincing my customers in their due diligence phase, as they have surely been burned before by some kid pushing MongoDB, but they understand SQL and know the product can be successful with SQL, they know they can go get Oracle consultants to save their ass in 10 years when my company is sold, etc.
comment 13y ago · link · parent
comment 13y ago · link · parent
* no coding style flamewars
* it has familiar syntax
* builtin concurrency model
* it has gc
* it is fast
* static types that don't get in the way
If you compare this list to popular up-and-coming ecosystems from the 90s (java, python, C, C++, Ruby), okay, concurrency is a big win and everything else, maybe go is a little bit better.If you compare to other popular up-and-coming ecosystems in 2013 that have a similar sized following as Go (Scala, Clojure, Haskell, Node, Rust)...
Well, at least Go beats Node. and Haskell appeared in 1990.
2827.
High school programming taught in Haskell in Argentina(sawafaso.blogspot.com.ar ↗)
110 points · by dustingetz · 13y ago · 47 comments
comment 13y ago · link · parent
The main issue is that to do anything complicated in angular you need to start writing tricky[1] "link" functions; the React approach completely sidesteps this complexity. There are some tradeoffs you have to accept, like JSX, but they are easily worth it.
[1] tricky is of course relative; angular is easier to code than something like backbone+jquery or backbone+knockout.
comment 13y ago · link · parent
comment 13y ago · link · parent
Ractive's approach appears to be much more suitable for use cases like a journalist interested in only learning barely enough javascript to get by.
comment 13y ago · link · parent
So you don't actually do DOM mutation yourself, nor do you "update" the DOM in response to events on models that changed. You think in terms of "pseudodom", not actual DOM, so if any state changes or an event fires you can just redraw all the pseudodom instead of worrying about finding the right place in the dom that you need to update.
[1] http://facebook.github.io/react/docs/interactivity-and-dynam...
Sorry, I don't mean to derail your thread.
comment 13y ago · link · parent
http://facebook.github.io/react/
edit: upon closer study, Ractive seems to be more similar to React than I first thought.
comment 13y ago · link · parent
most 'objects' as they exist in today's OOP have methods, which makes them both nouns and verbs. Idiomatic code in most of today's mainstream OO languages doesn't make heavy use of closures, mostly only Javascript.
Anyway, the closures vs methods debate has been going on for decades is not a closed topic[1], and the answer certainly depends on the language you're using.
[1] http://www.c2.com/cgi/wiki?ClosuresAndObjectsAreEquivalent
comment 13y ago · link · parent
edit: here's what i purchased:
[1] CanaKit Raspberry Pi (512 MB) Complete Starter Kit (Raspberry Pi 512 MB + Black Case + Micro USB Power Supply + Original Preloaded SD Card + HDMI Cable)
[2] Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
[3] SanDisk Cruzer Fit CZ33 32GB USB Flash Drive (SDCZ33-032G-B35)
[4] Preloaded SD Card for Raspberry Pi (16GB, Raspbian "wheezy")
[1] http://www.amazon.com/gp/product/B00DLUXD64/ref=oh_details_o... [2] http://www.amazon.com/gp/product/B003MTTJOY/ref=oh_details_o... [3] http://www.amazon.com/gp/product/B00812F7O8/ref=oh_details_o... [4] http://www.amazon.com/gp/product/B00AYH22VY/ref=oh_details_o...
comment 13y ago · link · parent
It was your decision to hire him, and it was your mistake that you are remedying by firing him. Incompetence is subjective. If your interview process makes it clear that your employees must live in constant fear of termination if they aren't ramping up fast enough for you, on your product with your technical debt and your team's shitty architecture choices ("fire fast" and "with little notice", you wrote), you'll find that your candidate pool vanishes.
comment 13y ago · link · parent
Instarepl is an awesome idea.
If someone were to implement an insta-repl as an IntelliJ plugin, or an emacs plugin, what remaining advantages would LT have? Is there something about the architecture of existing IDEs that is incompatible with an insta-repl?
Say I'm writing a medium size webapp, like, say, Gmail, in clojure + clojurescript. I don't understand how integrating my app into LT is going to 10x my productivity, outside of instarepl. Or being able to on-the-fly extend my IDE. Emacs can do that, and its not exactly a feature i can't live without.
It just seems like all the things you're talking about on the list, like [commands, settings, threading models, plugins, UX] are previously solved problems.
comment 13y ago · link · parent
[1] http://users-cs.au.dk/danvy/sfp12/papers/byrd-holk-friedman-... [2] http://www.infoq.com/presentations/miniKanren [3] https://github.com/webyrd/quines
The talk is amazing and hilarious.
On point, if the code is not generated in this fashion, there is assuredly a "work smart not hard" trick that drastically simplifies the problem.
comment 13y ago · link · parent
It's nice to be able to leverage other people's opinions and established idioms without having to figure them out yourself.
comment 13y ago · link · parent
I would use a product that lets gay people talk to other gay people without leaking information. No other product can protect free speech, and if nightweb can't protect free speech, then what's the point?