HNHacker News
TopNewBestAskShowJobs

subwindow

930 karma · joined March 28, 2008

https://github.com/erik-megarad
submissionscomments
subwindow··on Why I won't be at my high school reunion
I joined the wrestling team my freshman year of high school, and it did wonders. All of your practice is against real people, so when you try to do a particular move, you really know how to perform it.

The best part of it is that it is generally non-violent. The last real fight I had was the month before I started wrestling. Every other "fight" after that consisted of them throwing a punch and then me getting them into a headlock until they cooled off and backed down. No bloody noses.

I'd consider it perfect for anyone seeking real, effective methods of self defense- especially in school, where even if you fight back and end up breaking a nose you can be punished.

subwindow··on Common Solecisms - Words you are almost certainly using incorrectly
I freaking hate prescriptive linguistics. The people who love to prescribe are so often prescribing incorrectly. I couldn't get past the first one in this article:

> Acronym: this is a word, like radar or NATO, not a set of initials, like the BBC or the IMF.

Wikipedia:

> In 1943, Bell Laboratories coined the term acronym as the name for a word (such as SONAR) created from the first letters of each word in a series of words (such as SOund Navigation And Ranging). The terms initialism and alphabetism are neither widely used nor widely known. The term acronym is widely used to describe any abbreviation formed from initial letters.

First off, the word was created by a corporation; secondly, the term is widely used and understood to apply to words like "BBC" ("Three Letter Acronym"); thirdly, the "correct" alternative is not widely used or understood. So if you use the correct terms your communication would actually be less clear, which is, as I understand, the point of studying grammar/linguistics in the first place.

For more on this exciting subject, see David Foster Wallace's excellent "Democracy, English, and the Wars over Usage":

http://instruct.westvalley.edu/lafave/DFW_present_tense.html

subwindow··on A missing feature in most dynamic languages: take a random key from an hash table.
I'm perfectly aware of that, and if you read my comment you'll see that I acknowledge that fact. However, I also said:

> they're obviously keeping track of the keys internally in an array to support the ordered hashes.

Which means that they can return them in an O(1) operation, but they choose not to for some reason.

Edit: I'm wrong- I just remembered why they can't return them, and it is because they're not storing the keys in an array. D'oh. They're using a doubly-linked list. So to return a list of keys you'd need to walk the linked list- an O(n) operation.

See: http://www.igvita.com/2009/02/04/ruby-19-internals-ordered-h... for more info.

subwindow··on A missing feature in most dynamic languages: take a random key from an hash table.
In Ruby (w/ activesupport):

  myhash[myhash.keys.rand]
Is an O(n) operation, for no apparent reason. At least in 1.9, they're obviously keeping track of the keys internally in an array to support the ordered hashes. However, when you do Hash.keys, it does a foreach on the hash and creates a brand new array.

I'm still not sure why getting a random key is particularly useful, but the real problem is that getting the keys of a hash should be an O(1) operation, instead of an O(n) one.

subwindow··on Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?
http://www.rttsweb.com/research/studies/study_functionalTest...

"...automated test suite saved the client 117 days of manual effort per testing cycle."

Sure, it takes more time to construct any given feature with unit tests versus a completely untested solution. However, any time you need to change the code, add a feature, or change something it interacts with, you are saving an incredible amount of time both in testing and the prevention of bugs discovered in production.

I really don't understand how, in the long run, automated testing can't save you time. If you don't think so, you obviously haven't maintained any software.

subwindow··on Poll: What proportion of start-ups/non-start-ups use automated unit tests/TDD?
> if I could only find the time

The asinine thing about this is that unit testing saves a massive amount of time in the long run. In the short run, even, it saves time.

You're really shooting yourself in the foot.

subwindow··on Ask YC: Meditation Advice
Try progressive muscle relaxation. That works better for me than meditation because I'm doing something to keep my mind from wandering.

After you get used to it, you can do it by yourself, but starting out I find it better to do it along with a recording. I have rhapsody, so I use the tracks on this album. Both of them are good, but I think the progressive one is better.

http://www.rhapsody.com/phd-edward-a-charlesworth/relaxation...

If you don't have rhapsody, you can listen to them with the trial, or maybe try to get them from iTunes or Amazon or something.

subwindow··on Starting this summer, YC will be in California year-round
> Plus it seemed like the thermometer was pinned at 72 degrees every day.

You say that like it's a bad thing.

subwindow··on Amnesia
A friend of mine is CTO at clockspot.net

I have no idea whether they're good or not, but they're profitable and he's a nice guy. Worth a try!

subwindow··on Titanium: An AIR like Open Source app
I really don't see how Appcelerator can provide a better IDE (and charge for it), seeing as how it is all written in Javascript.

I can't think of any tools, short of some kind of WYSIWYG tool, which I don't think they have the resources to create.

They already tried consulting, using their product with all of their clients. That has failed.

I think they're banking on support, but haven't all successful support-backed open source companies started out as projects first, and THEN were turned into companies? Is it feasible to put the cart before the horse when trying to make money from an open source framework? (Adobe, Microsoft, et al can do this because they have massive amounts of money- far more than 4.1M)

I'm not trying to bash them or be antagonistic- I honestly want to know how something like this can make money.

subwindow··on Titanium: An AIR like Open Source app
God knows how they're going to make a business out of this. They raised 4.1M, so there's definitely an expectation of revenue.

Adobe has more resources and a significant head start. My money is on AIR.

