Poll

Yes or no ?

yes yes yes
just yes
no

Author Topic: Let's switch to C++ ?  (Read 6431 times)

0 Members and 5 Guests are viewing this topic.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Let's switch to C++ ?
« Reply #40 on: January 11, 2010, 08:32:56 am »
jrgp,
They're forgotten already. How old are you omg?

I'm 16. I don't think that's at all relevant to this discussion.

And you're wrong. The "only time to use c/c++ ever is when you need performance" is bulls**t. It's usually a matter of personal preference since not everyone is as lazy as you appear to be.
There are other worlds than these

Offline ramirez

  • Retired Soldat Developer
  • Camper
  • ******
  • Posts: 394
    • Soldat Central
Re: Let's switch to C++ ?
« Reply #41 on: January 11, 2010, 08:49:41 am »
What exactly are you trying to say anyway? I never said that C++ should be used as a scripting language for Soldat, in the contrary I said it shouldn't be used. All I was doing was making a point why exceptions are good for application design, and this isn't even exclusive to C++, it's just that in C++ you have to take some pre-cautions to prevent memory leaks. Plus a smart C++ programmer can write code where you don't have to worry too much about memory leaks, and can focus on getting the task done.

Also how old language is doesn't really say anything. Sure, C++ is an old language, but that doesn't make it bad. The standard has been updated, new functionality is being added even today. It's the industry standard in many areas for a good reason (games for one).

And don't take me wrong, I also enjoy programming in high level languages more. C# is probably my all time favorite language, and I even program in high level languages for living. But low level languages such as C and C++ definitely have their uses, and they're by no means obsolete. A good programmer picks the right tool for the task. :)

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Let's switch to C++ ?
« Reply #42 on: January 11, 2010, 09:04:49 am »
jrgp, laziness is needed for human beings. It saves a lot of time and helps you choose more important things.
Memory leaks(and thinking about them) spends your time. Just avoid it.

and yea, I thought you're one of these 30-40 year old guys who can't use newer languages, so they stick with the old ones.

Personal preference? You mean masochism? If there's no garbage collection my balls hurt.

ramirez, yes :)
but it doesn't really matter if it's updated even today.
Some time ago people were using spears to kill animals or fight. Nowadays you'll probably not want to hunt animals, because there's just no need to do that. Even if you'll want - you'll take a gun.
So does it mean that spears are useless because we have another, better weapons? Yes.
KAWAAAAAAAIIIIIIIIII

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Let's switch to C++ ?
« Reply #43 on: January 13, 2010, 11:09:41 am »
Neosano: you can write soldat scripts on Java right now simply using translator. Yet again, stop messing programming languages and scripting syntax.
How is it going to translate objects?
KAWAAAAAAAIIIIIIIIII

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: Let's switch to C++ ?
« Reply #44 on: January 17, 2010, 04:27:20 am »
What the hell? Ever heard of garbage collection? No need to blow your ass doing this s**t. Cmon It's 2010, do you know when C came out?

Please take note, that C++ is developed all the time. It's also the most efficient high-level language. Well, this also is about C++, not C like someone said before already. Damn, it doesnt matter at all WHEN a language has been written, it does matter how efficient it is!

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Let's switch to C++ ?
« Reply #45 on: January 18, 2010, 02:20:46 pm »
Lua would be much easier to implement into the Soldat Dedicated Server as a replacement to Pascal, but I do not expect even that to happen. Nobody should get their hope up.
TBH, I'm fine with pascal, except for a few limitations such as pointers and various other things I can't recall off the top of my head that are more major (classes are nice, but not completely necessary; although inheritance is helpful for stuff)

@ramirez Agreed in regards to dynamic libraries (possibly), and how forcing to C++ == bad.
I just happen to be a fan of Javascript and it's syntax, but do not have much experience with it. Speed reasons, I don't think it would be a bad thing to replace pascal though.

Argument for pascal:
everybody is already used to it ^^
maybe ability to have a script file determine what langauge is being used if another is to be implemented, but may be more of a pain to update functions (for enesce)

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: Let's switch to C++ ?
« Reply #46 on: January 18, 2010, 02:47:47 pm »
what about the idea to have binary files, wich will be loaded by the server instead of scripts. No compilcation would be more necessary, the code wont be needed to be published if the programmer want, and you can use ALL languages oyu want! :D

Offline Veritas

  • Camper
  • ***
  • Posts: 271
  • Waco
Re: Let's switch to C++ ?
« Reply #47 on: January 19, 2010, 05:42:44 am »
ramirez, yes :)
but it doesn't really matter if it's updated even today.
Some time ago people were using spears to kill animals or fight. Nowadays you'll probably not want to hunt animals, because there's just no need to do that. Even if you'll want - you'll take a gun.
So does it mean that spears are useless because we have another, better weapons? Yes.
Dearest Neosano,

Higher level and/or newer does not mean better.

Love,
An embedded programmer
DEHUMANIZE YOURSELF AND FACE TO BLOODSHED