Language/....

Questions about programming languages and debugging
Post Reply
User avatar
netw0rk
Newbie
Newbie
Posts: 4
Joined: 15 Apr 2008, 16:00
16

Language/....

Post by netw0rk »

Okay this has probably beeen asked over 1 million times, well i know it gets asked alot in most forums.

But,
This is not about a first time coder.
I am coding at the moment in PHP / MySQL and Ruby.
I am really into making IRC Bots. I can make them in ruby, but with php they are very unstable.

So what do yu guys suggest i learn next?

I would like it not to be interpretted, like Perl.
But i would like it compiler. Not too large of an exe.
Easy to learn, and console.

pretty much it.

btw, if you say a lang, could you hook me up with some links around here or something.

Cheers.

G-Brain
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 467
Joined: 08 Nov 2007, 17:00
16
Location: NL

Post by G-Brain »

Compiled languages are lower-level than interpreted (scripting) languages. It will usually take more code to do the same thing. Because the IRC protocol is mostly a plain text protocol, you could write a bot using raw sockets.

Coming from PHP and Ruby, I'd say C or C++. Google gives you results.

User avatar
netw0rk
Newbie
Newbie
Posts: 4
Joined: 15 Apr 2008, 16:00
16

Post by netw0rk »

Yes, i was thinking about going into one of those.
But when i saw an irc bot i was like 8O crap.
I have also thought about things like C#. C# has that horrible .Net framework, that i do NOT like.

So i guess i will have to just learn C, and stick with it.

I guess also, i will have to copy & paste, modify it etc, And eventually code it from ground up.

And mroe suggestions people?

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

Hmmm your bot doesn't need to have 100+ functions when you start in C/C++... Try doing a bot that respond to PING?

You migth want to use socket there. Please, don't use C#. You'll become lazy and its not portable( well there are tool to make it portable... but thats just not like C/C++) :)

**Edited:
Make sure to check this to... it's in PHP but you can easylly port it to C/C++
http://www.suck-o.com/modules.php?name= ... pic&t=3411
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
netw0rk
Newbie
Newbie
Posts: 4
Joined: 15 Apr 2008, 16:00
16

Post by netw0rk »

I cant accces that for some reason,

Thanks for advice and such though.

G-Brain
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 467
Joined: 08 Nov 2007, 17:00
16
Location: NL

Post by G-Brain »

netw0rk wrote:I cant accces that for some reason,
With two s's. And it's probably because of the www in the link, try removing that.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

in case you logged in by using http://suck-o.com and not http://www.suck-o.com the cookie is not valid for "www."... :wink:

Post Reply