Closed Thread
Results 1 to 10 of 10

Thread: [HELP] Newbie Programmer

  1. #1
    tousif1988 is offline Newbie
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Red face [HELP] Newbie Programmer

    Hey guys,

    I am tousif and found this wonderful community while searching for some programming help. after seeing lots of good people and helping hands here i think my questions will be answered the best here.

    I have been trying to make some softwares or bots using c#. I have a good knowledge about c and c++ and after some search found that c# will suit me the best. Am i rite?
    I did lot of search but couldn't find the right place or right tutorial to make things i wanted with c#. My main aim is web based softs.
    For eg: ww*w.*addnewfriends.*com/ (please remove the *)
    I want to make something like this.
    What do you guys have to say about this? Where do you think I should start my programming venture.

    Any input will be much appreciated and thanked.

    Thank You

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    TriggerHappy is offline Learning Programmer
    Join Date
    Feb 2010
    Posts
    30
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Quote Originally Posted by tousif1988
    I have been trying to make some softwares or bots using c#. I have a good knowledge about c and c++ and after some search found that c# will suit me the best. Am i rite?
    Well as I see it, certain languages are better for certain things. Generally if I make anything with a GUI I will use C#. But for developing console applications I will probably just use ruby because of the ease of coding.

    Quote Originally Posted by tousif1988
    For eg: ww*w.*addnewfriends.*com/ (please remove the *)
    I want to make something like this.
    What do you guys have to say about this? Where do you think I should start my programming venture.

    Any input will be much appreciated and thanked.
    Well, I didn't go to the link but C# has some nice http and web libraries. So this shouldn't be too difficult. I wrote a chatroom bot for another site in C#, here is a piece of code that simply loads a page and returns the output (HTML);

    Code:
            string load_web_page(string url){ // loads a specific webpage
                
    WebClient client = new WebClient();
                
    client.Headers.Add("Cookie"cookie);

                try
                {
                    
    string ret client.DownloadString(url);
                    return 
    ret;
                }
                catch (
    WebException we) { return we.Message "\n" we.Status.ToString(); }
                catch (
    NotSupportedException ne){ return ne.Message;}
            } 
    The cookies part is optional.

  4. #3
    tousif1988 is offline Newbie
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Thank you triggerhappy. Your suggestion was a lot of help and i did a nightlong search on ruby and I think this is what i wanted.

    Thanks again

    Tousif.

  5. #4
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Looks like a web browser automation app. I posted some myspace automation code on here in Delphi:

    How to Log into Website Using Visual basic and retrive the information?

    That will log into myspace and change your bio. the same idea would enable you to automate a user search on myspace, navigate to each user and click "add as friend" with a predefined message.

    See what you think.
    Buzz PHP Class Library - Web Components Made Easy!
    http://www.buzzphp.com/

  6. #5
    tousif1988 is offline Newbie
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    thank you alienkinetics. Thats a cool application. I want to do something similar to that. So what do you think I should start with.

    Ruby is kinda cool. The fact that twitter is also made on ruby makes me excited. Can i make web browser automation with ruby because its easy to learn too.

  7. #6
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Ive looked into ruby, but I wouldn't use it for a Window's application. The IE web browser control is a ActiveX control, so you need a language that has COM/ActiveX support. Standard C/C++ does, but it is somewhat hairy.

    Delphi and VB are nice for this task because they both supoprt OleVariants and enable you to write "run-time binding" code, so you dont need to have the latest headers. Run-time binding is like JavaScript. The code will compile, and you only get an error when the code is run, and you get an error like "The method .... is not supported'. It also means a lot of VB/JS code will convert to Delphi with minimal changes.

    I dont know if Ruby has that kinda OS system support. C# might be a good choice, but I dont know how Ole works in C#. I know you can register the webbrowser control, but you need access to the DOM.

    I recommend Delphi if you have it, because of these free controls:
    Downloads EmbeddedWB

    You can try standard HTTP commands, but if the site uses cookies or relies on JavaScript submissions, then you can be stuffed. Again, I use Delphi because of the fantasic Indy Component Library, which has a great HTTP control.

    But, just be prepared to update your code a lot. It just takes a small change in the myspace site for your code to stop working. So, if you do make a site automation product, when your code detects exceptions being thrown, then you need to refer users to upgrade.
    Buzz PHP Class Library - Web Components Made Easy!
    http://www.buzzphp.com/

  8. #7
    tousif1988 is offline Newbie
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    hey alienkinetics, I followed your suggestion and have got delphi now. This software looks pretty cool and kind of attractive. lol. I am greatful to you for your advice.

    I just want one more small help. Can you suggest me a good site for tutorials on delphi or a good book or any video tutorials sessions.

    Thank you

  9. #8
    TriggerHappy is offline Learning Programmer
    Join Date
    Feb 2010
    Posts
    30
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Ruby has an awesome NET::HTTP Class, makes dealing with web-stuff a piece of cake.

  10. #9
    tousif1988 is offline Newbie
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    oh.....now I am kinda confused.

    To be true, Ruby still attracts me a lot. lol .

    Can you please guide me to some good tutorials for ruby. Maybe then I can decide which one to go for.

    Thanks again triggerhappy.

  11. #10
    TriggerHappy is offline Learning Programmer
    Join Date
    Feb 2010
    Posts
    30
    Rep Power
    0

    Re: [HELP] Newbie Programmer

    Well, ruby's documentation is all you really need for a tutorial;
    Class: Net::HTTP

    And if you're making console applications I would choose ruby. It's really easy to learn.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 08-31-2010, 05:22 AM
  2. Newbie programmer here
    By Xrythidon in forum Introductions
    Replies: 5
    Last Post: 07-06-2010, 08:42 PM
  3. Flowchart Help for Newbie Programmer
    By TKulak in forum Request Services
    Replies: 4
    Last Post: 04-19-2010, 07:20 PM
  4. Flowchart Help for Newbie Programmer
    By TKulak in forum General Programming
    Replies: 1
    Last Post: 04-19-2010, 08:36 AM
  5. Complete newbie to functional C++ programmer!
    By Icezizim in forum C and C++
    Replies: 2
    Last Post: 04-24-2007, 09:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts