Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411855 Posts in 69423 Topics- by 58466 Members - Latest Member: joelmendonca

June 02, 2024, 07:25:46 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)C++ is frequently reviled both by those who never use it and by those who use it
Pages: 1 ... 5 6 [7] 8
Print
Author Topic: C++ is frequently reviled both by those who never use it and by those who use it  (Read 18845 times)
Chris Z
Level 7
**



View Profile WWW
« Reply #120 on: October 20, 2009, 03:50:10 PM »

No, no, that's not what he said.  It's rude to put words in people's mouths.
Logged

Jason Bakker
Level 2
**


View Profile WWW
« Reply #121 on: October 20, 2009, 04:06:30 PM »

Edit and Continue is crap... but VS works fine for me, although saying that makes me lose anarchist cred I guess Giggle

I don't know... for a long time I was DS programming without a debugger (just using traces/asserts and crashes) and now that I have a call stack and breakpoints I feel spoiled for choice!
Logged

BlueSweatshirt
Level 10
*****

the void


View Profile WWW
« Reply #122 on: October 20, 2009, 04:09:06 PM »

Edit and Continue is crap... but VS works fine for me, although saying that makes me lose anarchist cred I guess Giggle

I don't know... for a long time I was DS programming without a debugger (just using traces/asserts and crashes) and now that I have a call stack and breakpoints I feel spoiled for choice!

Personally, I just think the layout of VS is flat-out unintuitive. It tries, but it also fails. It's really not bad, it gets the job done, but I'd rather do the job in Code::Blocks or XCode.

One big thing that bugs me is that the VS IDE crashes whenever I try to open a resource file within the list. I've looked a bit, but haven't found a solution.(I should look again... Google time.)
Logged

Jason Bakker
Level 2
**


View Profile WWW
« Reply #123 on: October 20, 2009, 04:18:41 PM »

XCode is nicer in general, although the lack of tabbed source files still bites. Grar!
Logged

Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #124 on: October 20, 2009, 04:19:17 PM »

Why do you guys say it's hell to debug a dynamic language?
I didn't say 'dynamic', I said 'scripting'.   Generally the source of the hell is lack of debugger.  Generally, languages without debugging tools can be annoying to debug.

VS Edit and continue is a big pile of fucking bs that can suck my cock.
Oooooooooh, I understand now, but that's not a problem of the language itself Smiley

I was talking about, for example, Visual Basic which has a full-blown IDE and the output window allowed you (If I remember correctly) to execute stuff by typing "?"+line of code, and because it's interpreted changing things on the fly didn't take any time at all, hit "play" again and it's working.

Regards


Btw! Talking about XCode... I fricking hate Macs.
I can't write code with the keyboard layout! Denied!

I hooked a Windows USB keyboard but the Home key sends me to the top of the file, End to the bottom, It's making me go nuts.

How did you Non-Mac programmers deal with that?
Logged

Working on HeliBrawl
Jason Bakker
Level 2
**


View Profile WWW
« Reply #125 on: October 20, 2009, 04:35:33 PM »

How did you Non-Mac programmers deal with that?

I just sucked it up like a man Cool

Seriously though, I dunno. I was prepared when going into XCode that I'd have to do things differently, so I just... took it in stride? Tongue

These days I'm in Visual Studio during the day and XCode at night, so it does take a few seconds to mentally realign to the different IDE each time... but yeah, you get used to it!
Logged

Zaid Crouch
Level 0
***


*doink*


View Profile
« Reply #126 on: October 20, 2009, 04:56:00 PM »

Btw! Talking about XCode... I fricking hate Macs.
I can't write code with the keyboard layout! Denied!

I hooked a Windows USB keyboard but the Home key sends me to the top of the file, End to the bottom, It's making me go nuts.

How did you Non-Mac programmers deal with that?
As a predominantly mac user, I feel your pain, but backwards Tongue

Seriously though, I've always found modifiers+arrow keys so much more convenient and usable than home/end. Horses for courses, right?
Logged

Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #127 on: October 20, 2009, 05:05:19 PM »

I just sucked it up like a man Cool
:D Heh, but I'm used to using these commands (From Turbo C++ 3.1 days  Embarrassed):

Shift+Delete: Cut
Ctrl+Insert: Copy
Shift+Insert: Paste

Ctrl+Left/Right arrow: Skip whole words.

