User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,805 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,019 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 500 | Replies: 4
Reply
Join Date: Jul 2008
Posts: 7
Reputation: kneel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kneel kneel is offline Offline
Newbie Poster

Pointers: do u agree or not...

  #1  
Jul 24th, 2008
There are two general comments about pointers

1. Pointers increase the efficiency of our programs

2. Pointers degrade reliability of C++ programs due to security
issues

Give your views on these comments
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Posts: 6,070
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 419
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Pointers: do u agree or not...

  #2  
Jul 24th, 2008
>1. Pointers increase the efficiency of our programs
They also decrease the efficiency of programs.

>2. Pointers degrade reliability of C++ programs due to security issues
Only if used improperly, just like any other language feature.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
Reply With Quote  
Join Date: Mar 2008
Location: UK
Posts: 375
Reputation: williamhemsworth is a jewel in the rough williamhemsworth is a jewel in the rough williamhemsworth is a jewel in the rough 
Rep Power: 3
Solved Threads: 37
williamhemsworth's Avatar
williamhemsworth williamhemsworth is offline Offline
Posting Whiz

Re: Pointers: do u agree or not...

  #3  
Jul 24th, 2008
> 2. Pointers degrade reliability of C++ programs due to security issues
I try to only use pointers when necessary, if your not going to be accessing others parts of the memory from that pointer, then simply use references. This will also make the code more readable.
Approximately 298.60465116279069767441860465116 days until I get my first star x]
Reply With Quote  
Join Date: Jul 2008
Posts: 387
Reputation: ArkM is a jewel in the rough ArkM is a jewel in the rough ArkM is a jewel in the rough 
Rep Power: 3
Solved Threads: 57
ArkM ArkM is online now Online
Posting Whiz

Re: Pointers: do u agree or not...

  #4  
Jul 24th, 2008
Allow me to introduce my version of The Pointer Manifesto:

1. Pointers increase the efficiency of my programs

2. Pointers improve reliability of my C++ programs due to its flexibility, natural semantics and paragraph #1 issues
Reply With Quote  
Join Date: Dec 2007
Posts: 4
Reputation: oliver_mk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
oliver_mk oliver_mk is offline Offline
Newbie Poster

Re: Pointers: do u agree or not...

  #5  
Jul 24th, 2008
If you use them properly they can increase the efficiency. If not sure how to use them, then use shared_ptr and you won't have any problems at all and your life will be much easier
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 10:47 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC