Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 20th, 2002, 11:05 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
Anyone notice? (pun intended)

I removed the restriction about notices and warnings. Everyone hated it and complained so much that I got rid of it...

Reply With Quote
  #2  
Old September 21st, 2002, 12:26 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Anyone notice? (pun intended)

no! i didn't hate them!

they make everyone make nice and clean code...

every beginner can learn with warnings on!

if everione written code that doesn't produce warnings, php team wouldn't change register_globals to off!

Reply With Quote
  #3  
Old September 21st, 2002, 05:52 PM
swush swush is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 swush User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Anyone notice? (pun intended)

i didn't hate them too.

i always test with notices and warnings turned on, i think the resulting code is more stable.

it is not difficult to avoid notices and warnings, it only requires some easy thoughts. in other programming languages you'd have to care about that anyway( for example variable - initialization )

Reply With Quote
  #4  
Old October 1st, 2002, 07:21 AM
mld mld is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Stockholm, Sweden
Posts: 5 mld User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m
Reputation Power: 0
Send a message via ICQ to mld
RE: Anyone notice? (pun intended)

Personally I can't see the reason to complain about scripts not generating notices and warnings. If you write code for a real project, there's got to be no warnings or notices.

I wouldn't mind having that "restriction" back.

Reply With Quote
  #5  
Old October 1st, 2002, 07:50 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Anyone notice? (pun intended)

As I see it it's up to the developer now. If you like notices (as do I), turn them on, if not, your problem?

Many bugs can be caught using notices, but if people prefer not to use them, it's their choice.

Reply With Quote
  #6  
Old October 1st, 2002, 06:32 PM
happylight happylight is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 happylight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to happylight
RE: Anyone notice? (pun intended)

Just an example why I hate notices.
When you handle POST requests in a web application and there are hundreds of optional input items, you don't really want to check if each of them has things entered with isset()... 'cause... you'd have hundreds of isset() statements! You'd just want them to evaluate to false instead of having a notice telling you that it's undefined and php is assuming it's false.

Reply With Quote
  #7  
Old October 2nd, 2002, 12:33 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Anyone notice? (pun intended)

and why did we ask questions to zeev?

look at his answer to one question where he mentions notices

Reply With Quote
  #8  
Old October 2nd, 2002, 03:03 AM
happylight happylight is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 11 happylight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to happylight
RE: Anyone notice? (pun intended)

Yea... I wouldn't say the code I mentioned above "higher quality". Having hundreds of useless lines just sitting there is inefficient.

Help writing the core is one thing. Actually writing applications for it is another.

Reply With Quote
  #9  
Old October 2nd, 2002, 11:05 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Anyone notice? (pun intended)

u can add @ for such purposes...

but, if you have hundreds of input items, and u manualy add them in you code, maybe there is something wrong with your code?

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Anyone notice? (pun intended)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway