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

i'm sure the suit is ridiculous and all, but why exactly does the Scrolls team think that defending this suit is in their business interests?

comment 15y ago · link · parent

i know you're trolling, but, i do speculate that java makes it difficult to write tight code.

[1] http://www.dustingetz.com/java-sucks-because-it-makes-functi... [2] http://www.dustingetz.com/java-sucks-2-the-java-api-is-state...

comment 15y ago · link · parent

    > Java apps still feel like crap
fud, shit code feels slow in any language

comment 15y ago · link · parent

without straining my brain, to me its reasonable to measure complexity by number of interacting components, which is a combination, which is geometric, which is a discrete exponential, right?

comment 15y ago · link · parent

> However, I still haven’t found any studies which show what this relationship is like. Does the number of bugs grow linearly with code size? Sub-linearly? Super-linearly? My gut feeling still says “sub-linear”.

interesting, my gut says exponential, which is why cost and likelihood of project cancellation shoot up in the largest projects.

edit: i have been corrected below, i concur with quadratic.

comment 15y ago · link · parent

sure, i agree. i just think things like weak names, hungarian notation, brace preferences and lispy one-liners have no objective impact on the complexity of a system.

comment 15y ago · link · parent

quoting Linus: "There really are only two acceptable models of development: 'think and analyze' or 'years and years of testing on thousands of machines'"[1]

i would never say that "we don't need no stinking QA", but i do believe that teams who live by "think and analyse" need QA a lot less than teams who don't.

[1] http://www.dustingetz.com/linus-think-and-analyze-motherfuck...

3218.

Schneier: An Interesting Software Liability Proposal(schneier.com ↗)

3 points · by dustingetz · 15y ago · discuss

comment 15y ago · link · parent

i sorta think this is dumb. these are all true, but superficial. this piece doesn't touch on any real, deeper reasons that well-intentioned code is unmaintainable, like excessive and unnecessary state & implementation inheritance.

comment 15y ago · link · parent

Fair, but from houses perspective they just don't care what happens above 1/2nlrake wise, high stakes is just marketing. I speculate. Kinda like how trump males his money from penny slots. Sent from mobile

comment 15y ago · link · parent

House revenue and rake, not player winrates.

Edit as an ex midstakes amateur, frankly I speculate rush is unbeaatable after rake bc the nash equilibrium style is ez and widely known, good players have no edge, bot wet dream. Sent from mobile

comment 15y ago · link · parent

if your average player is 1-tabling, he's getting (maybe) 80 hands/hour. that same player at a rush table is getting 250 hands per hour. rush poker probably tripled their revenue. who knows how many times it multiplies their profits.

comment 15y ago · link · parent

MS Detours[1] makes this easy in win32 processes. Stuff like this is useful for reverse engineers when prototyping hacks, security research, hooking kernel-level calls for e.g. packet filtering or AV, etc. Note that your run-of-the-mill antivirus will detect this, hacking processes in production is much harder.

Here's an article describing how to do it by hand the naive way, they use minesweeper as the target: [2]

[1] http://research.microsoft.com/en-us/projects/detours/ [2] http://uninformed.org/?v=1&a=7

comment 15y ago · link · parent

for something so obvious, it took me months of study to distil it this to it's essence.

3225.

Composable programs scale linearly: is FP the silver bullet?(plus.google.com ↗)

2 points · by dustingetz · 15y ago · 2 comments

comment 15y ago · link · parent

after blogging this, i found a few example ORM systems which may be interesting to study. I still don't know the answers, but O/R Broker[2] seems the tightest one and it isn't even really an ORM[3].

[1] http://stackoverflow.com/questions/1362748/wanted-good-examp... [2] http://code.google.com/p/orbroker/ [3] http://code.google.com/p/orbroker/wiki/JoinExample

3227.

I'm not sure if ORMs are an anti-pattern(dustingetz.com ↗)

43 points · by dustingetz · 15y ago · 12 comments

comment 15y ago · link · parent

He asks for a simpler example. How about a collections api? Start with array, then linked lists, then functioms like contains and filter and which need an iterable interface, then different types of linked list, then add hashmap where you iterate keys, then different types of map e.g. linked map. This is all data structures 101 material anyway! After this primer, a simple GUI toolkit isn't as far out of reach.

comment 15y ago · link · parent

+1. I fat thumbed you and downvoted, so sorry!

