Author Topic: Standard Dialect of C and C++  (Read 12612 times)

Deranged

  • 68 Carbine
  • Posts: 409
Re: Standard Dialect of C and C++
« Reply #20 on: November 03, 2007, 05:25:03 PM »
Well. I don't like Java simply because you can't test if an int/double/any non-boolean is non zero without explicitly typing it.. (like if(someint) won't work, you have to type if(someint != 0), same with if(!someint)) Also I don't like the whole only allowing one public class per file thing.. things like that should be the programmer's choice not the tool's

That's why I prefer C# for my completely OO environment :)

y00tz

  • Autococker
  • Posts: 2742
Re: Standard Dialect of C and C++
« Reply #21 on: November 03, 2007, 06:18:02 PM »
Only one public class per file?  I'm not sure that limitation still exists.


It depends on what kind of tool you need, because Java is not quick.

When I think quick and dirty tool, I think, reusing my editor classes to conform quickly to whatever map, files, etc.  that I'm looking to work with, not quick as in OMG PONIES JAVA IS DA BEST!11111

Eiii

  • Autococker
  • Posts: 4595
Re: Standard Dialect of C and C++
« Reply #22 on: November 03, 2007, 06:23:06 PM »
C# isn't much better on the small/fast side. I love it millions of times more than java, but I wouldn't release an actual project in it (anymore).

y00tz

  • Autococker
  • Posts: 2742
Re: Standard Dialect of C and C++
« Reply #23 on: November 03, 2007, 06:28:19 PM »
Yeah exactly, a project would be reserved for the best language in terms of features and platform compatibility... but my point about Java was just that it was nice to use when you need it for something small, especially when you have no idea what platform it would be used on.  Nobody is going to agree or persuade anyone, so don't bother flaming this thread.

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #24 on: November 03, 2007, 07:05:17 PM »
Java is still the most "popular" programming language, thus you are more likely to have a job if you know it.

Yeah exactly, a project would be reserved for the best language in terms of features and platform compatibility...

Need any more be said :P


Cobo

  • Autococker
  • Posts: 1362
Re: Standard Dialect of C and C++
« Reply #25 on: November 03, 2007, 07:34:49 PM »
Solution: Learn all the languages.

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Standard Dialect of C and C++
« Reply #26 on: November 04, 2007, 07:13:23 AM »
* KnacK takes a peek @ the chart:

I didn't realise that visual basic was that high up on the ladder.
What's really amazign is that there is no mention of assembly or machine languages....
* KnacK is getting way too old...

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #27 on: November 05, 2007, 02:33:20 PM »
Man this chat went from me being able to understand what being said to blahhhhhhh.... Gotta read more I guess

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Standard Dialect of C and C++
« Reply #28 on: November 06, 2007, 04:07:58 PM »
Blame it on Java.  It's not quick and dirty, it's slow and dirty. ;)

I'm going to have to agree with eiii here on C#.  I've barely touched it, but it's pretty simple to use.  You can just drag and drop stuff on an interface and make it work.  It's good for learning the basics of programming, but I probably wouldn't release any projects with it due to the potential dependencies/overhead/compatibility issues.

S8NSSON

  • Autococker
  • Posts: 709
Re: Standard Dialect of C and C++
« Reply #29 on: November 06, 2007, 05:27:57 PM »
All programming is the same, short of assembler and register/stack hell.

It's all about the libraries, or writing your own!

Xirul

  • PGP
  • Posts: 8
Re: Standard Dialect of C and C++
« Reply #30 on: November 17, 2007, 01:01:49 PM »
ummm, unix is an operating system. ;D similar to linux.  so if you learned how code in c++ on a linux based system, the application would not run on windows. Thats why in the paintball 2 source there is the windows version to compile, and the linux version to compile. u can compile linux-based, or in this case unix-based applications on windows, just not run them.  they use different syntax.
-Cusoman

that's not true at all =/.

The syntax for C++ is the same, no matter the OS..  I liked C++ for Dummies to start off, personally.  Web tutorials ftl, books ftw!  Spend $20 =P

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Standard Dialect of C and C++
« Reply #31 on: November 19, 2007, 06:02:10 PM »
You can't copy/paste from books. :P

webhead

  • Committee Member
  • Autococker
  • Posts: 1185
Re: Standard Dialect of C and C++
« Reply #32 on: November 30, 2007, 02:13:50 AM »
* KnacK takes a peek @ the chart:

I didn't realise that visual basic was that high up on the ladder.
What's really amazign is that there is no mention of assembly or machine languages....
* KnacK is getting way too old...
yah, visual basic is out there more than some ppl realize.
and ... i think i might like to learn assembly some day :)

Blame it on Java.  It's not quick and dirty, it's slow and dirty. ;)
...
ACTUALLY... that's not necessarily the case anymore. [reference link]
but i'll give you this, one thing i hate about java is the gui it makes. that alone would make me want to use a language that can be compiled to natively run on a particular platform.

i haven't learned any c++ yet... but so far, i think i like C.
oh ... and PHP, but that doesn't count. ;)

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Standard Dialect of C and C++
« Reply #33 on: November 30, 2007, 11:29:19 AM »
*Assuming* those results are accurate, which are dubious in themselves (seeing the guy doesn't have much of a clue of what he's actually doing), the server JVM seems to be much faster, but the downside is that it uses more memory and takes longer to start up. The client JVM is already horrible at that, so I wouldn't want to use the server JVM anyway. The GUI libraries for Java also seem to be very bad; they're ugly, not native, don't refresh correctly, are slow to update, etc. etc. For most application, the faults in the GUI negate any optimization that may be available in Java.

PHP is an interpreted language, though it can do native GUIs easily. Downsides, besides not being compiled, are that there is no official support for multi-threading and that the runtime library is huge. However, I'd rather using a PHP program more than a Java program since its interface feels natural and not like a fake crappy attempt.

In other news, Actionscript is getting more prevalent now, with Apollo and all.

lekky

  • Autococker
  • Posts: 2449
Re: Standard Dialect of C and C++
« Reply #34 on: November 30, 2007, 01:35:06 PM »
PHP > Java. Good one sk89q. Ever heard of SWT?

webhead

  • Committee Member
  • Autococker
  • Posts: 1185
Re: Standard Dialect of C and C++
« Reply #35 on: November 30, 2007, 04:33:29 PM »
...
The GUI libraries for Java also seem to be very bad; they're ugly, not native, don't refresh correctly, are slow to update, etc. etc. For most application, the faults in the GUI negate any optimization that may be available in Java.

exactly what i was trying to say ... but worded better. :)

PHP is an interpreted language, though it can do native GUIs easily. Downsides, besides not being compiled, are that there is no official support for multi-threading and that the runtime library is huge. However, I'd rather using a PHP program more than a Java program since its interface feels natural and not like a fake crappy attempt.

In other news, Actionscript is getting more prevalent now, with Apollo and all.

Yah I've never tried out the whole PHP-GTK thing but it sounds sorta interesting.
and ... actionscript??? to make actual programs?? not Flash files??? hm.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Standard Dialect of C and C++
« Reply #36 on: November 30, 2007, 04:49:34 PM »
PHP > Java. Good one sk89q. Ever heard of SWT?

I didn't say PHP was better than Java. I was saying I would prefer using a PHP interface than a Java one.

Yes I have heard of SWT, and I am pretty sure I have used programs that used SWT. However, I have never, in my life, come across a Java program that actually successfully emulated the native interface. I don't program in Java, although I've learned it. When you use a Java program, you know it's written in Java. There shouldn't be a reason (other than startup time) that I should know that it's Java.

However, if you use Winbinder with PHP, there is no way to tell you that the program is written in PHP. Now, the toolkit was written in C, but that doesn't matter to me. It has the responsiveness of a program compiled to native machine code.

exactly what i was trying to say ... but worded better. :)

Yah I've never tried out the whole PHP-GTK thing but it sounds sorta interesting.
and ... actionscript??? to make actual programs?? not Flash files??? hm.

Macromedia/Adobe has been going to way of extending Actionscript into many different uses and platforms for several years now. The language has been completely revamped; Actionscript 3 is barely anything like Actionscript 1 other than the basic EMCA syntax. Performance has more than quadripled between incrementing versions of the Actionscript engine. Programming AS is now very object oriented and it fully supports the popular paradigms like model-viewer-controller, etc. Flex and Adobe AIR are two RIA frameworks that have come out recently that come to mind.

We're not to the point of ubiquitous downloadable Actionscript programs like Java has, but Adobe may be going there. With competition from Microsoft (esp. with Silverlight) and Java's own attempt with JavaFX, Adobe may choose to go in that direction. They have the resources and the existing community without all the stigma that Java carries. .NET is also the same, and Microsoft's Flash equivalent is Silverlight (but Microsoft has its own stigma with developers).

Garrett

  • Autococker
  • Posts: 1372
Re: Standard Dialect of C and C++
« Reply #37 on: January 15, 2008, 05:40:03 PM »
What would be a good compiler for this syntax?  What is the difference between that syntax and visual c++?
*Yes, I know I revived an old topic but it for more info on the topic, not responding to what someone else said.
y00tz will know the answer.

Eiii

  • Autococker
  • Posts: 4595
Re: Standard Dialect of C and C++
« Reply #38 on: January 15, 2008, 06:13:18 PM »
They're both the same, or they should be. Each compiler/IDE has it's quirks and such. Where do you see them being different?

Cobo

  • Autococker
  • Posts: 1362
Re: Standard Dialect of C and C++
« Reply #39 on: January 15, 2008, 06:18:30 PM »
He's talking about managed c++ and native c++. Visual c++ can compile both, but im guessing you dont know how to.

Managed c++ (which is what you are learning) is basicly c#, and its pretty different from native c++.

y00tz will know the answer.
I guess I beat y00tz.