(Full disclosure: I'm biased- Appcelerator recently laid off 3 of my good friends)

subwindow··on Do you debug your website? A small unimportant bug can have huge consequences.
It doesn't:

http://api.rubyonrails.org/classes/ActionController/Caching/...

Removing them with a cron task is usually the worst way to solve this problem. Using the expire_page method is the correct solution when the updates are being done as a result of a user's action (updating/deleting/creating a record). The problem here was that they weren't being done by a user, but automatically by the system.

subwindow··on Indie band turns itself into company instead of signing record deal
There were some parts that were difficult, mostly finding vendors. It wasn't exactly easy to figure out who offered the best/cheapest shirts/stickers/cd pressing.

Other than that, if you hire an experienced PR person and booking agent, it is pretty much the same as a record label.

subwindow··on Indie band turns itself into company instead of signing record deal
Don't worry, the lead guitarist didn't get it either.
subwindow··on Indie band turns itself into company instead of signing record deal
I've quite literally done that before. It worked out OK, but there was never enough capital to market the band properly and we ended up with about 800 CDs that still sit in my friend's closet.

The good part about it is that each member gets an equity stake, and people who are not performers, but also help out the band (guy at merch table, managers, website guy, recording engineer, etc) can get equity stakes as well. That way, everyone is invested in making the best product possible, and sees a tangible return when things start selling.

The bad part was that it was hard to explain retained capital to a drummer. As soon as the band started to turn a profit, people wanted their money out of it. It was impossible to convince them that the money would be better spent marketing the band so that they could sell even more albums/t-shirts.

subwindow··on Mr. Benioff, Tear Down That Wall
That's really interesting- I, too, had flagged Salesforce as an 'open' company. Their API is comparatively good, and the AppExchange is virtually unparalleled in terms of openness to third parties.

I wonder if this is something specific to Zoho, or if they're taking an anticompetitive stance in general.

subwindow··on Walt Mossberg - Google’s G1: First Impressions
Wake me when I can use Exchange or IMAP to connect to arbitrary mail providers without having to pipe everything through Gmail.
subwindow··on There's no shame in looking good
> like a lady dressed in a black dress

..with bright yellow recesses and red knobs all over the place.

The Thinkpad looks like a sexy lady in a black dress, but one who took meth for 10 years and is now sickly and diseased.

subwindow··on Posterous is Not in beta
I agree. I think beta should mean "Not all functionality is complete" as opposed to "Not all functionality is working". There is no excuse to release buggy software. None.
subwindow··on Stop Teaching Handwriting
I think the perils in this come in teachers forcing every kid to write perfectly, regardless of any impairments they might have. I have dyslexic dysgraphia, which literally prevents me from writing neatly. It sounds like this guy's kid has something similar. Teachers who teach handwriting should be trained to diagnose something like this and help the kids along not by telling the kids that their penmanship is awful, but by teaching them new grips or ways to get around their lack of fine motor control.
subwindow··on Cappuccino’s FlickrDemo in 45 lines of jQuery
The Cappucino version appears to be about 400 lines of Javascript. So the jQuery one is 1/8th the size.

Although I doubt the Cappucino version was written with line count in mind.

subwindow··on Start Up Life Lesson #9: You Will Get Fat
Gym machines don't exercise your stabilization muscles, and they only work one muscle at a time.

When you do pushups (if you do them right), you exercise your triceps, shoulders, biceps, back muscles, and your pectorals all in one go.

Calisthenics are amazing and completely underutilized in today's gym-heavy environment. Did you notice that the military doesn't use gym equipment at all? Ever wonder why?

subwindow··on Why we bill by the hour
I'm not sure it is. When someone asks for a large, but reasonable rate, like $75 or $100 an hour, you generally know that they're good at what they do, and that they're worth the cost.

There's kind of a sweet spot in there- less than $35 an hour, you know they're amateur and you feel like you're getting substandard service. Much more than $100 an hour and you know you're getting fleeced.

subwindow··on Why we bill by the hour
The house painting analogy fails because in software development, you only have a vague idea of how big the "house" is.

No painter would give an estimate for painting a house, sight unseen, with only vague descriptors. But yet that's exactly what fixed-bid contracting is for software development.

subwindow··on Why we bill by the hour
One of the most harmful results of fixed-bid contracting is that it gives offshore developers a huge advantage. It'll take them three times as long and they'll ship a worse product, but the "shipped" cost will still be lower. You don't see the hidden costs like maintainability and poor code quality until afterwards.
subwindow··on Ask HN: What does Ruby have that Python doesn't?
I agree that Lisp would have as much of an impact, if not more. I never said it was mutually exclusive with anything else in this benefit.
subwindow··on Ask HN: What does Ruby have that Python doesn't?
I didn't say that it would change the way you write code, I said it would change the way you approach writing code.

I'm fairly confident that it did. Once you've really learned it, Ruby creates paths in your brain that you will try to follow forever, even if you're not coding in Ruby anymore.

If it didn't, then you never gave Ruby a real chance.

subwindow··on Ask HN: What does Ruby have that Python doesn't?
I couldn't disagree more.

Even if you spend a month learning Ruby and never use it again, it will still irrevocably change the way you approach writing code.

subwindow··on Ask HN: What does Ruby have that Python doesn't?
It isn't so much about language features, as both languages are roughly equivalent in that sense.

It is about how the language makes you feel. If you're going to be spending >5 hours a day writing in some language, it is of great importance how that language makes you feel when you write it. Simply said, writing Ruby makes me happier than I've ever been while writing code.

Python is to German as Ruby is to French. You can get roughly the same message across equally well in both languages, but French just sounds so much better.

subwindow··on Blockbuster CEO 'Confused by Fascination' With Netflix
"The reality of the business" is that in the past year, Blockbuster has lost $70M, while Netflix has made $60M.
← PreviousPage 5 of 8Next →