newbie programmer

Status
Not open for further replies.

DaisyMan

Ars Tribunus Militum
2,135
Delphi is great. It's an fully featured variant on Object Pascal, with object-oriented and COM support that slaps VB silly. You can even pick up the Personal Edition for free at http://www.borland.com/delphi/personal/del6personal_keyanddown_steps.html; or go for the full Enterprise Trial to see all the neat stuff they pack in with it.

Oh, and stay away from C++, it's like coding with Stalin. :p
 

earl

Well-known member
3,066
Try C++; it's the industry standard industrial strength programming language. It has a concise syntax, object oriented and generic programming support, and runs fast. You can pick up free compilers form the gnu project or from Borland; it's speed and widespread support slap Delphi silly.

Stay away from Delphi; it's like programming with crayons. ;)

-earl-
 

Catfish

Ars Tribunus Angusticlavius
9,954
Hmmm. While I haven't touched Delphi in a couple of years (I've since moved on to VisualC++), I will say that it is extremely easy to slap together an interface with it. For that reason, it is very good. I'm currently struggling to learn the MFC classes in VC++ to put together an interface...
Borland are giving the personal edition of Delphi 6 away - it's a free download.

However, if you aren't interested in interfaces, and want to create games, then I'd go for C++, with OpenGL. Delphi runs with a bit too much overhead to do a lot of CPU-intensive stuff in it, particularly for an inexperienced coder that won't know how to optimise things best. Microsoft are giving Visual Studio.NET beta2 away for a £10 shipping fee.
 

-Triple-

Ars Tribunus Angusticlavius
8,554
Delphi's alright, I suppose. I've seen what DaisyMan and MrMills can do with it, so I know that it can effect real programs.

However, it just looked too much like PASCAL when I was playing around with it (I wonder why that is?).

I use C++ and Java regularly, depending on the project I need to get done.

Whether you pick C++, Java or Delphi doesn't matter to me. Just don't choose C# or VB!!
 

MrMills

Ars Praefectus
3,727
Moderator
Well, VoX, if you really want to learn programming, keep two things in mind:

1. Keep it fun.
2. Chicks dig graphical user interfaces.

If you don't keep it fun, you'll lose interest and programming will become something you do because it makes you money. That would be very sad. So if you start doing stuff and the frustration level starts to build, look somewhere else. Everything's a tradeoff between speed, power, and ease of use, so you can always sacrifice speed and power for ease of use, or vice versa.

At the same time, you don't want to learn bad habits. It's good to learn stuff like object-oriented programming right off the bat, and it's good to learn a solid set of standards to stick with.

Always keep your primary goal in mind: to learn to think like a computer. Once you can think like a computer, solutions will come naturally to you and you'll be a much better programmer.

And yes, this does mean that Delphi is a good choice. It keeps the frustration amount to a minimum by letting you do the big stuff, not the small stuff. It's got a nice form designer, so you can show off your programs to others. The programming language is much more English than C/C++ while remaining fully object-oriented. And there's a lot of good source code to learn from.

Delphi keeps programming fun, and that's why it's my favorite environment.
 
Slow. When I say slow, I mean really really really really really really really really really really REALLY REALLY REALLY slow.
Are you sure it's that bad? AFAIK you can compile it to native code, and it's pretty close the C++. The biggest difference (performance-wise) would be garbage collection. Maybe it's just that the compiler is still under development...
 
You'll probably want to end up using some industrial language like c++ eventually, but for now I'd say that basic and Pascal are more readable and easier to learn. My personal favorite language to start people with is Delphi (of course I'm biassed as I've taught Delphi as a TA for 2 years), it's a pretty good stepping stone towards Visual C++ if that's where you're heading.
 

-Triple-

Ars Tribunus Angusticlavius
8,554
Are you sure it's that bad? AFAIK you can compile it to native code, and it's pretty close the C++. The biggest difference (performance-wise) would be garbage collection. Maybe it's just that the compiler is still under development...

When I was experimenting with cs.exe a few months ago, it was horrendously slow. And by that, I mean really fucking slow! I can't begin to describe how slow it was! Their sample "Hello world!" app took 4 seconds to display on an 800MHz P3 running Windows NT 4.0.

I remember making an Excel spreadsheet of algorithm times in C++ (gcc), C++ (VC++ 6.0), C#, and Java (javac.exe). Unfortunately, I made this file at work and never emailed it to myself at home. I guess I could do it all over again and put it up on my site for you to see. I tested common algorithms such as radix sort, bubble sort, sequential sort, binary search, et al. Recursive algorithms such as the Eight Queens problem and the Towers of Hanoi. At that point in C#'s development, it ranged from around 25% to 300% slower than Java, which was outrageously slower than C++ (obviously).

Perhaps MS has shaped up since then--if so, I apologize for the false representation of the language.

However, such things as MSFT's decision to allow porting of .NET to BSD are just ploys. Though I respect their right to exist as a corporation and monopoly, and I respect their vast success by exploiting the stupidity of the masses, I have a moral objection to their current tactics. I'd go into a detailed argument but this isn't the Soap Box...
 

earl

Well-known member
3,066
AFAIK (and I'm sure PeterB as the resident MS evangelist will correct me if I'm wrong), C# can only 'compile' to .net intermediate code. As I understand, the only compiler the VS7 that can truly compile to native code is C++.

Personally, I'd say that C# / VB (preference to C#) are nice languages to write a GUI in and C++ is a nice language to get work done in. Not that C++ is that bad a language to create GUIs in; it's just that VS7 is *really* not what I wanted. I wanted a good, ANSI compliant C++ compiler and C#es form designer, except from C++.

Oh well... I guess there's always Borland or QT.

-earl-
 
Originally posted by -Triple-:

When I was experimenting with cs.exe a few months ago, it was horrendously slow. And by that, I mean really fucking slow! I can't begin to describe how slow it was! Their sample "Hello world!" app took 4 seconds to display on an 800MHz P3 running Windows NT 4.0.
That would probably be because it's having to load the entire runtime each and every time you load the application, and then unload it each time the application is finished.

I can guarantee that it is blazing fast on my machine (Framework beta 2, VS.NET beta 2, Win2K, yadda yadda).

I remember making an Excel spreadsheet of algorithm times in C++ (gcc), C++ (VC++ 6.0), C#, and Java (javac.exe). Unfortunately, I made this file at work and never emailed it to myself at home. I guess I could do it all over again and put it up on my site for you to see. I tested common algorithms such as radix sort, bubble sort, sequential sort, binary search, et al. Recursive algorithms such as the Eight Queens problem and the Towers of Hanoi. At that point in C#'s development, it ranged from around 25% to 300% slower than Java, which was outrageously slower than C++ (obviously).
You wouldn't be allowed to publish them anyway (read the EULA). But these results don't correspond with anything I've seen (which would order things C++ - C#/VB.NET/C++.NET - Java, though I haven't looked at performance in any serious way in beta 2 (though everything seems faster)).

I would say, C++ for heavy lifting, C# for the front-end. C# is a nice language, and will provide a good stepping stone to C++ (yay!) or Java (boo!).
 

-Triple-

Ars Tribunus Angusticlavius
8,554
my school is stopping the class for programming with C++ and it is replacing it with a java class.

AP is switching to Java at last? So that was only 3 years with C++ as the AP language? I think it was all PASCAL before 97-98 (ugh).

You know what's funny, though? Even though the STL existed in standardized form in 1997, the AP Board decided to code its own objects for use in classroom instruction and examinations. Yeah, that was truly intelligent :confused:

I would say, C++ for heavy lifting, C# for the front-end. C# is a nice language, and will provide a good stepping stone to C++ (yay!) or Java (boo!).

