HNHacker News
TopNewBestAskShowJobs

yourmomis1337

23 karma · joined May 22, 2008

submissionscomments
yourmomis1337··on Ask HN: What license for our ad server project?
well you can try : )

Is that your way of saying 'just GPL it'?

yourmomis1337··on Ask YC: Which looks better? (Website design feedback)
These are all variations on the same thing. Notice in particular what happens when you mouse over one of the snippets.

http://www.siafoo.net/snippet

http://www.siafoo.net/snippet?style=0

http://www.siafoo.net/snippet?style=1

http://www.siafoo.net/snippet?style=2

http://www.siafoo.net/snippet?style=3

http://www.siafoo.net/snippet?style=4

yourmomis1337··on Ask YC: How to debug javascript in IE??
There's also Firebug Lite (http://getfirebug.com/lite.html) and MS Visual Web Developer 2008 Express (free) (http://www.microsoft.com/express/vwd/)
yourmomis1337··on Ask YC: Feedback for programming code/info sharing site
I'd just like to say here that we were science majors and have no idea what we're doing as far as marketing the site goes... so thanks for all your inputs.
yourmomis1337··on Ask YC: Feedback for programming code/info sharing site
You didn't grasp the most important features, but did you understand the purpose of the site? Because that is perhaps the most important thing, I think. If we can get people interested in the site then they will read about the features (maybe?).
yourmomis1337··on Ask YC: Feedback for programming code/info sharing site
Well... it is more like the home page bubbles are on the 'about' page :-D They originally existed to solve the problem of 'how can we tell people what the site is about if they only go to the home page?'... maybe they still aren't concise enough? We already trimmed out so much, the first drafts were huge!
yourmomis1337··on Ask YC: Feedback for programming code/info sharing site
Yeah... the filter design is pretty much a short term fix, I'm not sure what the next stage in its evolution should be. Maybe start limiting the displayed keywords to the more popular ones, I dunno.

I think I agree about the bubbles on the about page... I suppose it's better to have shorter text blocks and more bullet points, images, etc?

I'm glad you like the site's purpose at least... it would be really unfortunate if we had designed this to solve a problem and everyone had just said, 'what problem?' ;)

yourmomis1337··on Essential Python Tips, Tricks, and Hacks
Wow, yeah, that one is fairly obvious huh...
yourmomis1337··on Essential Python Tips, Tricks, and Hacks
lol... that's true ;)

Although I'm going to try to add all the corrections you guys had when I get a chance (probably tomorrow).

yourmomis1337··on Essential Python Tips, Tricks, and Hacks

  if any(number < 10 for number in numbers):
Okay this is has to be the best way to do this, much better than the example in the article.
yourmomis1337··on Essential Python Tips, Tricks, and Hacks
You know if you create an account on the site you can edit the article, like a wiki.
yourmomis1337··on Essential Python Tips, Tricks, and Hacks
You're right about the map function, it is slightly more efficient in this case. But if you're multiplying 2 numbers together 10 times instead of 5, is it really significantly more efficient to use map? I suppose map/filter vs. list comprehensions/generator functions is really a matter of personal taste.

And not to start a flame war, but the code:

  numbers = [1,10,100,1000,10000]
  if [number for number in numbers if number < 10]:
      print 'Success'
  # Output: 'Success!'
actually does say that it's less efficient... granted it's buried in a paragraph so it's maybe not too obvious ; )... if you're using Genshi or something similar though you need to be able to toss crazy things in one line sometimes.

And 'Test is False' doesn't have to evaluate to True... if it is false, it is still the value returned by the entire expression. Not the actual value 'False'. I actually disagree with your example

  s = foo and "word: "+foo or ""
I tried it and "" got assigned to s...

And dude, the string in substring syntax is awesome!