Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Pet Peeves (WAS: modification)
Ken Foskey wrote:
> I always make that mistake 'if( $a = 10 ) {'  that is why I always 'use
> warnings' and, most importantly, correct the code. Pet peeve is 'use
> warnings' and then not cleaning them up.
>

That's because way back in grade school, you were taught that 'a = 10' (make
 a equal to ten) and 'a = 10' (a may be equal to ten) are the same thing.  C
omputers are stupid; you have to tell them the difference.  Not your fault; 
blame it on your teachers.


Pet Peeve #1: people who post code that does not compile.

Pet Peeve #2: people who comment on code when they have no experience.

Minor irritation: people who ask for help but post no code.


--
Just my 0.00000002 million dollars worth,
Shawn

"For the things we have to learn before we can do them, we learn by doing th
em."
Aristotle

Report this thread to moderator Post Follow-up to this message
Old Post
Mr. Shawn H. Corey
08-21-07 03:01 AM


Re: Pet Peeves (WAS: modification)
From: "Mr. Shawn H. Corey" <shawnhcorey@magma.ca>
> Ken Foskey wrote: 
>
> That's because way back in grade school, you were taught that 'a = 10'
> (make a equal to ten) and 'a = 10' (a may be equal to ten) are the
> same thing.  Computers are stupid; you have to tell them the
> difference.  Not your fault; blame it on your teachers.

I don't think so. There are "programming languages" that use the same
operator (or rather the same syntax) for both and decide which one
you wanted based on context. Thus restricting what you can do. And
confusing their users.

Eg. in Visual Basic you write

a = 10 ' Let a be equal to 10. Yeah, comments start with '. Silly.
if a = 14 then ' If a happens to be equal to 14

and even

bool = a = 10 ' Let bool be true if a happens to be 10 and false
otherwise

(Why do I keep using "let" instead of saying "Set a to 10"? Well,
because there is a Set statement and a Let statement and the equals
are equivalent to the Let one. The difference between

Set a = b
and
Let a = b

is ... erm ... very well thought out. That is if you are crazy.)

Jenda
P.S.: Sorry, I felt like venting.
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


Report this thread to moderator Post Follow-up to this message
Old Post
Jenda Krynicky
08-28-07 12:24 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.