Need suggestions on chat application

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Need suggestions on chat application

Post by raghavan20 »

Hi, I am thinking of making a chat application. I am wondering which programming language should I use to create the application. Please advise on the best language to be used and why do you think your preferred language should be used?

Do any of you know a good tutorial that would help me creating a chat application? I dont want ready-made chat application but I need some tutorial that would help me do it cos I want to program on my own.

I invite suggestions from you anything that would be relevant to the chat application development.

Thanks for your upcoming comments on the topic
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Just use a language that has the api/modules/extensions/classes ready for you. These days it's silly to write everything yourself, it's a matter of glue-ing the components together.

If you really want to be hardcore, lookup the relevant RFCS, i believe it starts at #1459 and start writing your own IRC class.
programmermatt
Forum Commoner
Posts: 65
Joined: Tue Mar 15, 2005 5:03 pm
Contact:

Post by programmermatt »

I don't think there are any good AJAX chats out there. Make it easily plugged into other apps, and you'll have one popular script.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

programmermatt wrote:I don't think there are any good AJAX chats out there.
Not sure it's AJAX or XMLhttp but http://www.e-messenger.net/ does MSN, AIM and Yahoo ;)
programmermatt
Forum Commoner
Posts: 65
Joined: Tue Mar 15, 2005 5:03 pm
Contact:

Post by programmermatt »

d11wtq wrote:
programmermatt wrote:I don't think there are any good AJAX chats out there.
Not sure it's AJAX or XMLhttp but http://www.e-messenger.net/ does MSN, AIM and Yahoo ;)
Should have specified, good OpenSource AJAX Chat implementations. And e-messenger does allow you to login to msn, aim (probably ICQ too) and Yahoo!, and I believe it to be an AJAX implementation, but not truly AJAX, but kinda. I have seen various other sites that allow you to login to messangers long before now and have seen many of them implement similar technologies to AJAX, but long before AJAX.

Anyway, what I was really hopeing for is an AJAX chat run off a single php script using a simple storage method, like a flat-file or DB, that could be easily extended. Every 500 ms or so the page would look for updates and the php script controlling would send from the last time code passed to it via post, and the additional text would just be appended. Problems might be making sure that no one else writes the file when one script is writing, making it highly optimal with minimal bandwith usage, and maybe a simple authentication method that allows it to be plugged into existing projects. Typing this up makes it sound so good I am going to take a stab at it this afternoon.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

Thanks for your views but I am still looking for suggestions to where to start from. Do you know any site links which have got sample chat applications? I hope you will come up with some links to good tutorials on making chat application.
AngusL
Forum Contributor
Posts: 155
Joined: Fri Aug 20, 2004 4:28 am
Location: Falkirk, Scotland

Post by AngusL »

If you can somehow get your hands on the second most recent DirectX 9 SDK, it had examples for writing a couple of simple peer-to-peer or server-based DirectPlay chat things in VB, C# (I think) and C++. Not sure if that's what you're looking for. I believe the most recent SDK got rid of the VB.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

Thanks for your suggestion and you provided me the information about the languages that can be used to develop chat application. I am still wondering are there any tutorials to develop chat applications.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

I am thinking of using Java to write a chat application? what do you think about using Java?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

It's really one of only two options you have (assuming you want to keep it web based and you want it to maintain an open connection).

You'll have to write a server side as well and that could be done in any language really (C++, C#, Java etc).

The client piece could be done in Java and included as an applet.

If you're not too concerned with retaining an open connection, look into XMLHttp or Ajax...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

A very long time ago (had to find it back via http://archive.org) i wrote a ChatProgram.. But be warned, the code is really ugly...

http://timvw.madoka.be/programming/java/ChatProgram.txt
thedamo
Forum Newbie
Posts: 9
Joined: Fri Jul 15, 2005 7:23 am
Location: Sydney Australia

php chat room

Post by thedamo »

Just use php, dhtml and xmlhttp object to create a real time chat room. It would mean the user doesnt have to download a java plug in and that they don't have to download the chat program to run..

However it would limit them to using IE, Firefox and Safari..

But that is what I would do :)
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: php chat room

Post by Roja »

thedamo wrote:Just use php, dhtml and xmlhttp object to create a real time chat room.
...
However it would limit them to using IE, Firefox and Safari..
Actually, Opera added some support for xmlhttp in 8. Its enough that it implements all the functionality in gmail, and apparently, upcoming betas extend it further.

So, xmlhttp isn't impossible on Opera, its just challenging.

Of course, you left out Konqueror, which handles it perfectly, and other smaller browsers (camino, iCab, etc) that all handle it just fine too. :)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

ok ok ok ok....I will post my chat application that I wrote in xmlhttp later today.

keep an eye out in the code snippets forum.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Post Reply