HNHacker News
TopNewBestAskShowJobs

getsat

2,041 karma · joined November 29, 2010

submissionscomments
getsat··on Goodbye, MongoDB
Ah. If your target is people who aren't going to be reading docs, I don't think any DB is really preferable. :)

Any more details about the project, or is it under wraps?

getsat··on Everyone should be using low level caching in Rails
Good article. A few things:

Use "if" and "present?" instead of "unless" and "blank?". It's much easier to parse mentally, especially for people who didn't write the code. :)

You don't need to use "self" to access latitude, longitude, updated_at, etc. You only need to use it for assignment.

You don't need to call #to_s on the captured exception. When you interpolate an object into a string, Ruby calls #to_s on the supplied object itself, e.g., "I am an #{Object}".

I'd probably also add a "has_posts" scope to Category and use that instead of the #where call in ApplicationController.

getsat··on Goodbye, MongoDB
Give PostgreSQL a shot if you're still considering databases.
getsat··on A Mathematical Challenge to Obesity
There's a few National Institute of Health studies that back the calories in vs calories out argument. Keep your calorie intake below your BMR (basal metabolic rate) + what you burn during the day if you want to lose weight. Very simple. You don't have to "balance saturated and unsatured fats", get ten hours of sleep per day, or whatever other ridiculous microoptimisations people come up with.

Eat 500 calories below your MBR + burn rate and you lose one pound per week.

You can do it while eating garbage food (fast food, heavily processed food products) or you could do it while eating a totally vegan diet. It doesn't matter for weight loss.

getsat··on VLC has been downloaded over a billion times
I also see it "rebuilding font cache" on every fresh start. Is anyone else seeing that? Very annoying.
getsat··on Learn CSS Selectors interactively
Is all this stuff supported in modern browsers? It would be great if it showed browser compatibility for whichever one is selected.
getsat··on Google, I've had enough. How about a Compromise?
You might only need 1 in 10,000 ad views to result in a click to make money. It entirely depends upon what you're trying to get them to do/buy/sign up for on your site.
getsat··on Redditor: Am I a scumbag for automating my manual work and making more money?
The point is that it's not a good thing for him for that scenario to unfold.
getsat··on A good developer has a natural, almost visceral aversion to complexity
If you're having serious issues debugging Rails apps (or any app built on a major web framework), you are doing things horribly wrong.

If you're just quasi-trolling/shitposting, please go back to Reddit.

getsat··on I only know PHP. How do I write a Web application in Python?
Cool. Didn't know that. Thanks.
getsat··on The genesis of the perfect programming language
Twitter's frontend is still all Ruby/Rails. The Ruby -> Java claim is common, but incorrect. (Source: I know multiple engineers in SF who work there.)

A lot of their backend stuff is now Java, though.

getsat··on I only know PHP. How do I write a Web application in Python?
Not sure about the Python ones, but the Ruby read/write file examples aren't quite fully done/correct here:

  # Equivalent of file_put_contents() in PHP
  # This could also be used for appending if the correct mode is specified.
  File.open("filename", "w") { |f| f.write("some data") }

  # Equivalent of file_get_contents() in PHP
  some_var = File.read("filename")
getsat··on Interviews Can Be a Terrible Way to Identify Good Programmers
FizzBuzz is great. I can stop 50% of interviews after asking it. Amazing timesaver.

It's also extremely depressing.

getsat··on The Internet Kill Switch; With Global Wiretapping Capability?
Microsoft.com has better results IMO.
getsat··on Want good programmers? Then pay them.
Congratulations. You're better than 50% of the programmers I interview. Want a job in SF?
getsat··on If money doesn't make you happy, you probably aren't spending it right [pdf]
Your sign up link looks improperly styled. You might want to look at how these guys do theirs: https://squareup.com/
getsat··on If money doesn't make you happy, you probably aren't spending it right [pdf]
Probably "in my humble experience".
getsat··on ShopLocket Announces Support For Stripe, Helping Bring Stripe To Non-Developers
(For the record, I'm not talking about Katherine's business; I'm talking about Stripe.)

I'm not disputing that, and I totally agree with your points, however unrelated to my questions they are. I'm not even going to use Stripe (as I have nothing that could utilise it at present), but I keep seeing that line appear over and over on this site.

People are going to get tired of being led on at some point. Something as simple as "We're handling regulatory/bureaucratic issue X at present in country Y" would be tremendously transparent compared to their handling of the situation at present.

The Stripe team is failing on this point.

getsat··on Three things you should never put in your database
XFS rules at handling lots of little files. It also has a ridiculously high "files per directory" limit.

Something like Redis might've been sweet, too, but would require you to hold all that data in ram.

getsat··on A Functional Programming Influence Graph
There's also an example of Erlang-style actors in Haskell in this video: http://yow.eventer.com/events/1004/talks/1055
getsat··on The Cab Ride I'll Never Forget
The greatest commandment was two parts: what you said + "love your neighbor as yourself". The golden rule is kind of redundant if you follow greatest commandment.

http://www.biblegateway.com/passage/?search=Matthew+22&v...

This is the best chapter in the entire Bible IMO. It's funny how many Christian couples think they'll still be married in Heaven.

getsat··on ShopLocket Announces Support For Stripe, Helping Bring Stripe To Non-Developers

  We are working hard to make Stripe available outside the United States.
What does this even mean? You've been saying this for a long time now. Is there really no other status update besides this? Why not be a bit more transparent about the process to people who want to give you money?
getsat··on Microsoft sends GitHub DMCA shutdown for Skype open source project
Was the code mirrored anywhere offshore before the takedown? Could someone re-host it?
getsat··on The ReactOS team wants your money
Serious question: If Oracle wins their lawsuit and the court rules that APIs are indeed patentable, what prevents the ReactOS team from being sued into oblivion by Microsoft?
getsat··on Young File-Sharers Respond To Tough Laws By Buying A VPN
http://arpnetworks.com/ is ballin'. I've been using them for a few months now. Very fast upstreams. They're only on the west coast of the USA, though. They have a $10 option.
getsat··on Zerg Rush Google Easter Egg
I guess you've never tried to focus fire/snipe banelings that are part of a zerg army moving towards your marine bio force. Accurate clicking is very Starcrafty.
getsat··on The Haskell / Snap ecosystem is as productive (or more) than Ruby/Rails.
Ruby is as slow as PHP (see: Debian Language Shootout), and Rails is even worse because you're operating at a ridiculous stack depth. MRI and YARV are horrible at doing GC on deep stacks.
getsat··on The Haskell / Snap ecosystem is as productive (or more) than Ruby/Rails.
Can someone explain what is happening in this example? I'm learning Haskell right now and this makes no sense.
getsat··on Software Engineers Will Work One Day For English Majors
I'd take the graduate at 100k/yr if he had awesome side projects that show hustle/autodidactism rather than the experienced developer at any pricepoint.
getsat··on Valve Employee Handbook
I thought it was a not-so-subtle tongue-in-cheek reference to Gabe's weight/size. He's a big guy. shrug
← PreviousPage 7 of 32Next →