DELPHI

Any other programming language that is not covered in the Web Scripting category.

DELPHI

Postby orlando on Sat Aug 20, 2005 5:35 pm

Well as much as i can see there is a lot of you programming in C++ but as far as i'm conserned Delphi is much more powerfull language with simplier language structure than C. With smaller amounth of code you can do same, if not biger things than in C.
Also in version 7 is 100% cross platform with Kylix3 with their CLX components based on Qt libs... So you should definitely try it! Smile

Best regards!
orlando
Newbie
Newbie
 
Posts: 11
Joined: Sat Aug 20, 2005 4:47 pm

Postby bugalinux on Sat Aug 20, 2005 9:18 pm

Baaah... It depends what you code. If you code graphical interfaces, it's sure that Delphi is good. But if you code on lower levels (memory management, threads & process management for example... Euuuh tell me how do you do that things on Delphi...), C is better and faster.

I coded multi-thread socket servers used by several thousands embeded systems in C & i can't imagine the same thing coded in Delphi...
bugalinux
Contributer
Contributer
 
Posts: 52
Joined: Sat Aug 20, 2005 1:44 pm
Location: Paris

Postby Reth on Mon Aug 22, 2005 8:20 am

I use Delphi at school in my Programming class, and I completely agree with bugalinux. Although C is getting on a bit, it's definatly better for things such as servers which don't require a GUI, or more lower-level management (Horray for Memory Leaks! Twisted Evil )

According to my programming teacher, Delphi is the OOP (Object Orientated Programming (Read: GUI) ) language of Pascal. So, in other words, Delphi was built off Pascal, and added bits of Graphicalness to Pascal. Thought you'd enjoy that useless piece of trivia. Delphi is definatly better than using Visual Basic if you have to code on Windows based machines.

-Reth
Dream as if you'll live forever, live as if you'll die today.
Reth
Newbie
Newbie
 
Posts: 15
Joined: Mon Aug 22, 2005 8:05 am

Postby goncalopp on Thu Sep 08, 2005 11:13 pm

There is an good open-source socket library for delphi (and c++ too, i think) called indy out there. It lacks a bit on documentation but I could code an simple ftp client in 10 minutes or so. I've tried learning C, having heard it is a much more powerfull language, but it is certainly more difficult. In delphi, you drag-and drop this, double click here, write a single line, like "label1.caption:='Hello World;'", Hit F9, and voilá, you end up with a working application. Delphi takes care of the uses (#include), procedure declarations, finds syntax errors, bla, bla, bla... In C, you get a text editor, write the includes, the main procedure, "printf("Hello, world!\n"); return 0;", then you save the file, pass it throught the compiler, triple checking you have no errors in your code, and finally test it to see if it does what is expected... I got the C code from wikipedia, I don't even remember enough C to tell what the the !\n in the middle of the string means. Maybe I got such a bad experience with C because I didn't use an IDE. Maybe i'm just too used to work in delphi. Oh well... Confused
goncalopp
Newbie
Newbie
 
Posts: 7
Joined: Thu Sep 08, 2005 10:25 pm
Location: Student

Postby goose on Tue Sep 27, 2005 9:00 pm

Yeah , for some of us that started before the JAVA craze.. PASCAL was the first language taught to us.. So migrating into DELPHI isnt that hard for us. I still find my self programming in everything under the sun.. well hopefully not on a SUN. (not a fan of Solaris Sun Studio.. bit pricy)

http://www.sun.com/software/products/studio/index.xml

I just wish commercial hardware vendors that create "scripting languages" would actually give us something usefull.. Sad
goose
Contributer
Contributer
 
Posts: 69
Joined: Tue Sep 27, 2005 7:05 pm
Location: United States

Postby mm_freak on Thu Sep 29, 2005 3:35 am

Writing a centralized program is a waste of time in Delphi. For example a game. It's much easier in C++ while even having more control over what happens. The opinion that Delphi is more powerful comes from advertisement strategies of Borland.

bugalinux wrote:Baaah... It depends what you code. If you code graphical interfaces, it's sure that Delphi is good. But if you code on lower levels (memory management, threads & process management for example... Euuuh tell me how do you do that things on Delphi...), C is better and faster.


That's also not really true. You need a bit of planning before starting your project, and you need to use a good GUI-toolkit. For C++ there is GTK--, which is a C++ interface to GTK+.

Reth wrote:According to my programming teacher, Delphi is the OOP (Object Orientated Programming (Read: GUI) ) language of Pascal. So, in other words, Delphi was built off Pascal, and added bits of Graphicalness to Pascal. Thought you'd enjoy that useless piece of trivia. Delphi is definatly better than using Visual Basic if you have to code on Windows based machines.


You are misunderstanding the concept of OOP. Therefore I assume that your teacher has no clue, or at least has never used another language before. OOP means dealing with objects rather than with pure data types. It adds the ability to make your data types alive. It eases GUI programming a lot, but OOP itself has nothing to do with it. A server socket listening on the network can be an object of some class as well.

goncalopp wrote:I've tried learning C, having heard it is a much more powerfull language, but it is certainly more difficult.


It's not more difficult. It's just different. Give it another try. I've needed two tries, too, before I learned C/C++. =)

goncalopp wrote:In C, you get a text editor, write the includes, the main procedure, "printf("Hello, world!\n"); return 0;", then you save the file, pass it throught the compiler, triple checking you have no errors in your code, and finally test it to see if it does what is expected...


As you said yourself. Use an IDE and those problems are gone. You won't be draggin' and droppin' though.

goncalopp wrote:I don't even remember enough C to tell what the the !\n in the middle of the string means.


The '!' is literal and '\n' is an escaped character. It represents a line-feed.
I'm x^10 + x^8 + x^5 + x^4 + x^3 + 1, so don't mess with me!
mm_freak
Moderator
Moderator
 
Posts: 635
Joined: Sun Sep 11, 2005 12:29 pm
Location: Baden-Wuerttemberg (Germany)

Postby zapad on Mon Dec 12, 2005 2:26 pm

I am from Ukraine and Delphi knowlege here is useless.
If you want to get good work here you must know here thats :
c++(!!!) or php + mySQL or 1C. I think that Delphi is better
to leave for newbies which just began to learn programming .
And about OOP - the most of system written on pure c and asm
without any objects.
zapad
Newbie
Newbie
 
Posts: 5
Joined: Mon Dec 12, 2005 1:35 pm

Postby vukasin on Tue Feb 07, 2006 9:03 pm

whell
im in Cz and its almost same situation. everyone wants C, C++, and web programing, nobody is looking for Delphi programmers.

but, in all technical high schools, they teach you Pascal and then Delphi from first year. we started learning Asm, C and PHP in 3rd year, and that is quite late
(btw, im programing in C since i was 14, and asm since 15 (but, in that time, that wasnt programing, that was just trying))
just me
vukasin
Contributer
Contributer
 
Posts: 20
Joined: Tue Feb 07, 2006 7:56 pm
Location: Prague, Cz

Postby binex on Thu Feb 09, 2006 7:41 pm

why does it mather if a program is written in Delphi if it has better capabilites then a same program written in C? I live in Serbia, every programer is welcome here u just need to show ur work to the people and u will find a job easily...
binex
Newbie
Newbie
 
Posts: 4
Joined: Thu Feb 09, 2006 7:25 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron