HNHacker News
TopNewBestAskShowJobs

tsewlliw

261 karma · joined November 22, 2010

submissionscomments
tsewlliw··on Ghost — rethinking WordPress
(100% totally non sarcastic here)

This is what I love about PHP devs. Imagine how much effort it was to write that. The author may not have have the chops to refactor that into something elegant, but he wanted it done and was perfectly willing to just do it the hard way and FUCKING SHIP IT, warts and all. Its easy to laugh at code after the fact, but you can't argue that a ton of people aren't finding the author's work valuable.

tsewlliw··on Ghost — rethinking WordPress
I'm relatively new to the WP scene, and already its totally clear that WordPress is tolerated because it has a vibrant ecosystem. Getting to keep that is way bigger factor in uptake over the next five years than anything a rewrite could deliver.
tsewlliw··on Why cheaper computers lead to higher tuition
Doubly interesting to me -- when I realized that programming pays well because automation puts people out of jobs, or perhaps forces them to learn new skills, I started moving from hard libertarian to embracing certain pieces of socialism.

I don't buy into the coming stagnation bit though, once automating those services is the best bang/buck, it WILL be done.

tsewlliw··on The software development final exam: Algorithms and Data Structures
I think you've accurately identified why you could have those gaps. Not that you do have them, but hourly billing enterprise software "scut work" doesn't require a whole lot of CS. I wonder if the stuff on the other side of those APIs did?
tsewlliw··on NIST Selects Winner of Secure Hash Algorithm (SHA-3) Competition
I imagine not, as those are not crypto hash functions, and thus have very different design goals.
tsewlliw··on Epic commit message
before you go to far into that rabbit hole, turn on whatever fancy blame view you like best. Its probably good enough.
tsewlliw··on Interview Zen, tool for asynchronous coding interviews
I'm scared to try it, but follow the idea here: http://blog.asmartbear.com/personal-checklist.html
tsewlliw··on Monads in Clojure
It IS really nice to see something on those mysterious monads not written in haskell. I got hung up early into the article though, where the author says something to the effect of "the monad hides the complexity", and that seemed like a silly goal. I need to make another pass at it.
tsewlliw··on Named Parameters in Java
This. I'd do my best to make sure the authors contributions stopped. Type safety obviously doesn't protect you the worst possibilities in software.
tsewlliw··on Vert.x – JVM Polyglot Alternative to Node.js
Every concurrent request gets its own thread, whereas this seems to be one thread per core.

Also, the servlet API is crazy, partly because of all its baggage. There seems to be a lot of exploration around what the right API is right now, but its pretty clear the world wants something new.

tsewlliw··on Day Against DRM
Like what meaningful solution? Pre-digital DRM was essentially the difficulty of copying, and that is no longer "difficult", and you can't undo that because DRM on media people care about will be broken.
tsewlliw··on Solving FizzBuzz with C++ compiler error messages
Food for thought: That means whether an arbitrary c++ program compiles reduces to the halting problem.

I would wager that for the vast majority of real situations you'd be better off writing that in the primary language and either bundling the precomputed result when you package your application or running it at runtime.

I'm sure there is a small class of trivial exceptions, but no non-trivial ones.

tsewlliw··on From Business Guy to Programmer
if the "noob" has money, domain expertise or connections to help make a new venture happen, that would probably help.
tsewlliw··on From Business Guy to Programmer
updated hn: about

is it confusing to anyone else which of those are public when looking at the edit form?

tsewlliw··on From Business Guy to Programmer
As a fairly experienced programmer, where are all these business guys who are so psyched about learning to code??? Any in AustinTX?

I would be seriously psyched to pair with a motivated total "noob" because I remember how exhilarating the first few years are, and how great it is to have your mind blown weekly or monthly by some subtle concept.

tsewlliw··on The Tyranny of the Diff
If by default you mean only available, yes :) Non-code review is really what is driving my delving into non-crlf delimited diff elements. Breaking prose into big enough chunks to diff well and still find small copies is my current target. Once it works for prose I might try to use it on code.

I've been itching to figure out how to combine perceptual hashing, computer vision like opensurf, and stable marriages to do something really interesting for image diffs, but until I can shed some less sexy responsiblities I don't think I'll get to play with that.

tsewlliw··on The Tyranny of the Diff
I work on a code review tool, and we've been shipping patience diff for a few years now, and it has really cut down on complaints about the resulting diff being incomprehensible, and on the one or two occasions people have complained its been really easy to point at the data explain why - and that has always been because there was a "missed opportunity to write better code" or a big pile of copy-pasta.

I know its sort of a silly argument to make, but LCS's algorithmic intiution leaves me cold.

tsewlliw··on The Tyranny of the Diff
IMHO the limiting factor can be described as "semantic density". If you look at non-LCS diff algorithms like patience diff [1] and think about where it falls down, its on cases where its very arguable that the code is poor - too much duplication therefore low semantic density. I think (and am attempting to further this at work for non-code) that the effective key is to do something like patience diff on characters but looking at the context of the individual characters when determining whether they are unique.

The benefit here is that you don't need to know about the parse tree, don't depend on special characters to delimit elements (newlines), and don't get LCS type diffs that aren't based on any sort of semantic intuition beyond that the minimal change is probably what was meant.

[1] http://bramcohen.livejournal.com/73318.html

tsewlliw··on Economist on Linux Desktop: Free is too expensive
Static linking is your friend. I happily run Perforce 2002.1 clients meant for Linux 2.4 on x86 on my Kernel 3.2 amd64 machine when testing back-compat. I'd say ten years is pretty stable - just don't do random crap in your app :)
tsewlliw··on A Better Strategy for Hangman
I won't call out the company because at least until now they were still using the question (I got accidentally cc'ed on a subsequent candidates email), but last summer I got an interview homework question from a "who is hiring" post that was to solve hangman for a given dictionary. I implemented all of the strategies outlined here, and while they seemed impressed with the execution speed of my solution, they implied it could have scored better, saying it was only "average" in that regard.

The thing is, at least for the dictionaries I had available, trying to weight for information gain only considering the guess correctness wasn't all that great a strategy. Even if you know 100% certain that the letter will be correct, its very likely to still cut the search space down by virtue of the pattern of letters, and in aggregate my strategy made no statistical difference. (+/- 1% depending on random seed).

If I were going to try and improve my scores, I guess the next thing would be look at the distribution of letter-patterns for each remaining letter, but my intuition is that it just wouldn't be a big deal.

tsewlliw··on Design of Servo - Mozilla's next-generation rendering engine
Wow, how timely, was just discussing how big a difference disconnecting a Dom node before changing its contents was leading to a radical performance boost especially in IE7. The RCU technique makes me want an excuse to use it.
tsewlliw··on GWT alternatives??
GWT has two big disadvantages. Opaque results and slow builds. If your image situation is so dire that the inclining and spriting are more important than those... well it just doesn't sound like fun.
tsewlliw··on Coding Horror: The End of Pagination
I can't agree more about code folding. The shape of the code lets me use visual patterns instead of actually thinking about the parse tree
tsewlliw··on Your identity ≠ Your code
Right, when I got my current gig, I took a HUGE ego hit because I went from just committing stuff to getting absolutely everything code reviewed, and that means bugs in my code were pointed out before I'd had a month to think everything I'd done earlier was crap :) You definitely need to be more to yourself to weather harsh lessons.
tsewlliw··on Your identity ≠ Your code
On the other hand, your code is definitely a part of your identity, and projects that are awesome got that way because people poured themselves into their work. For me, only the pieces I'm passionate about become part of my identity.
tsewlliw··on Why we need Python in the Browser
I'm constantly on code reviews for and occasionally writing GWT code, and the gymnastics and ceremony it requires on top of the slow compilation are painful enough, and the resulting JavaScript/html unpredictable enough, that I would refuse to work on any new project that used it.

It's just a tool that makes your existing HTML/CSS/js knowledge useless, a crutch for java blubs.

tsewlliw··on Nobody Wants to Learn How to Program
Check out the Russ Cox articles on how google code search worked http://swtch.com/~rsc/regexp/
tsewlliw··on Dynamic Code Encryption as an Anti Dump and Anti Reverse Engineering measure
For my time spent, I'd rather improve debugability over most any other aspect of quality in software.

I dream of never needing to get something reproduced because when something goes wrong there is a real useful data and execution trace, no matter whether the bug manifested as a crash or incorrect behavior. IMO the compilation/execution strategy of chicken scheme is a big step towards enabling this.

tsewlliw··on Mercurial vs Git: Why Mercurial?
Fwiw, fossil is engineered from the ground up to have an enduring disk representation if that's the top of your list.
tsewlliw··on Ask HN: What would you work on, if money was of no concern?
Why does there need to be an end?
← PreviousPage 3 of 5Next →