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

"JQuery has a lot of the same stuff now via 3rd party libraries, but often I've seen the production schedules of those various 3rd parties lead to cases where you need a newer version of one but can't upgrade because it would interfere with another."

this is long solved.. i read your post twice and if you take this statement away, your argument for YUI seems to unravel. The statement also seems to demonstrate you think it's YUI vs jquery which is not an interesting comparison.

I'm interested in a pro-YUI argument when compared to Backbone, Knockout, Ember, Angular, ExtJS, etc, in the context of "enterprise intranet" apps. In my particular case we need to be able to work with arbitrary markup and widget toolkits such that our design team has minimal constraints due to stack choices, but I'm also interested in the case where the design team is able to be constrained, if that makes the argument easier.

comment 13y ago · link · parent

So it's anonymous like bitcoin is anonymous - which is to say that keeping your identity a secret over the long term takes great effort. Do I understand correctly?

comment 13y ago · link · parent

comment is likely at the top because user has high average karma, not due to upvotes, so in this case the problem is likely in software

comment 13y ago · link · parent

clojure and scala aren't really in competition, in the same way python and java aren't.

comment 13y ago · link · parent

+1, would be awesome if you made this happen, please post the log to r/haskell

comment 13y ago · link · parent

"faithfully replicate the mistakes of php/mysql worst practices as interpreted by rails"

can you recommend any reading that spells out these worst practices?

comment 13y ago · link · parent

It's because one has a decision to drink, smoke, or buy a pool. One doesn't get to choose if they will be shot.

comment 13y ago · link · parent

Or, reader is harder to build than they thought.

comment 13y ago · link · parent

weird for our generation, but our kids will grow up with glass.

comment 13y ago · link · parent

you can also rewrite `half . half $ 8` as `half <=< half $ 8` in the identity monad. So if you aren't sure what monad you need, you can write the code against the identity monad and then change the monad later when you need to add logging.

An example where this shines is writing interpreters. You can write a "calculator" interpreter in identity monad, then add an environment (functions and lexical scope), then add errors, then make the environment mutable, then add continuations and try/catch. The core eval loop does not change as you implement new keywords like 'def' or 'throw'. In an imperative interpreter, each feature is coupled with the interpreter core.

I've done this in python but writing pure code in python is so crappy that it's not even worth sharing. Here is a short blog post though with code samples:

http://www.dustingetz.com/2012/10/02/reader-writer-state-mon...

comment 13y ago · link · parent

i worked Lockheed Martin R&D for a couple years and slides like this are par. they are written by the principal investigator for an audience who doesn't give a shit about glitz and glam. these aren't marketing slides.

comment 13y ago · link · parent

so these are actually useful; below i link a fleshed out logger monad in a scala webapp. I wrote it because at work (enterprise webapps) we want to be able to send the logs created over the duration of a request down to the client for diagnostics. Singleton loggers (mutable globals) interleave the logs in a threaded context, and worse in async or high availability contexts, and are basically a giant pain in the ass to extract useful data from.

the actual monadic types are:

    type MyLogger[+A] = WriterT[scalaz.Id.Id, List[String], A]
    type IOLogger[V] = EitherT[MyLogger, Throwable, V]
which represents either an exception or a value, alongside the logs that led up to it.

https://github.com/dustingetz/monadic-logging-play/blob/mast...

Forgive me if this code is ugly, this is my first foray into scalaz. The repo contains a complete minimum play app and will run. Also we're hiring in philadelphia.

comment 13y ago · link · parent

it seems they would have to specially target you though, basic encryption can evade the passive dragnets. Which is most of the problem - we don't want our free speech of 2013 coming back to haunt us in 2023.

comment 13y ago · link · parent

Furthermore it seems apple fb google etc leapt at the chance to loudly deny using white listed talking points, knowing full well that the story was unfolding. They want the public to know they are gagged.

comment 13y ago · link · parent

if i want to buy 1000 bitcoins at $121.46 to hang on to for a while, and while i'm buying the price goes up to $121.50 because a HFT is trying to frontrun my purchases, i'm not going to stop buying, its still worth it to me at the higher price. those few pennies, in aggregate across billions of trades, can add up.

