Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
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: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.

Comment Re:Always a couple of cheapskates (Score 1) 313

>There are almost always 1 or 2 cheapskates on a flight of 150+, whom can be bought off.

Sure, count me as one of them (as a frequent flier). As long as I don't have a strict deadline, I'll usually take a voucher. One year I think I probably got back more credit worth in vouchers than I spent on flying.

Comment Re:Libre (Score 1) 338

>Trisquel gives you what you are looking for, but when you can't use your hooble-dooble because the company is a bunch of apes that never made a FOSS driver, you'll be angry at the company, and a little angry that you didn't bend for just that one thing.

I guess. I run a headless server, device drivers aren't much of a concern for me. My main concern is minimizing the amount of work I have to do maintaining the server, including security patches and updates to the latest version of source code. I hate wasting my time.

>The fact that Debian doesn't meet Stallman's standards is a problem with Stallman's standards.

I think there's a certain amount of truth to that, but at the same time he makes some pretty good points and so I try to use free software everywhere in my business efforts. I'm not a purist, but I always choose a free (or freer) alternative over a non-free one.

Hence my question if Devuan makes it easy to install free-only software.

Comment Libre (Score 1) 338

Is there an option to install it with all non-free repositories disabled by default? As my man RMS says, Debian is better than Ubuntu because it at least segregates packages into free and non-free repositories, but still enables both by default. If the non-free repositories were disabled by default, GNU might finally have a modern distribution it could throw its weight behind.

https://www.gnu.org/distros/fr...

My goal in running a GNU/Linux box is to not run a GNU/Linux box, and Debian and Ubuntu are really nice at that, but I'd like more confidence I'm running only free software than what I have now.

Comment Re:Not Just The Middle (Score 1) 468

>We've reached a point where AI in medical diagnosis is more accurate then human doctors

I've gone to a talk on this subject at UCSF.

For some tests, yes, but not overall. Watson, hype excluded, cannot replace a human doctor.

There's certainly benefit to it, but in the short-mid term, doctors are in no danger of losing their jobs.

Comment Re:Seriously? (Score 1) 88

>No, it's that it should be something a child is actually drawn to, not an activity forced down their throat to perform in lock-step with thirty other classmates.

Why single out computer science here? Why mandate English, math, science, etc. for students?

Because the sad reality is that a student has to apply for a major in college *prior to taking classes at that college*. So they need to be exposed to every subject they might be interested in in the K-12 system, and maybe they don't know that they'll like or dislike a subject until they actually take it.

Most people who become biology majors like biology in high school. Most physics majors took physics in high school and thought it was something they could do.

Most computer science freshmen go into CS because they like video games.

Slashdot Top Deals

"There is no distinctly American criminal class except Congress." -- Mark Twain

Working...