But Whoopsie!, no Insert key... just a "HELP" FUCKING BUTTON!  Hand Shake LeftAngry
And I have to remap the Command key to the Control key position (to at least save with Ctrl+S, +C/+V to copy paste... etc)... but then "Command"+Arrow is like Home/End ARsdfhkfh.

I downloaded Ukelele, a keyboard layout remapper, but it's a kick in the nuts trying to use it.

Fucking Steve Jobs... At least he didn't adopt DVORAK as his fricking standard Big Laff
Logged

Working on HeliBrawl
Gnarf
Guest
« Reply #128 on: October 21, 2009, 12:35:15 AM »

Visual Studio during the day and XCode at night

That sounds really batman.
Logged
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW
« Reply #129 on: October 21, 2009, 04:47:03 AM »

I hooked a Windows USB keyboard but the Home key sends me to the top of the file, End to the bottom, It's making me go nuts.

How did you Non-Mac programmers deal with that?

The Home-End thing goes all the way back to the days of the Apple II, and remote Unix terminals before that.  That's how the keys are actually supposed to work.  Just like how on a Mac control-C is still 'break,' while 'copy' is meta-C, just like it was first intended.
Logged



What would John Carmack do?
Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #130 on: October 21, 2009, 10:15:02 AM »

Hehe, thanks for the info, I didn't know that.

It's always easier to bitch about stuff Grin

Anyway, If anyone has an idea or knows how can I remap stuff (with an app or something), it'll be appreciated.

EDIT:
Quote
* PC style Home and End keys
http://doublecommand.sourceforge.net/features.html
Bitchin' Cool

Now I only need to find a way to map Shift+Delete/Command+Help/Shift+Help to Command+X/Command+C/Command+V respectively.
« Last Edit: October 21, 2009, 10:25:09 AM by nitram_cero » Logged

Working on HeliBrawl
Klaim
Level 10
*****



View Profile WWW
« Reply #131 on: October 22, 2009, 09:25:21 AM »

Quote
I didn't say 'dynamic', I said 'scripting'. 

I don't know any scripting is the role when you use it to make your application/game scriptable, dynamic is the nature of the language. AFAIK, all scripting languages are dynamic. If they are not, there is no interest in them to be used as a scripting language.

But that's another story.

Anyway all the dynamic languages share the same debugger problem. And VS + C++ allow too to change values "on the fly" while debugging. It just is slow to start, don't allow code injection or execution (edit&execute is possible only in few specific cases that are rare in game programming anyway). Other than that, it's really powerful.
Logged

Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW
« Reply #132 on: October 22, 2009, 11:13:43 AM »

XCode is nicer in general, although the lack of tabbed source files still bites. Grar!

I like Xcode because it doesn't have tabs.

The tabs drive me nuts in VC++/Dev-C++/Code::Blocks because it seems like I only have two options:

No tabs at all.

Open a new tab every damn time I look at a new file.

What is it with IDEs doing this?  Do people actually want that?  Surely I'm not the only person that wants a tab when I ask for it, and only when I ask for it, just like a web browser.

Or have I just been overlooking that option for years?
Logged



What would John Carmack do?
Matt Thorson
Level 7
**

c'est la vie


View Profile WWW
« Reply #133 on: October 22, 2009, 11:19:08 AM »

I was just looking at the proposed changes for C++0x and the auto and decltype keywords are going to be awesome.  No more ridiculous template shit just for simple type inference.
Logged

Martin 2BAM
Level 10
*****


@iam2bam


View Profile WWW
« Reply #134 on: October 22, 2009, 11:32:58 AM »

Quote
And VS + C++ allow too to change values "on the fly" while debugging. It just is slow to start
(...)
Other than that, it's really powerful.

But, let's say you want to set a matrix as a roto-translation one:

W/debugger execution: mat.loadIdentity(); mat.rotate(...); mat.translate(...);
MSVC: Bullshit!, you're not going to do all the calculations to set each array value.

I really like the "set next instruction" or whatever (That let's you jump back to the beginning of the function), sometimes is useful to set memory, but the edit & continue is a useless crap.


Open a new tab every damn time I look at a new file.

I hear you man xD. I just forget and use the Project window. Sometimes the IDE weirds up (showing squares instead of characters) because it runs out of GDI handles I guess... because having 200 tabs isn't very resource-friendly  :D

I really miss the "switch to header/source" from Visual Assist (by button or keystroke)
Is the only thing I need actually, now I have to search it on the project all the time. For big projects (60+ files) is pain.

I had it on MSVC6, but it doesn't work with MSVC 2008 express (and I ain't paying the pro version).