comment 13y ago · link · parent

some of the best engineers i know don't read HN and they definitely make more money than me. They did read a lot of newsgroups in their twenties.

comment 13y ago · link · parent

hi jesse, Functional programming provides another way. This is rough POC code thrown together and can be made a bit more intuitive.

https://github.com/dustingetz/monadic-logging-play

comment 13y ago · link · parent

i totally understand and respect your position and that's definitely a strategy that can work.

The other end of the spectrum is, you could contract someone like Tony Morris[1] at $250 an hour for 20 hours a week, and he will build your product faster than a team of untrained engineers, or more likely, build a product that untrained engineers aren't capable of building, with a defect rate close to zero.

Not every strategy is right for every business, but generally, the harder the technical challenges, the more cost effective it is to pay for a superstar.

[1] http://tmorris.net/posts.html

comment 13y ago · link · parent

that first sentance is an amazing way to frame salary negotiation, thank you!

comment 13y ago · link · parent

one point al3x didn't talk to: not all startups will teach you to be an awesome engineer. If a startup is really hiring the best of best, a less experienced programmer is not likely to make the cut. Ever look at your code from 6 months, a year, 5 years ago? and how bad it is? Many tech startups don't have time for that, the quality of your work can make or break a startup. Elite startups want "ex-googlers".

So if you want to get good, you need to work with people that are better than you, who have already learned from their mistakes so you don't have to. Find the strongest shop that will hire you. It will not be the best shop. It probably won't be an elite startup. But more mature companies can afford to pay for your learning curve. You also will probably make more money, enough to pay off your student debt and save up to bootstrap when you're more experienced.

comment 13y ago · link · parent

understand temporary solutions and the priorities that necessitate them, but don't accept a decision that you feel is wrong without raising the issue and getting a better understanding. This is your company (your garden) and if you let people pull in the wrong direction the entire plan will fall into disarray.

i'm interested in hearing experiences about what happens when you actually achieve this level of control. I love my garden so much, and have been given sufficient responsibility over it, that I care very much when people pull in the wrong direction. Refusing to accept incorrect decisions -- decisions that will absolutely cause technical debt, overtime, and significant stress and a smaller bonus for us all later in the product lifecycle -- can lead to some interesting and complex social dynamic and this is the biggest thing I struggle with today. Its actually even more complicated because while I feel I am usually correct (who doesn't), there are times when I'm wrong and there are other times where I don't realize I'm wrong.

comment 13y ago · link · parent

in other words, FP evolved to solve hard problems. You don't need to understand monads to model a cash register. You probably do need monads if you want to write a bug free distributed asynchronous system.

comment 13y ago · link · parent

you need to learn calculus if you want to model relativity. you only need fifth grade math to model a cash register.

if your team builds apps with 500k LOC, you need to be constantly focused on abstracting and factoring out patterns or you will drown in your defect rate before the project even ships. If your team builds medical device software, if you aren't doing this, you'll get someone killed.

If you're building a personal blog, your time is better spent by pasting jquery snippets.

There is a spectrum here and most projects fall somewhere in between.

comment 13y ago · link · parent

i do believe i have answers to all those questions; its really something that i need to write an essay about, a short blog post or HN comment can't do it justice. If enough people upvote this or ask me on twitter, maybe I will write something up this week.

comment 13y ago · link · parent

dear bloggers and commenters, you really need to qualify "large". "Large" probably means something between 10k LOC and 1M LOC and the approach to coding at either end if this spectrum is vastly different.

For example, I'm at the 50k mark on the frontend and I found angular's basic building blocks to be too restrictive in terms of organizing things into reusable components. I had to answer questions like "can views do I/O", "does a view own his model", "how deeply should views nest", "should my models be tree-like or rectangular", "can my contracted designer write arbitrary markup with arbitrary UI widgets or does the framework not like that". Angular's way of doing controllers with dependency injection got in my way of answering these questions. I would love to read someone's opinions on this, especially if I'm wrong, but nobody (including me) has time to write a well thought out essay on this.

1
959697
121