comment 15y ago · link · parent

i think the root problem here is out-of-band -- expertly written OO models are fine. the problem is that i've never encountered an expertly written OO system, which is probably because OO allows you to get lazy, where functional patterns require thought and understanding. i'm gradually starting to suspect that an expertly written OO system actually kinda looks like a functional system, except with practical compromises with respect to functional purity.

comment 15y ago · link · parent

one of the cardinal rules of OO is: "each unit (method, object, whatever) should do exactly one thing"[3]. this rule is universally ignored in all the big OO codebases I've seen[1]. applying this rule with discipline, forces you to have a better understanding of what your code is actually doing. I think, that applying this rule even in OO languages forces you towards "functional-style in the small, object-oriented in the large", and the only difference is your code will have fewer classes/methods, and more high-level data-structures with operations like list.filter on them.

[1] i get it, refactoring takes discipline and time, and desire to practice and learn[2], and a team of like minded people, on top of sensible business constraints. [2] http://www.dustingetz.com/nostrademons-75h-work-week-harmful... [3] http://en.wikipedia.org/wiki/Single_responsibility_principle

edit: added source for single-responsibility principle

comment 15y ago · link · parent

i speculate the edge compounds as, say, a competitors java codebase's complexity increases faster than a lisp codebase. exponentiate this over time and the edge is obvious.

comment 15y ago · link · parent

sorry, should have been more careful with my tone. i only meant that improving UTF-8 is interesting CS research but not terribly useful in real life.

comment 15y ago · link · parent

"I don't think type theory has a whole lot to do with programming or software engineering. The most practical languages ... do not have sound type systems"

well i mean most software isn't understood, using Linus's metaphor, most software works due to "years and years of testing on thousands of machines", not due to "thinking and analyzing"[1]. and, i think, teams that are capable of "think and analyse" can out-compete teams that don't.[2]

[1] http://www.dustingetz.com/linus-think-and-analyze-motherfuck... [2] http://www.dustingetz.com/re-seth-godin-how-do-you-know-when...

comment 15y ago · link · parent

thank you for posting this, fascinating perspective

comment 15y ago · link · parent

"OOP ... contains a simple metaphor and simple device for turning totally bad code into slightly less bad code, for allowing completely unrelated stuff to relate together in a half-assed way."

haha, nice. i don't think it's quite that cynical, hybrid OOP/FP languages like Scala seem to have a better industry record than pure functional languages, at least for the internet companies we hear all about.

OO isn't inherently bad, and FP isn't inherently good, but knowing how to think in FP will certainly make us better engineers, and the "functional in the small, object-oriented in the large" seems to be gaining acceptance in elite circles.

comment 15y ago · link · parent

You know, I've learned something today!

When some people talk about functional programming, they talk about monads and iterating with recursion and lambda calculus.

Other people talking about functional programming mean using data-oriented abstractions, where functions operate on data in well-defined ways, to avoid state and interlocked dependencies[3]. I've been calling the latter a "functional style", but clearly there is ambiguity and people get turned off and say things like "we're using an OO language why would i want FP"

in Avdi Grimm's talk "Confident Code"[2] he calls this style "narrative structure", compared to "haphazard structure"[4]. I like that; "functional" envokes all sorts of emotion about being hard to understand and unnecessary. "Narrative" or "confident" or "data-oriented" are more articulate, and don't evoke flame wars.

Avdi's example (code screenshot) is the most articulate example of this I've yet seen. https://lh4.googleusercontent.com/-Cs-muD17ato/Tk6b1Rb9MwI/A...

And it's in ruby. Nothing hard here, but it meets a functional style per John D Cook's definition[1]: "OO makes code understandable by encapsulating moving parts. FP makes code understandable by minimizing moving parts." "functional in the small and OO in the large" seems a good path. The Scala community seems to get this, and seems to me Scala is mainstreaming much quicker than any of the pure functional languages.

[1] http://www.johndcook.com/blog/2010/11/03/object-oriented-vs-... [2] http://avdi.org/talks/confident-code-2010-01-12/confident-co... [3] http://www.dustingetz.com/how-to-become-an-expert-swegr [4] http://www.dustingetz.com/confident-code-vs-timid-code

comment 15y ago · link · parent

Care to elaborate?

comment 15y ago · link · parent

what would the web look like if we didn't care about backwards compat? ...who cares?
1
107108109
121