Can you write a website in, c++ , c, c#, java ?

Discussion in 'Programming' started by SEOsocialFollowers, Nov 17, 2012.

  1. #1
    Can you write a website 100% with the languages above? and if you could, would it be slower or faster? if so why?


    Thank you
     
    SEOsocialFollowers, Nov 17, 2012 IP
  2. wrekoniz3

    wrekoniz3 Well-Known Member

    Messages:
    2,232
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Yes you can. using CGI Scripting.

    PHP is really a run off of C++ so when ever a page request is made the php is run, its compiled into c++ then into machine code. (I BELIEVE, Might be wrong) But that's my understanding of it.
     
    wrekoniz3, Nov 20, 2012 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,826
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #3
    Doesn't a lot of your question rely on the complexity of the website that's been written? Simple pages might be faster in one language whereas a really complicated site might be faster in another. I've only done a little bit with Java and it was a long time ago but it seemed bloated on simple tasks.
     
    sarahk, Nov 21, 2012 IP
  4. madskillsmonk

    madskillsmonk Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #4
    Its possible, however your better off just using the regular web scripting languages (PHP/Pearl/Python for backend, and Javascript/Jquery for front end). This is because in order to code a website (or anything, for that matter), you need big, bulky run-times that C++/C#/Java require. Most modern servers are not pre-installed with these libraries so unless you have a VPN that your hosting on, it will be difficult.
    I hope this helps.... its just my 2 cents :)
    Madskillsmonk
     
    madskillsmonk, Nov 21, 2012 IP
  5. traxport121

    traxport121 Active Member

    Messages:
    1,201
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    63
    #5
    It would be better if you write the site in PHP or Python. Though you can definitely use C++ or any other language. Facebook is written in C++ and PHP as well.
     
    traxport121, Jan 1, 2013 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    I'm surprised that no one caught this one yet. You're wrong. PHP is an interpreted language, not a compiled language, so it's not compiled (into anything). The code is interpreted, one line at a time, by the PHP "program" (it's an interpreter) running on the server. It reads a line, does what the line says, reads the next line, etc.

    As far as the OP, you can but you shouldn't. For many more reasons than would get me kicked off the site for listing and explaining.
     
    Rukbat, Jan 1, 2013 IP
  7. MS.USD

    MS.USD Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yes you can
     
    MS.USD, Jan 3, 2013 IP
  8. lolpasslol

    lolpasslol Peon

    Messages:
    860
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I can write with c# ,
    on .NET platform ,
    not only web site but also stand alone.
     
    lolpasslol, Jan 3, 2013 IP
  9. Peetter123

    Peetter123 Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #9
    For website development, we can use java as it is secure and very interactive.The graphical user interface of java is very strong the websites made through java is attractive and functional too and also runs fastly
     
    Peetter123, Jan 5, 2013 IP
  10. gnomee

    gnomee Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #10
    Yes, you could write in c# (asp.net or asp.net mvc) webpage. The principle is the same for windows forms / console apps, etc and for asp.net webpages but it's cheaper if you write in php, because for .NET developing you need license for visual studio and servers..
     
    gnomee, Jan 5, 2013 IP
  11. Adsystems

    Adsystems Greenhorn

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #11
    yes you can write a code to design a website in c++ by using some extra tools ,but it will need a lots of coding space and becomes more complex ,so better you use php or .net for web design.
     
    Adsystems, Jan 6, 2013 IP
  12. udores

    udores Member

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #12
    No! and Yes! you can. If you are talking in terms of using C++ and C your site would more appropriately be termed a DESKsite:) not a WEBsite, except your webhost server can host all the library code for both languages and at the same time provide you with tools for interfacing with them. However, you could use C++ to build just about anything on your PC or intranet.

    For C#, yes!. C# is extensively used with ASP in the dotNET platform, where you can use it to perform functions such as form processing, user authentication, data validation and many more on the
    server before sending them to your clients. However, it cannot run on your popular APACHE server but instead on a Windows IIS server.

    Java can be used to build applets that can be served up from just about any where on the web.
     
    udores, Jan 8, 2013 IP
  13. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #13
    First, I'm glad someone corrected the original information, the original comment was awful wisdom to impart.

    And, lastly, only because I'm a total geek ... not quite, one of the reasons PHP is apparently so fast ( and also quite CPU hungry ) is that it actually reads a script at once, as it does so it does not execute anything, but rather it builds an internal representation of the script known as opcodes, only when all the opcodes are loaded does execution actually begin from the top of the stack ( script ). Creating opcodes and their execution are infact two distinct stages in the execution of a script ...

    Mono ?

    C#/Java are commonly used to create websites. C is not meant to be used on the web, it's as simple as that in reality, many billions of man hours and even more billions of dollars have gone into the development and research of usable solutions, so use them.

    As for C++, it's technically possible, but a complete answer should mention that it's not advised. Internally some places may still use or maintain a C++ codebase and are forced to interface with it. But new projects are generally adopting the more modern C#
     
    krakjoe, Jan 8, 2013 IP