home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

C++...wtf?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1239
Discussions: 204,506, Posts: 2,419,407, Members: 249,921
Old January 19th, 2006, 03:49 PM     #11 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,553
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Quote:
Worry about problems down the road? Ha! I"ll be gone before I have to fix it. My legacy to all the nice 60's, 70's et al programmers that left me to fix all that Y2k crap!

Heh globals are a debugging and matainance nightmare for any decent sized application. Which is one reason never to use them, you never get used to and just do it the right way the first time, making you whole life easier.

Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
jkrohn is offline   Reply With Quote
Old January 19th, 2006, 03:52 PM     #12 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,279
Send a message via AIM to Rootstonian
Yeah, I know. Unfortunately, I was trained to never use them and to tell you the truth, I haven't found a need for them...yet.

Some of the stuff I write in PeopleCode though, demands globals. It's not my fault, it's the nature of the "language".
Rootstonian is offline   Reply With Quote
Old January 19th, 2006, 03:52 PM     #13 (permalink)
Ultimate Member
 
GameManK's Avatar
 
Join Date: Feb 2004
Location: Framingham, MA
Posts: 1,131
Send a message via AIM to GameManK
Quote:
Originally Posted by Peter M
Don't obfuscate -

for (int i = 0, ...

does exactly that. Say

int i;

...

for ( i= ...

but i do that all the time... (in java mostly) what's wrong with it? IMO it keeps the code cleaner and you don't have to worry about what variables you've declared outside the loop for a simple index.
Quote:
Originally Posted by Peter M
C++ is about making objects and keeping data encapsuled with the code that handles it.

Doesn't that kind of contradict the previous advice? ^ (I agree on the globals, thats not what i'm talking about)
__________________
Athlon 64 x2 3800+/2gb/asrock 939dual-sata2/gf6200/audigy2 zs plat/sonata + Asus V6J + Lenovo Ideapad U330
Kubuntu 8.10
GameManK is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wtf? Smidley IMO Community 2 January 26th, 2005 01:00 AM
WTF is this BS ok.player Technical Support 14 October 27th, 2004 04:29 AM
wtf?? Firebatt IMO Community 9 July 16th, 2002 03:54 AM
WTF!? skullwerkz Traders Forum: Buy, Sell, Trade 5 June 22nd, 2002 09:42 PM
wtf is going on?!?! Chooco Webmastering and Programming 2 March 19th, 2002 01:45 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1588)
CBO: Obama's health care plan cuts .. (103)
What Happens If You Have Health Ins.. (7)
USB not recognised..... (16)
would this build be enough for WOW? (14)
Recent Problem (15)
Need some suggestions on building a.. (29)
[ F@H Chat] 03/07/10 New Month New.. (89)
Motherboard the culprit? (7)
Can't Rename Files (11)
Suggestions? (6)
Windows XP Pro Error log (9)
Hard drive full = slower computer? .. (6)
Want a new power supply for my Dell.. (35)
Recent Discussions
Motherboard the culprit? (7)
Need some suggestions on building a g.. (29)
About to install a new heatsink and I.. (1)
YOUR BEST TRICK OR TIP FOR YOUR COMPU.. (21)
SSH Tunnel Or OpenVPN? (0)
burner not burning. (4)
Windows XP Pro Error log (9)
Sim Societies won't launch (0)
Help! Cisco Switch port (interface) f.. (0)
[ F@H Chat] 03/07/10 New Month New T.. (89)
HTML (2)
Hard drive full = slower computer? Is.. (6)
Reading Raw data off an SD (MMC) card (8)
Recent Problem (15)
USB not recognised..... (16)
Can i upgrade my gateway nv5448u grap.. (1)
Drive 0 not found: Serial ATA, Sata-0 (9)
i need to find my DNS server IP addre.. (21)
HP Pavillion Laptop ze4220 won't turn.. (15)
Lexmark Printer Prestige pro805 (0)
E:\Pictures is not accessible. the d.. (4)
Replacement hard drive for Dell 600M (18)
toshiba l300-20d upgrade (0)
AE's Windows Troubleshooting Guide (24)
Audio skips when I play a cd or dvd o.. (0)


All times are GMT -4. The time now is 12:01 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28