I personally dislike certain syntax anomalies of C#--such as the ref keyword (must avoid Englishization of programming languages) and other such departures from C++ standard (since I'm mostly a C++ guy). The read- and write-only properties (don't get me started on get blocks...) seem almost as if someone decided to apply an unneccessarily complex syntax upon a concept that can be easily grounded in the source itself. I also found myself using the unsafe keyword often.

I also have a serious problem with what I believe to be overuse of the object-oriented abstraction of programming. This is an argument nobody wins. At least in C# you can drop to C++, which you can't do in Java.

Of course, I have many nitpicks, but overall it's a somewhat decent specification. Has anyone else felt that due to the extreme similarity between C# and Java (don't deny it...), this might have been prompted by the bad blood between MSFT and Sun?

P.S.--spec's now in DOC format, no longer PDF. How the hell did they make such a huge document with such a clunky interface as Word?
 
I personally dislike certain syntax anomalies of C#--such as the ref keyword (must avoid Englishization of programming languages)
<span style="font-family: monospace;">for</span>, <span style="font-family: monospace;">while</span>, <span style="font-family: monospace;">if</span>, <span style="font-family: monospace;">true</span>, <span style="font-family: monospace;">false</span>, <span style="font-family: monospace;">class</span>, <span style="font-family: monospace;">struct</span>, <span style="font-family: monospace;">char</span>, <span style="font-family: monospace;">int</span>, <span style="font-family: monospace;">float</span>, <span style="font-family: monospace;">double</span>, <span style="font-family: monospace;">switch</span>, <span style="font-family: monospace;">try</span>, <span style="font-family: monospace;">catch</span>, <span style="font-family: monospace;">break</span>, <span style="font-family: monospace;">const</span>, <span style="font-family: monospace;">continue</span>, <span style="font-family: monospace;">do</span>, <span style="font-family: monospace;">mutable</span>, <span style="font-family: monospace;">friend</span>, and all the rest are already English words (or derived from them). This is a lost battle. C# is no worse than C++ in this respect.

and other such departures from C++ standard (since I'm mostly a C++ guy). The read- and write-only properties (don't get me started on get blocks...) seem almost as if someone decided to apply an unneccessarily complex syntax upon a concept that can be easily grounded in the source itself. I also found myself using the unsafe keyword often.
I have found that if I say <span style="font-family: monospace;">unsafe</span> then I probably need to stop thinking like a C++ programmer and remember that I'm not using C++.

And I wish C++ had properties. I think they enhance code legibility to a useful degree.

I also have a serious problem with what I believe to be overuse of the object-oriented abstraction of programming. This is an argument nobody wins. At least in C# you can drop to C++, which you can't do in Java.
The only real gripe I have is that <span style="font-family: monospace;">main</span> has to be inside a class, which I find counterintuitive. You can still write nice procedural code if you want, though.

Of course, I have many nitpicks, but overall it's a somewhat decent specification. Has anyone else felt that due to the extreme similarity between C# and Java (don't deny it...), this might have been prompted by the bad blood between MSFT and Sun?
I think that C# is closer to C++ than it is to Java -- and that any C++-like language is going to be Java-like to a reasonable extent. That is to say, could you make a C/C++-like language that didn't resemble Java?

P.S.--spec's now in DOC format, no longer PDF. How the hell did they make such a huge document with such a clunky interface as Word?
Maybe Master Documents. That's how you're meant to create large documents in Word.
 
D

Deleted member 12422

Guest
Maybe I missed it, but if no one mentioned it, I'd like to pop in my support for Borland C++ Builder. I actually have done 3-4 small apps in it, and I am quite fond of it. The actual dev environment is very similar to delphi, but the syntax is (of course) C++ instead of Object Pascal.

On that note, I like Delphi. It offers some things that Visual Basic doesn't (at least in version 6, the last one I fiddled with) such as statically linked apps (no dependancies) and is fully object-oriented.

YMMV, of course.

It's not free, but you can pick up an older version (or even newer) for fairly cheap off of ebay.

www.borland.com

-John
 
Status
Not open for further replies.