Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Best language for a project?

    Hi I'm hoping to build a program to complete a list of functions, I have no experience in programming and was hoping someone could push me in the right direction.

    I wish to create code that will go to a specific web page, store information from the page and then access a few links off the page and then gather information again. Sometimes there will be missing data and the number of instances will be different on each page too. I'm hoping that I can just use some kind of function that will load the whole page in a text format and then I can use a search function to point it to the areas it needs to look?

    When this information has been stored I wish to enter the information into a neural network. I'd like to store the information in a file (some kind of database), as while trying to optimise my network I'll be trying different inputs, transformations etc. i.e. using the data over and over again.

    I've been going through the basics of c++ this morning and was looking for methods to access the internet when I read something suggesting c++ was a difficult language to access the internet through? But I had been intending to use c++ for the actual neural network as I'd found a class for them in this language: http://www.codeproject.com/KB/recipes/BP.aspx

    edit: Basically I'm asking whether it is best to stick with c++, if my conjectured methodology is based in reality, and how can I store my information?
    Last edited by Calcyon; 08-05-2009 at 04:01 PM. Reason: questions

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Computer languages are just tools and you want to use the right one for the job. So it depends on what you are going for and your programming ability. If you have no programming experience, diving right into C++ will have a little steeper learning curve. You may want to consider C# which is a little easier to learn.

    Though no matter the language, having a project you want to do can help a lot towards learning programming.

    As to answer your question about accessing the internet, if you want to download webpages, I'd recommend using libcurl: http://curl.haxx.se/libcurl/ It will let you download the web pages from the internet.

    And you can use a variety of databases with C++.
    OracleGuy

  • Users who have thanked oracleguy for this post:

    Calcyon (08-05-2009)

  • #3
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hmm ok I'll carry on through my guides on c++ and then look at the corresponding c# ones and see what I think.

    libcurl looks ideal, thank you

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Location
    Panama
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Web Crawler

    This kind of web crawler app would be much easier to write in a higher level language such as PHP which is actually built for the job.

    If you're new to programming, get started with PHP. If you really need more power, look at C#. If you think you can handle C# but need more low level control, you can move to C++. If you are real control freak and don't trust libraries that make your life easier in C++ (curl, boost, log4cxx), you can learn C.

  • #5
    Banned
    Join Date
    Jun 2007
    Location
    Web Designer
    Posts
    321
    Thanks
    0
    Thanked 6 Times in 6 Posts
    C# or asp.net could be a better language to use in this case.

  • #6
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    Quote Originally Posted by everweb View Post
    This kind of web crawler app would be much easier to write in a higher level language such as PHP which is actually built for the job.
    PHP a higher level language? C++ is a high level language. Comparing C++ and PHP isn't even on the same level either. PHP is a server-side language used in web development. It can also be used as a scripting language.

    If the OP wishes to build a web page that collects the info for some kind of web presentation, then yes, I'd suggest PHP. However, this sounds more like a web crawler, and C++ is one of the top languages for that purpose. Look here at web crawlers, both restricted and open source. You'll see many of them are coded in C++ with Python (a scripting language), C and Java. One crawler from what I see was written in C#.

    Quote Originally Posted by everweb View Post
    If you are real control freak and don't trust libraries that make your life easier in C++ (curl, boost, log4cxx), you can learn C.
    C uses plenty of libraries also to make your life easier. Stating the above doesn't help the OP in selecting a language. Web crawlers are written in C also. As OG stated, it all has to do with what tool will work best for you purpose, and has nothing to do with not wanting to utilize libraries.

    Quote Originally Posted by it career View Post
    C# or asp.net could be a better language to use in this case.
    How so? You need to offer supporting material if you're going to make such a claim. Again, see the web crawlers linked above. C# was the least common language used, with C++, C, and Java being the highest. Does it mean that those 3 are best suited for the OP's needs? No, but it does at least offer some proof of concept and supporting evidence that others have found those languages to be the most effective.

    -Shane
    Last edited by TheShaner; 09-04-2009 at 08:34 PM.


  •  

    Posting Permissions

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