Jump to content


Photo

deprecated tags


  • Please log in to reply
5 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 01:38 AM

is it good to use deprecated tags, and functions in php, or should I always try to use the newest version of those deprecated, and if I find myself using deprecated tags at one point or another are they considered bad programming practice or against some specific standards.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 18 April 2006 - 01:58 AM

Well, you should avoid deprecated functions and tags whenever possible, since they are likely to be replaced in the future.
~ D Kuang

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 01:59 AM

sounds good, I like following standards and I know in xhtml I stay away from deprecated tags, I was just checking to make sure I should do the same with php, thanks.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#4 Jewbilee

Jewbilee
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 18 April 2006 - 01:59 AM

you have to stop posting so many different threads, your pushing the threads that others have way down farther the more posts you make. It is not fair to the others. If you have multiple questions, especially ones as basic as these, you should combine them into one large post

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 18 April 2006 - 02:00 AM

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Deprecated: Used typically in reference to a computer language to mean a command or statement in the language that is going to be made invalid or obsolete in future versions.[/quote]

I can't think of a good reason to code using stuff that might well fail in the next release of the language. The flip side to it is that there's a definite downside to code that requires functionality that's only found in php_release-date_yesterday ... yes, you can install it on your test/local server but don't expect it to be the release that exists on a server where you're providing scripting for a client. A good web host will periodically upgrade to the latest stable release (quite different from the latest release).

If you look at the most frequent problems on this board, it would be those arising from expectations that register_globals was set to ON - true in the old, old versions and no longer so. That's a good indicator of why you should avoid using deprecated stuff.
Legend has it that reading the manual never killed anyone.
My site

#6 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 02:05 AM

thanks for the posting, and I will post less. Thanks again.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users