This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why mark zuckerberg used c++ and java while making facebook even after using javascript,php,sql ?
06-16-2014, 01:09 PM
Post: #1
why mark zuckerberg used c++ and java while making facebook even after using javascript,php,sql ?
why mark zuckerberg used c++ and java while making facebook even after using javascript,php,sql ?
so whatt you are saying dewcoons is that we cannot make a site like facebook from php,javascript,sql,python ??

Ads

Find all posts by this user
Quote this message in a reply
06-16-2014, 01:23 PM
Post: #2
 
Javascript is designed to run from a user's computer. The entire script has to be downloaded to their computer and then it runs from there. That makes it very slow for running large programs (you would be waiting 45 minutes for your Facebook page to open) plus it is not very secure (everything is on that person's computer where they could steal the code.) So while it can be used for simple things, javascript would not be useable for something as large as the Facebook program.

PHP is a script language. Meaning it has commands for doing task and maintenance on your computer. But it lacks many of the features you would need to create a full blown program like facebook.

SQL only does one thing - manage databases. It does not have the ability to display graphics, etc. While Facebook uses SQL to access its databases, it needs more than just SQL to make a full web site.

Java is a full programming language and it is able to function on all platforms. So it is a good choice for creating web applications, A program written in Java will work on a PC, a MAC, Linux, etc. So it is often used for web apps. However it is slower than "C" because it is not compiled into machine code, but is read an interpreted each time the program is used.

So C is the best program to do all the behinds ths scenes, things. More powerful, faster, has more commands, and is secure. So that is what they use for most of the Facebook code.

Ads

Find all posts by this user
Quote this message in a reply
06-16-2014, 01:39 PM
Post: #3
 
Scripting and programming are two seperate things, applications, applets and programs (includign the servers' software to run everything that is facebook) are programmed. In otherwords, they are written in languages like C\C++, Java, C#, etc.. However everything related to generating what the users see is a resul of scripting. Scripting languages are programmin languages that programs use to execute actions that aren't pre-programmed in. Like Javascript, Php, Perl, etc.
Find all posts by this user
Quote this message in a reply
06-16-2014, 01:46 PM
Post: #4
 
c++ is used when you want performance. It is extremely fast. It is also the most difficult to use in that you need a good education and background in various computer science topics to be proficient in c++.

Java is for those not smart or educated enough to use c++, or too lazy to manage their own garbage collection. It is slow and bloated, and causes a lot of problems if the right jvm is not present. Write once run anywhere doesn't quite work like they would have you believe because the next thing you know java is updated or internet explorer is updated and your java apps don't run.

PHP is not a scripting language, it is a programming language that is moderately fast and quite capable. Unlike java that has to be downloaded to your computer and run on your computer, PHP runs on the web server, and it is only the results that get sent to your browser. Many websites are written in PHP. With PHP you usually use javascript as well as html/css. On the back end you would use a database, and mysql is quite popular.

Python I've not used much for the simple reason that I've never needed it. It's a handy scripting language, but between c++ and PHP, I've never needed Python.

Yes, you can make a full blown website using PHP. I do exactly that for a living, and it works very well.
Find all posts by this user
Quote this message in a reply
06-16-2014, 01:50 PM
Post: #5
 
how to get on facebook at school
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)