Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:Schedule D?! (Score 1) 450

It is a pain to do Schedule D and the accompanying forms now.

Schedule D is straightforward in most cases. If you make a thousand stock trades, you can merely mark the totals in a line in your Schedule D and write "various." Some brokers, like Etrade, will even give you the totals, in case you're not good at math (and even if you are good, who wants to add up a bunch of stock trades).

Of course, if you got stock options from three different companies, Schedule D is a bit trickier, but still, not really.

Comment Re:Safety? (Score 1) 161

I've seen recommendations to use "auto" in places I don't really approve of. For example, with "auto w = new Widget();" w is a "Widget *". If you intended it to be a Wadget, and Widget and Wadget have member functions of the same names but aren't the same thing, you can create a hard-to-find bug, while "Wadget * w = new Widget();" is a compiler error.

I don't disagree with your point here, it seems to me it actually is safer to write "Widget w = new Widget()," and certainly redundancy can give you an extra check.

As the next step after that though, I ask myself, "how often does this prevent me from making a bug?" To be honest I can't remember a single time I accidentally wrote something like "Wadget w = new Widget()." So while it does make you safer, I think in practice there's not much of a difference.

Comment Re:Obligatory (Score 1) 161

btw, it's even if you aren't setting your pointers to null after freeing them, dangling pointers aren't a common problem. Someone on Slashdot once said that it's the programmatic equivalent of tripping and falling on your face. Sure, sometimes it happens, but it's rare. So it's not like you have to be a super-programmer or something, you just have to be average.

Comment Re:Obligatory (Score 1) 161

And how exactly are you going to do that when you are working with ancient code, 3rd party code and/or binaries?

So far I haven't had a problem with this either in ancient code, or third party code. If it's ancient enough, then it's probably been debugged. As far as third party code, if it hasn't been debugged, then that's a strong warning not to use it.

As for third party binaries.....those tend to be pain in no matter what language you use, unless they have extremely good documentation, which is rare. Even when using the Java standard libraries (which are) well documented, it's occasionally convenient to step into the source so you can figure out what is actually going on when the docs are confusing.

Comment Re:What bullshit (Score 1) 258

First and foremost the nature of real sentience is free will. If it doesn't have free will, it's not a real AI.

You might add...this is the hardest problem of AI. The problem of learning, the problem of making good decisions.....I can see a pathway forward on that. But will....how do you give it that? I see nothing.

You have the Douglas Adams idea, which is to give it a pleasure wire that gets pressed when it does something 'right,' and its goal is to maximize pleasure. In a way, we humans have that, we are driven to have sex, by the survival urge....but these are just urges. We can choose to follow them, or choose not to follow them. And that choice is where free will lies, and it's hard to understand how to give it to a machine.

Comment selling your vote versus the secret ballot (Score 4, Insightful) 480

The secret ballot has two purposes. one is it maintains your privacy and that's good for you. The other is it prevents selling your vote and that's good for the public. If I have a bitcoin ballot then I can easily transfer that coin to someone else to vote. thus I can sell my vote and the buyer knows for sure how it will be cast.

Comment transparency (Score 1) 480

the purpose of elections is to convince the public the election was fair. crytpography isn't transparent. worse in some forms of crytography it gains security from centralization of the key control making single point of attack more likely. It's much better when the public can see how the election works.

Comment Re:Stop trying to win this politically (Score 1) 786

Science communication is increasingly considered an aspect of science.

ok, if you want to modify the definition of the word, then yes, you are right. Good job, congratulations.
btw most people don't define science as "everything a scientist does as his job," but if you want to, go ahead, I have no problem with that.

What Mann is doing is communicating science.

He's also trying to convince the country (and world) to do something.

Comment Re:Obligatory (Score 1) 161

My point is more about other people's code. Your suggestions about things like NULLing references when you free the memory are fine in your code and are good practice but that doesn't stop somebody else from taking a reference to that block of memory and accessing it after you have deleted it, your reference is NULL but theirs isn't

That's what code review is for. You teach the people you work with to be better programmers. If someone wants to write bad code, there are plenty of ways in every language. If you can't trust your coworkers, language choice is the least of your problems.

Slashdot Top Deals

You knew the job was dangerous when you took it, Fred. -- Superchicken

Working...