Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Hazard on July 25, 2003, 09:17 PM

Title: VB Programming Tutorials
Post by: Hazard on July 25, 2003, 09:17 PM
I'm aware Cuphead wrote one such tutorial and I have read it. I'm wondering if anybody else has suggestions as to where to find a well-done bot-programming tutorial for VB. I tried searching for more threads on this if I missed them post them below and I'll look at them. Thanks.

!~!HaZaRD!~!
Title: Re:VB Programming Tutorials
Post by: hismajesty on July 25, 2003, 09:20 PM
http://botdev.valhallalegends.com

Edit: Why Not Also Sign Up For A Class Such As VB 101

http://forum.valhallalegends.com/phpbbs/index.php?board=24;action=display;threadid=2047;start=new;boardseen=1
Title: Re:VB Programming Tutorials
Post by: RhiNo on July 27, 2003, 03:32 PM
Talk to Stealth i guess he teaches people idk when or where but i know he does it in an aim chat room somewhere out there
Title: Re:VB Programming Tutorials
Post by: hismajesty on July 27, 2003, 04:32 PM
he teaches vb 201
Title: Re:VB Programming Tutorials
Post by: Dark-Feanor on July 28, 2003, 09:37 AM
I learned from
www.vbtutor.net (http://www.vbtutor.net)
Reading a book on it will also work. Something on the lines of Visual Basic 6 for Dummies. Also, the best way to learn the language is to play around programming in it, and to learn off of sources from www.pscode.com (http://www.pscode.com)
Title: Re:VB Programming Tutorials
Post by: Eternal on July 30, 2003, 01:20 AM
Beware of learning off sources. Sometimes they can help point you in a particular direction, but you can easily get sucked into sloppy programming habits etc.
Title: Re:VB Programming Tutorials
Post by: Dark-Feanor on July 30, 2003, 01:35 AM
Well it is the best way to learn such things as reading/writing to a .txt file. That most tutorials/books/leasons/means of learning do not cover.
Title: Re:VB Programming Tutorials
Post by: Eternal on July 30, 2003, 05:11 AM
I disagree. Again, sloppy coding, poor habits can be picked up by learning off people. Reading and writing to a text file was certainly covered in a book I read. I guess it depends on what book you get. <shrugs>

For example, one source I was asked to help someone with was opening and closing the same text file way too many times. They had copied it from someone else without really understanding what it did. After some minor modifications, it was only opened once on loading and once on saving/exiting. It's little things like that which can be easily missed if the coder does not understand the best ways to optimize their code.
Title: Re:VB Programming Tutorials
Post by: Soul Taker on July 30, 2003, 05:14 AM
On the flip side, if you get source from a coding guru, you can learn ways to code more efficiently.  I have learned many optimizations from other people's code.
Title: Re:VB Programming Tutorials
Post by: Eternal on July 30, 2003, 07:46 AM
Can't argue with that. You can learn some good things from others, particularly if you know the developer, or their work.
Title: Re:VB Programming Tutorials
Post by: Grok on July 30, 2003, 01:23 PM
Quote from: Eternal on July 30, 2003, 05:11 AM
I disagree. Again, sloppy coding, poor habits can be picked up by learning off people. Reading and writing to a text file was certainly covered in a book I read. I guess it depends on what book you get. <shrugs>

For example, one source I was asked to help someone with was opening and closing the same text file way too many times. They had copied it from someone else without really understanding what it did. After some minor modifications, it was only opened once on loading and once on saving/exiting. It's little things like that which can be easily missed if the coder does not understand the best ways to optimize their code.

Context can make a big difference, too.  The code sample you speak of could have come from a project in which one requirement was that the file only be opened when needed to read or write.  It could be that the file was shared among dozens of users, each required to wait for an exclusive lock to read+write.

This is why I emphasize to all you guys that there are often many "right" answers.  Even with equal requirements, projects can be solved in lots of different ways and all be approximately equally good.
Title: Re:VB Programming Tutorials
Post by: Eternal on July 31, 2003, 01:14 AM
I take your point. There's more than one way to skin a cat as they say. I guess some might be more 'efficient' than others, but they all get there  :)
Title: Re:VB Programming Tutorials
Post by: Styth on July 31, 2003, 01:23 AM
Would it be better if people learned QBasic first?
Title: Re:VB Programming Tutorials
Post by: Camel on July 31, 2003, 03:16 AM
Quote from: Geek on July 31, 2003, 01:23 AM
Would it be better is people would lear QBasic First?

I'm going to ignore the multiple gramatical errors in that question and just answer it:
Probably not. QBasic is so old that it would almost do no more good to learn it than it would to just learn VB. VB (version 6, that is) itself is already five years old.