Posts24
Comments1,433
View on HN
act.demandprogress.org 14y ago

SOPA Doomed? Pelosi, Issa Speak Out.

sabat
76pts7
blogs.kqed.org 15y ago

CA State Board of Equalization Still Going After Amazon

sabat
2pts0
globalpublicsquare.blogs.cnn.com 15y ago

A Tale of Two Economies

sabat
1pts0
sslearthquake.usgs.gov 15y ago

Free Earthquake Notification from USGS

sabat
1pts0
news.ycombinator.com 15y ago

Ask HN: Is Your Webapp in an App Store?

sabat
4pts3
www.mercurynews.com 15y ago

Grim numbers point to the end of the venture capital era

sabat
5pts0
www.igvita.com 16y ago

Rails Performance Needs an Overhaul

sabat
2pts0
blog.phusion.nl 16y ago

Ruby Enterprise Edition 1.8.7-2010.02 released

sabat
1pts0
www.spaceparanoidsonline.com 16y ago

Get Your Tron On -- Space Paranoids in Flash

sabat
1pts0
daringfireball.net 16y ago

Gruber: Journalist Shield Law Won't Help in Gizmodo Case

sabat
27pts50
news.ycombinator.com 16y ago

Ask HN: market size -- how to estimate?

sabat
7pts1
www.portfolio.com 17y ago

Tech Start-ups and the Economy's Best Hope

sabat
4pts0
blogs.openforum.com 17y ago

Plan B for Fundraising (Guy Kawasaki making sense)

sabat
73pts27
news.ycombinator.com 18y ago

Ask YC: Mosso.com Computing Cloud? Anyone Tried It?

sabat
1pts1
news.ycombinator.com 18y ago

Ask YC: Resources for Writing Business Plans?

sabat
6pts3
news.ycombinator.com 18y ago

Don't worry about people stealing an idea.

sabat
7pts11
news.ycombinator.com 18y ago

Mac Users: Tried Webkit Yet?

sabat
2pts0
www.ebizmba.com 19y ago

Via Digg: How Many Visitors Does Your Site Need to Make You A Web 2.0 Millionaire?

sabat
1pts1
news.ycombinator.com 19y ago

Hey, You Startup Monkeys: Will Quickbooks Be Enough?

sabat
5pts12
www.asiaing.com 19y ago

Wil Schroter's Go BIG or Go Home -- free full pdf download

sabat
4pts1
news.ycombinator.com 19y ago

Website Signup w/o Confirmation: Any Problems with That?

sabat
7pts14
news.ycombinator.com 19y ago

Acquisition Exit: it's not just Google & Yahoo

sabat
14pts5
www.amazon.com 19y ago

Amazon EC2:doing for VMs what S3 did for storage

sabat
2pts0
news.ycombinator.com 19y ago

Startup Company Form: LLC or S-Corp? Which is easier and which is better?

sabat
22pts31

I have a friend who's an O'Reilly author. Granted, he's not the author of, say, the book on Bash, or Git, but it's a current book. He likes to joke around about how little money he makes on the book (now in second edition): "I make hundreds of dollars. Hundreds!"

Yup. They're like any other tool. If you're not sure how to use and/or, then don't use them. Or, better yet, study up. Programming can benefit from nuance.

Not sure why someone chose to downvote this to 0, but here's how the OP put it:

The global lock is a feature of MRI that basically wraps a big mutex around all of your code. That's right, even if you're using multiple threads on a multi-core CPU, if your code is running on MRI it will not run in parallel.

Due to the Global Interpreter Lock (GIL), your whole script is wrapped in one giant mutex. That means that you don't have code running in true parallel, so the data is not corrupted as it is in JRuby and Rubinius (which both implement real, true, parallel threads).

E.g. -- someone posted a link here to an article in which they describe using Google Hangouts for everything. There's a permanent one that everyone is on all damn day. There are special, throwaway hangouts for asides and meetings and anything else that might be needed.

You don't need to be in person, and many people would surprised how effective teams can be even when they're not in the same room. All it takes is good communication, and by that I mean: 1- good communication technology, like a good net connection and good chat software and good cameras, 2- good use of technology for communication (IM software is not sufficient), and 3- good communication practices (which amounts to: communicate early, communicate often).

Remote employees are a commitment

So are on-site employees, who can screw off just as much as an off-site one.

if the remote employees are not providing enough value to justify that investment in remote workers

Then fire them. This kind of draconian move won't get Yahoo anything but an even bigger talent hemorrhage than it already has.

They're not synonyms; "and" is not a more readable version of "&&".

As Avdi Grimm says: and and or, despite an apparent similarity to && and ||, have very different roles.

It's worth using "and" and "or", especially considering that && and || bind too tightly for some purposes. I try to avoid && and || unless I'm doing a specific boolean operation (e.g. x = foo || bar). Not for flow control, though.

If you really can't grok the logic, use parens.

I like what I've read, but with a couple of cavaets. Ruby is the way it is on purpose. Discouraging people from using features of the language because the OP (presumably) does not understand how to use them: that's an anti-pattern.

The and and or keywords are banned. It's just not worth it. Always use && and || instead.

If you find "and" and "or" not to be "worth it", it tells me that you don't understand the difference. The "&&" and "||" versions bind more tightly, and that is not always desirable. Perl has the same set of constructs, and the Perl monks have been using them correctly for years.

As you can see all the classes in a class hierarchy actually share one class variable.

Well, yeah. That's meant to be a feature of the language, not "nasty behavior". It's good advice to use class instance variables, sure. But let's not imply that Ruby is a badly designed language; it's quite well-designed. This isn't Javascript. :-)

edit: formatting