1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C++ and... the web

Discussion in 'C, C++, C#' started by drey2k, Apr 30, 2009.

  1. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Hi guys,

    I'm real new to programming and just purchased a 1000 page C++ book. Just wondering how useful it is for making things for the web.

    What are some things I'd be able to do with C++?

    I just need to know because I also have an SQL/PHP book and wondering which one I should read up on first.

    Many thanks.
     
  2. abhi1

    abhi1 Power Member

    Joined:
    Feb 12, 2009
    Messages:
    680
    Likes Received:
    349
    Occupation:
    Student, Webmaster
    Location:
    Planet Earth
    C++ is an OOP language. its basically used to building apps.
    You sure can make web apps using it if you understand the websites API but it won't be easy.

    You should go with php/MySQL if you wanna get into webdevelopment
     
    • Thanks Thanks x 1
  3. jimbobo2779

    jimbobo2779 Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 17, 2008
    Messages:
    3,419
    Likes Received:
    2,457
    Occupation:
    Software Engineer
    Location:
    UK
    Home Page:
    I concur get used to playing around with PHP and mix in some MySQL and you're golden.

    C++ is not gonna be a whole lot of use to you in the web world unless you are looking to build a bunch of apps for web people using C++ but its such a nasty language to debug and find issues in. You would be much better off learning a language like PHP or C# for bulding web apps.

    C# and PHP just have so many libraries for dealing with web requests and databases as well as having their own 'garbage collection' meaning you don't really need to worry about the memory usage and clearing shit out of memory all the time.

    I know my explanation sucks but trust me if you are learning stick to PHP its just so quick to pick up and get results with.

    Jim
     
    • Thanks Thanks x 1
  4. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    So what is the difference between C++, C#, and C? This has always confused the hell out of me.

    Also, to make complex websites, what do I basically need to know? HTML + XML + PHP/SQL? Or would VB. NET be better to know?

    Thanks guys.

    I wish there was somewhere online where I could read up on what different languages are used for and which ones are better against the others...
     
  5. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Yea i would spend my time learning PHP if i were you. Depend what you would like to do...??

    Webdevelopment= PHP
     
  6. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Like say I want to make a trading platform (something like questrade)... what language would I need for that?

    Or say I want to make a regular website that just looks great and is interactive, like nba.com. What languages would I need to study for that?

    As I understand it, C++ is mainly useful for game programming and make standalone softwares right?
     
  7. MuonTrail

    MuonTrail Registered Member

    Joined:
    Mar 5, 2009
    Messages:
    96
    Likes Received:
    93
    Well, generally speaking C++ is C with object support. And C# is Microsoft's .NET'ish version of C++/C.

    And with HTML/XML + PHP + SQL + some Javascript, you can make websites as complex as you could want. I'd stick with learning those things. You can't go wrong with them, and practically any hosting company you go with will support them.

    EDIT: Yeah, C/C++ are generally used for standalone type programs.

    EDIT EDIT: In the end, it really comes down to familiarity with a given language. You could duplicate any website using any number of languages. It's really a question of: which language are you most productive with? If you're just starting out, I'd personally recommend sticking with php/sql/javascript. It'll get you familiar with a lot of the concepts which will make learning additional, more complex languages easier, if you decide you want to.
     
    • Thanks Thanks x 1
    Last edited: Apr 30, 2009
  8. thaorius

    thaorius Junior Member

    Joined:
    Aug 19, 2008
    Messages:
    109
    Likes Received:
    33
    C++ is a wonderful language to make whatever kind of application you need, specially real-time apps; however, for the web, there is no readily available CGI toolkit that provides you with all the needed "web features". Because of these, I would recommend you learn PHP(OOP) + Doctrine + Zend Framework, or some other framework combination.

    Also, take into account that the web usually requires minor changes all the time, and in C++ you would have to run make and there for the entire gcc build chain every change; this will impact badly on your programming time.
     
    • Thanks Thanks x 1
  9. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    php/sql/javascript are useless without having in depth knowledge of html/dhtml first though right? DHTML is what makes websites pretty and organized, correct?

    is XML really necessary to have?
     
  10. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    106
    PHP/SQL/Javascript are not so useless without indepth knowledge of html. You can pick up the html you need in a day. This would get you familiar. Plus, I would not recommend buying an HTML book. It will just waste your time. Search the web for a tutorial, the one a w3schools is great. Go through it, 3 hours tops, then go ahead. Then go to CSS tricks and check out their css/html page video tutorials to give you a clue of css.

    After that, create a PSD design transform it into a full webpage just like the video tutorial shows you. This should get you very comfy with html and css.

    Then go to the IBM website, there are very good php tutorials (Search this forum for the links I wrote about this some time last year). You will learn php in a day.
     
    • Thanks Thanks x 3
  11. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Thanks for the help.

    I already know a bunch about HTML.

    I used Dreamweaver quite a bit, although I can never get the CSS stuff to work properly...

    Basically the website I want to create is an online arcade. I'm trying to figure out the tools that I need for it.

    I will also need to create a sports website in the future.

    I kind of want to learn C++ because I work in the finance field and I have some ideas about financial softwares I would like to develop. I'm also really into gaming so knowing how to create games would be sweet as well.

    Again, thanks for the help.
     
  12. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    106
    Forget about games. Game programming is a very multi-dimensional field that you have to abort everything else you are doing and focus on game programming. If you are not going to see through, it is a waste of time to even try. It is definitely a good experience and ability to have.

    You can learn C++ to write financial software, and you will also be able write very small games at your leisure but not what you would actively call game programming. Almost every application programmer at one point or another wished they could write games, but they soon realised that if games weren't the only thing you cared about you would be able to create a descent game.
     
    • Thanks Thanks x 1
  13. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Well as I understand it, large scale games take large teams and months and months of work...

    I'm not saying I'm going to develop the next Crysis myself lol.

    But I definitely see what you're saying.

    Can you please also tell me about Python and C#? As I understand it C# is used for web development as well, and is used to create web apps. Would this be useful to learn?

    Python as I understand it is similar to Java (which I know nothing about). It can perform similar things to C++ right? I heard it similar to Perl too minus the GUI aspect.
     
  14. minute80

    minute80 Regular Member

    Joined:
    Dec 3, 2008
    Messages:
    310
    Likes Received:
    81
    Let me try to explain this togather with fellow blackhatters:
    With C you do low level stuff such as drivers and OSes. Lingua Franca for computer languages, but for our purposes pretty hard way to follow.
    C++ can do same stuff as C, but has lower set of libraries to support some features (by that I mean on Linux, Mac and Windows togather). However, it has become an industrial standard for desktop application development, like games and other performance related stuff. Also not very useful for bh purposes unless you plan to make trojans or high performance network related programs.
    C# is pretty limited IMHO in terms capabilities, however it is almost 100 % portable between Windows and Linux and in comparison to C and C++ has automatic Garbage Collector, which is a necessity if you plan to develop your stuff in time.
    All C languages are not suited for web application development. For that you need something that is supported by a large number of hosting providers, and that is, what has already been said, PHP+HTML+MySQL. There are also ways to develop PHP desktop applications, so you will not be limited if you decide to expand your development efforts.
     
    • Thanks Thanks x 1
  15. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Very helpful comments, thank you guys so much.

    Any comments on Python, Java, Perl, and Pascal?
     
  16. gundis

    gundis Newbie

    Joined:
    Mar 4, 2008
    Messages:
    42
    Likes Received:
    4
    Python is another scripting language like perl, php etc. I think many these languages were derived from c/c++. Once you know c/c++, it will be very easy to learn any of these languages.
     
  17. busterhymen

    busterhymen BANNED BANNED

    Joined:
    Aug 19, 2008
    Messages:
    99
    Likes Received:
    36
    i just read 2-3 comments since i did not feel like reading 15 of them, but i cant believe what I am hearing.

    READ C++!!!!!!

    anyone that knows c++ will be hired anywhere there is a computer/technology job.

    You can code your own apps like godcpa, SSM, CraigsCrawl, Troopal and many more. If i was not lazy i would keep learning c++ right now. Also you can sell those apps to others. Take a look at troopal, it was sold over 6k times!! for 300 a piece.
     
    • Thanks Thanks x 1
  18. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    557
    Likes Received:
    171
    Occupation:
    IM Master
    Location:
    USSR 1943
    Yea that's one thing that entices me about C++, potential to develop things on your own and profit.

    Although the same can be done with a good website.
     
  19. busterhymen

    busterhymen BANNED BANNED

    Joined:
    Aug 19, 2008
    Messages:
    99
    Likes Received:
    36
    not really. You can be the best php programmer alive and make nothing. PHP is not an advanced language. It has road blocks and a lot of things you can not do. If you make a good page in php you will get paid 2k one time fee since most people want custom websites. If you do a good C++ app and the person buys the source code it can be sold for upwards of 10k+.
     
    • Thanks Thanks x 1
  20. whywork

    whywork Regular Member

    Joined:
    Apr 3, 2009
    Messages:
    419
    Likes Received:
    223
    Occupation:
    Robin Hood
    Location:
    whyask?
    .net php c# java.... learn em all