MSVC's IntelliSense is a piece of shit. 75% of the time it just can't figure out what the variable type is or where I'm standing. Visual Assist IntelliSense teared it's asshole apart, hey even FlashDevelop's is more badass than Microsoft's.


Regards!
« Last Edit: October 22, 2009, 11:40:19 AM by nitram_cero » Logged

Working on HeliBrawl
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW
« Reply #135 on: October 22, 2009, 11:55:27 AM »

Quote
And VS + C++ allow too to change values "on the fly" while debugging. It just is slow to start
(...)
Other than that, it's really powerful.

But, let's say you want to set a matrix as a roto-translation one:

W/debugger execution: mat.loadIdentity(); mat.rotate(...); mat.translate(...);
MSVC: Bullshit!, you're not going to do all the calculations to set each array value.

I really like the "set next instruction" or whatever (That let's you jump back to the beginning of the function), sometimes is useful to set memory, but the edit & continue is a useless crap.


Open a new tab every damn time I look at a new file.

I hear you man xD. I just forget and use the Project window. Sometimes the IDE weirds up (showing squares instead of characters) because it runs out of GDI handles I guess... because having 200 tabs isn't very resource-friendly  :D

I really miss the "switch to header/source" from Visual Assist (by button or keystroke)
Is the only thing I need actually, now I have to search it on the project all the time. For big projects (60+ files) is pain.

I had it on MSVC6, but it doesn't work with MSVC 2008 express (and I ain't paying the pro version).

MSVC's IntelliSense is a piece of shit. 75% of the time it just can't figure out what the variable type is or where I'm standing. Visual Assist IntelliSense teared it's asshole apart, hey even FlashDevelop's is more badass than Microsoft's.


Regards!

I just abandoned IDEs altogether.  I do most of my work on Linux now, with vim and a makefile.  I still use Xcode/Code::Blocks to organize and build the Mac/Windows versions of my projects, but I don't do any serious work in them anymore.
Logged



What would John Carmack do?
John Nesky
Level 10
*****


aka shaktool


View Profile WWW
« Reply #136 on: October 22, 2009, 12:07:46 PM »

I just abandoned IDEs altogether.  I do most of my work on Linux now, with vim and a makefile. 

Replace "Linux" with "Mac" and "vim" with "TextWrangler" and this describes me. Although when starting a new project I use shell scripts instead of makefiles, because they're a lot easier to write. I only switch to makefiles when the project gets big enough.
Logged
Brother Android
Level 10
*****


View Profile
« Reply #137 on: October 22, 2009, 12:27:42 PM »

This is kind of a silly thing to argue about if you think about it. Obviously, C++ works. It gets stuff done. It is very well adjusted for certain things. Some people even like the way it works, and use it to great effect to make software that does want they want it to do. So, how bad can it be?

Me, I thought computer science was chiefly concerned with whether stuff works or not.
Logged

rogerlevy
Guest
« Reply #138 on: October 22, 2009, 12:34:51 PM »

how bad can it be?

Uh-huh! uh-huh-huh, uh-huh-huh-huh!!!  Corny Laugh

It only has wasted countless hours of innocent programmers' time!

No big deal!
Logged
Chris Z
Level 7
**



View Profile WWW
« Reply #139 on: October 22, 2009, 01:15:09 PM »


Uh-huh! uh-huh-huh, uh-huh-huh-huh!!!  Corny Laugh

It only has wasted countless hours of innocent programmers' time!

No big deal!

Really?  If you're still struggling with a language years after learning it then I'd attribute that to training and not the language itself.

I agree with Jabberwock, I haven't really argued about language since I first got into programming.  Language is irrelevant and no one should marry themselves to only one.  You use the one that works for the task and solve the problem you set out to solve.  For game programming, most of the time that language will be C++ when high performance is concerned.  Business apps will likely use C#/.NET or Java.  Web programmers will stick with scripting languages or ASP.  Trying to force your favorite language on a task where it doesnt really fit well will only make your life more difficult.
Logged

Pages: 1 ... 5 6 [7] 8
Print
Jump to:  

Theme orange-lt created by panic