Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment They couldn't wait (Score 1, Funny) 79

'When we were planning this degree, our advisers from the commercial space industry said they couldn't wait to hire our graduates.'"

So the course wasn't even fully designed yet, not a single fucking graduate has yet to come out of that university, and they ALREADY want them working on projects headed to one of the most hostile environment we're aware of?

What a bunch of clowns.

Comment Re:Brogramming??? (Score 1) 432

It's also defined as the only function that if you reach the end without a return statement, it is implicitly "return 0;"

Did they carry that over to C as well? In C89, it definitely wasn't the case. But then, it wouldn't be the only thing from C++ which made its way into C.

Correct, C89 didn't have it but C99 and C11 do.

Comment Re:Brogramming??? (Score 1) 432

Do any other C functions have a reserved return type? No? Then it's not exactly an intuitive conclusion to jump to if one has never programmed in C, is it?

I don't understand what you're getting at. I read dimeglio's post as a condescending one towards HeckRuler as if putting "int" was the wrong thing to do (thus making him a "brogrammer" who doesn't know what he's doing)

I'm not saying it's intuitive (AC is being harsh here), but if he's going to diss someone for it, he should know what the heck he's talking about.

As for the whole convention thing, that was a reply to you personally. I was being a bit pedant, pointing out that it's not a "convention" but rather the only proper return type for main.

Comment Re:Brogramming??? (Score 1) 432

I don't know if you got confused by the people here who are completely ignorant of that part of the C standard, but there's no "convention" here.

main is defined to have a return type of int. It's also defined as the only function that if you reach the end without a return statement, it is implicitly "return 0;"

dimeglio is just a victim of cargo cult programming.

Comment Re:Don't scan other people's systems (Score 1) 633

So you rely primarily on security thru obscurity and hope that genuine bad guys would never scan you? That's pretty scary.

No actually you made up that part entirely. Here's what he actually said:

Seriously, don't run Acunetix or Retina scans or whatever on other people's systems. It looks like you are probing for vulnerabilities because, well, that's exactly what it's doing.

And if I'm a sys-admin, I'm going to see that and think you're an attacker. From my point of view, you've just cased the joint. That's what I'm going to report up, and from there everything gets ugly.

Slashdot Top Deals

Remember, UNIX spelled backwards is XINU. -- Mt.

Working...