Become a fan of Slashdot on Facebook

typodupeerror
DEAL: For \$25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

## Comment Re:Failure is always an option (Score 1)200

>60MPH in San Francisco is going to get you some pretty bad fines most of the time :).

A friend of mine Ubers in SF, and tries to do runs to and from SFO for maximum money. He doesn't live in SF either, but commutes a long way every weekend to work there because the money is so good.

>(1) You're assuming all miles and hours are 'billable', while in reality you would be driving empty towards a pickup and waiting for the next pickup.

There's a pickup fee which offsets this, and in reality you can usually chain together rides.

Also, there's an additional bill per minute if you are in traffic.

## Comment Re:Failure is always an option (Score 1, Informative)200

>There are plenty of people who haven't figured out how much money they're going to end up spending on vehicle maintenance as a result of all that extra driving.

The IRS mileage rate is supposed to be an average cost for operating a vehicle. It is 53.5 cents per mile. Uber pays about twice that per mile in San Francisco. So if you can go at 60 MPH you'll be making about 30 bucks an hour, which is not bad for unskilled labor.

## Comment Re:Interesting story (Score 1)553

> I doubt very much that I could come up with a function to balance a tree out of the blue with no prep or review, nor is there much real world need for most developers to do so.

He didn't have to balance the tree, he just had to check if the tree is balanced.

Pretty easy to do with DFS (which the DHS agent obviously knew):

int depth_check(Node *n) {
if (!n) return 0;
int left = depth_check(n->left);
int right = depth_check(n->right);
if (left != right) throw exception;
return left;
}

You could probably simplify it a bit more and use unsigned ints for correctness, but this was off the top of my head.

The calling function would check for an exception being thrown, and return false, otherwise return true.

## Comment Re: Poor on \$100k? Sure (Score 2)805

>You're getting a lot better living for the \$150k, you're definitely not in the same boat. That's like the people who say, "Oh, my BMW payments are so high, they're forcing me to cut back on my quality of life."

You forget our wonderful progressive tax system. A person with \$150k in income and \$100k in expenses will also be paying \$32,000 in federal income taxes a year, plus state taxes, plus medicare, medicaid, etc. Will effectively be poor.

A person with \$200k in income and \$150 in expenses will pay \$46,000 in taxes plus everything else, and will be running in the negatives every year.

>And even in the Bay Area, you can buy a nice house for \$150k a year.

So a \$600,000 house? There's exactly four 3 bedroom houses for sale at the \$600k price point in San Francisco right now (on Zillow). The average is closer to a million for a single family home. There's a couple elsewhere on the penninsula and Marin, but pretty much everything with these specs is going to be Oakland, Richmond, Hayward, or Concord. I'd rather live in San Diego, thank you very much. (And I have indeed lived in both cities.)

## Comment Re:One hour of basketball dunking per day. (Score 1)142

Our schools (generally speaking currently mandate 3-4 *years* of PE and 0 years of computer science.

Some students are terrible at PE. So what? We make them do it anyway. These might even be the same students that excel at computer science, if the stereotypes are true.

But this isn't even a mandated year of CS. It's a bloody single hour, lodged somewhere in between the 4th and 12th grades. If you think we can't spare a single hour for coding, I don't know what to tell you.

The biggest obstacle to CS education is the sheer fact that nobody is exposed to it at an early age, so they don't know if they like it or are good at it before going to college. This stands in contrast to basically every other major STEM field, where everyone has an opportunity to (or be mandated to) take a high school level class. But only about 1 in 10 high schools even offer CS these days, and the numbers are going down because they're usually not counted for college science requirements.

So, no, this bill really is a good thing. The Hour of Code is so simple even troglodyte teachers can run it for their kids.

## Comment Re:Like everything else start with the basics (Score 2, Informative)312

I like Java, C++, C#, and Python, and think they all work great as introductory languages. C++ gets shit on a bit because there's a lot of bad memories from the 80s and 90s when you had to do a lot of things by hand, but modern C++ is a joy to code in. In fact, if it was up to me I'd say that colleges should teach C++ as their intro language for three reasons:

1) It's as powerful and expressive as Java and Python (with some notable exceptions like split() which you need to invoke Boost for). Smart pointers (instead of raw pointers), vectors (instead of C style arrays) and range-based for loops (to never have out of bounds errors) allows for very fast and safe programming.

2) It is a lot easier to go from C++ to Java/Python than vice versa. Java programmers tend to have a vague grasp on how memory actually works.

3) C is only one step away from assembly. C++ is two steps away (due to name mangling). Java and Python are three or more steps away. Assembly programming, while rare enough these days, is still the gateway to really understanding computer architecture and writing code that works with your architecture instead of against it. Success in assembly should be the goal for a lower-division computer science program.

I also agree with you that most languages take their cues from C++/Java in that they either follow the conventions or deliberately break them. So learning C++ or Java is a really good choice for new programmers for that reason as well.

## Comment Re:LOL (Score 1)899

>White nationalist Richard Spencer coined the term in 2010 to define a movement centered on white nationalism.

Given that nobody had heard of the guy until after the election and the alt-right became a thing, it's kind of hard to credit him as being the leader of the alt-right, which is a predominantly online movement of anti-liberal trolls.

Milo is really the leader of the movement. Shitposter in chief.

## Comment Re:What about travellers _to_ the USA? (Score 1)101

We used Roam Like Home when in the US, fairly cheap at \$5/day. Used it a couple of times in Costa Rica but we were on wifi most of the time at the house we rented so ended up using cheap VoIP as needed, way cheaper than \$10/day.

## Comment Re:kde (Score 1)78

I believe it started with SGI's IRIX desktop back in the 90s.

I used it on an Octane 2(?) for a few years. It was certainly ahead of its time.

## Comment Re:Who cares? (Score 1)238

>Lower power consumption
>Better picture quality
>Better durability and lighter weight

On the downside LG embeds advertising into the firmware of its TVs, so I will continue to refuse to buy them.

Samsung bakes advertising in as well, which is a shame, since they have much lower latency for gaming than any other LCD manufacturer.

I will not buy a TV that will advertise to me whenever I bring up the main menu.

# Slashdot Top Deals

At these prices, I lose money -- but I make it up in volume. -- Peter G. Alaquon

Working...