Maybe students don't need to pirate XP/Office/Photoshop/etc. because they're using Linux/StarOffice/Gimp/etc.
Interesting story about this. My roommate was playing around with a pirated version of Photoshop the other day and was complaining because he couldn't take it to work where it would help him get his job done. So I suggested he try the Gimp. I pointed him to the download page for the windows version and he started playing around with it. He was so happy that it would make his job easier and that it had support for files that Photoshop didn't. I do believe he downloaded it at work. GNU wins over another one.
Re:Does Greenlee have his Ph.D. yet ?
on
C
·
· Score: 2
Does he have a Ph.D. yet ?
He's still just an instructor (AFAIK). I just refer to him as a prof because it's easier than explaining the real title. I also enjoy his teaching style but I'm glad he's the only one. I don't think I could deal with a full load of Greenlee-like profs.
The problem is not with realloc. The problem is if realloc fails it returns null and you lose the pointer to memory that is cpand thus creates a memory leak. The better code would be:
if((temp=realloc(cp,n))!=null)
cp=temp;
Re:Why are people still using a 30 year old langua
on
C
·
· Score: 4, Informative
So what you're saying is that you prefer a language that has NO MEMORY MANAGEMENT to one that does?
A good programmer can manage memory without the help of the runtime environment. There's a certain pride in being able to program with no memory leaks.
Re:Why are people still using a 30 year old langua
on
C
·
· Score: 2
C has no bounded array support. This makes it inherently unsuitable for any security programming taks.
*cough* *NIX is written in C *cough*
Yes, but wasn't Windows also originally written in C? I guess it's the programmers and not the language that determine the security.
Re:Why are people still using a 30 year old langua
on
C
·
· Score: 3, Insightful
It seems that Dennis Ritchie was so besotted with A and B that he forgot to take out the trash.
If the computing industry had any sense, it would have switched to Java 10 years ago. Why hadn't it? Inertia!
Speaking of taking out the trash...I prefer to say when garbage collection occurs. I don't get that control with Java like I do with C.
One of my CS profs (Georgia Tech people probably know who I'm referring to) gave the class advice on buying a C book: Flip through the book. If malloc isn't covered, put it back. If malloc is covered in an appendix, put it back. If the book contains the line cp=realloc(cp,n); then "burn it! Burn it right there in the store! Burn all of them!"
I always hated my TI-85, fresh batteries at the start of a school year would run out just days before the final exam. My last calculus exam was a whole lot of squinting at the screen with the contrast turned up to 9:o).
Yeah, Tetris really sucked up the batteries in High School Calculus.
That could easily be extended to include all "free" software, much of which the readers of Slashdot tout constantly. Apparently, none of those are "products" in your opinion.
Be careful there or RMS might appear behind you and smack you upside the head reminding you that it is Free-as-in-Speech not Free-as-in-Beer.
i know audi vw and porsche share alot of similar parts nowadays, so are there any air-cooled audi's you forgot to mention? or is the audi/vw/porsche parts alliance more recent than air-cooled design?
According to Audi's website, Audi became a wholly-owned subsidiary of VW in 1966. However, I never hear of anyone praising the simplicity of the Audi air-cooled engine like I hear of the old Beetle and Micro-Bus engines.
people felt they were lucky, lucky I tell you, to have ones and zeros.
Oh yeah? We had to use the letter 'O'. And when RAM was being developed the only way we could store anything was by building up static electricity and using our fingers. And then sometimes we didn't even have socks. Other times we didn't have carpet. Any we liked it that way.
There is no true freedom without responsibility. "Doing what you want" is not freedom at all, but a license for anarchy and chaos.
To have a functional society there must be a balance between freedom and rules. My point is that when it come down to pure freedom, anarchy is the most free type of society. Sure the GPL requires more responsibility to properly wield and also may spawn the most benefits but the BSD License is more free as it leans toward software anarchy.
It's amazing how they call a license that mandates freedom and requires you to contribute to the common good "restrictive," and by contrast a license that allows others to poach and return nothing is labelled as "more free."
If you mandate that I must do something then you are restricting my freedom. If you say "do what you want" then you are promoting more freedom than if you say "do what you want but...".
I think that instead of devising ways to destroy damaging emails that you send we should instead focus on not sending damaging emails. Bill Gates sent out memos that the DOJ is now using against him. That'll teach him. If you have something that important to say it's probably best said in person.
Sorry, but I hold the patent on Common Sense. If you would like to use Common Sense you are going to have to pay me a licensing fee. The USPTO has failed to pay this fee.
Maybe students don't need to pirate XP/Office/Photoshop/etc. because they're using Linux/StarOffice/Gimp/etc.
Interesting story about this. My roommate was playing around with a pirated version of Photoshop the other day and was complaining because he couldn't take it to work where it would help him get his job done. So I suggested he try the Gimp. I pointed him to the download page for the windows version and he started playing around with it. He was so happy that it would make his job easier and that it had support for files that Photoshop didn't. I do believe he downloaded it at work. GNU wins over another one.
Does he have a Ph.D. yet ?
He's still just an instructor (AFAIK). I just refer to him as a prof because it's easier than explaining the real title. I also enjoy his teaching style but I'm glad he's the only one. I don't think I could deal with a full load of Greenlee-like profs.
Generally
if realloc fails, it means that your program isn't going to execute very far before it totally pukes anyway.
Very true. If realloc failing you probably have bigger problems.
The problem is not with realloc. The problem is if realloc fails it returns null and you lose the pointer to memory that is cpand thus creates a memory leak. The better code would be:
if((temp=realloc(cp,n))!=null)
cp=temp;
So what you're saying is that you prefer a language that has NO MEMORY MANAGEMENT to one that does?
A good programmer can manage memory without the help of the runtime environment. There's a certain pride in being able to program with no memory leaks.
C has no bounded array support. This makes it inherently unsuitable for any security programming taks.
*cough* *NIX is written in C *cough*
Yes, but wasn't Windows also originally written in C? I guess it's the programmers and not the language that determine the security.
It seems that Dennis Ritchie was so besotted with A and B that he forgot to take out the trash.
If the computing industry had any sense, it would have switched to Java 10 years ago. Why hadn't it? Inertia!
Speaking of taking out the trash...I prefer to say when garbage collection occurs. I don't get that control with Java like I do with C.
One of my CS profs (Georgia Tech people probably know who I'm referring to) gave the class advice on buying a C book: Flip through the book. If malloc isn't covered, put it back. If malloc is covered in an appendix, put it back. If the book contains the line cp=realloc(cp,n); then "burn it! Burn it right there in the store! Burn all of them!"
Experienced programmers usually use man if my collegues and I are any example.
man is good as a specific reference but I think since you are already an experienced programmer you aren't looking for a book like this one.
I think it's a good thing that some guys back in the 1700s decided the world needed an alternative.
Those with poor or lack of vision are competely screwed by the use of flash, but they are just like Unix users... a minority; who cares about them?
Luckily, they're a minority the government tends to listen to and likes to protect.
I always hated my TI-85, fresh batteries at the start of a school year would run out just days before the final exam. My last calculus exam was a whole lot of squinting at the screen with the contrast turned up to 9 :o).
Yeah, Tetris really sucked up the batteries in High School Calculus.
My gramps has a clock you just have to shake instead of wind up. Why can't a palm or other device work the same? Put some mechanics in there.
Put it in a paint mixer for a few days and have it run for years...
I don't live in Japan. Where do I not sign up?
Yes, but is he hung?
That might allow him to be screwed more.
That could easily be extended to include all "free" software, much of which the readers of Slashdot tout constantly. Apparently, none of those are "products" in your opinion.
Be careful there or RMS might appear behind you and smack you upside the head reminding you that it is Free-as-in-Speech not Free-as-in-Beer.
Hell, you can't even say lynch without someone cocking an eyebrow and thinking you're in the KKK. Sad.
One of my good friend's last name is Lynch. I guess he's screwed.
i know audi vw and porsche share alot of similar parts nowadays, so are there any air-cooled audi's you forgot to mention? or is the audi/vw/porsche parts alliance more recent than air-cooled design?
According to Audi's website, Audi became a wholly-owned subsidiary of VW in 1966. However, I never hear of anyone praising the simplicity of the Audi air-cooled engine like I hear of the old Beetle and Micro-Bus engines.
BTW - Cliff, you realize that this is a "need hits on my website" article dressed in "AskSlashdot" clothes, right?
Either that or a "lets see how tough my webserver really is" article.
The same thing happens at Georgia Tech. If you can't cut it as CS you hop on the M-Train...it's a free ride!
people felt they were lucky, lucky I tell you, to have ones and zeros.
Oh yeah? We had to use the letter 'O'. And when RAM was being developed the only way we could store anything was by building up static electricity and using our fingers. And then sometimes we didn't even have socks. Other times we didn't have carpet. Any we liked it that way.
There is no true freedom without responsibility. "Doing what you want" is not freedom at all, but a license for anarchy and chaos.
To have a functional society there must be a balance between freedom and rules. My point is that when it come down to pure freedom, anarchy is the most free type of society. Sure the GPL requires more responsibility to properly wield and also may spawn the most benefits but the BSD License is more free as it leans toward software anarchy.
It's amazing how they call a license that mandates freedom and requires you to contribute to the common good "restrictive," and by contrast a license that allows others to poach and return nothing is labelled as "more free."
If you mandate that I must do something then you are restricting my freedom. If you say "do what you want" then you are promoting more freedom than if you say "do what you want but...".
I think that instead of devising ways to destroy damaging emails that you send we should instead focus on not sending damaging emails. Bill Gates sent out memos that the DOJ is now using against him. That'll teach him. If you have something that important to say it's probably best said in person.
Sorry, but I hold the patent on Common Sense. If you would like to use Common Sense you are going to have to pay me a licensing fee. The USPTO has failed to pay this fee.