Or does it depend on the actual code used?
Web Programming - Page 2
Blogs > JieXian |
JieXian
Malaysia4677 Posts
Or does it depend on the actual code used? | ||
Integra
Sweden5626 Posts
On July 12 2012 14:26 JieXian wrote: Short question: when I click 'view source code' in chrome it's html right? Or PHP? Or does it depend on the actual code used? It's HTML and its the only thing along with Javascript you will see from the view source code. PHP/Java is being executed before the webpage loads so you will actually never see it from the view source. Example of html would be: <Html> <head> heading </head> <Body> <h1> this is a text</h1> </body> </Html> php would be: <? php $variable ="foo"; Define 'text' = 'excellent' if (!empty($variable && text)) { echo "this is " . $variable . "and " . text; } else { echo 'variables were empty so something didn't work as it was suppose to.' } ?> | ||
Deleted User 101379
4849 Posts
On July 12 2012 05:06 tofucake wrote: PHP is a shitbag and is quirky and annoying. I use it every day. Python is cool and all, but not really quite suited for web development. PHP has the advantage of being used just about everywhere; Python isn't as universal. IMO it's worth it to learn both eventually, but if you want to do websites specifically, PHP. Regardless which of the two you pick, you will need to learn HTML, CSS, and JavaScript This. PHP is a crappy, annoying and really bad language... but if you are looking to work in web development you need it since it's probably the most common web development language on the market eventhough even the PHP creator says "If you want clean code, PHP is not for you" (I think it was http://vimeo.com/13768954 around 1:03:00 - 1:05:00) Most companies that do Web Development have: * MySQL as database backend * PHP on the server side * JavaScript on the client side You need to know all 3 and of course HTML&CSS. MySQL is quite simple, once you get the hang of joins, subselects and such. It's not the best database in the world but it does it's job. PostgreSQL is more powerful but basically noone uses it. PHP is very similar to C - lots of basic functions are even called the same - since the creator originally just wanted PHP as a C abstraction. However, i strongly suggest using object oriented programming. Still, it's wierd scoping and it's very loose type system makes it annoying to work with. To interface with the MySQL backend, don't use the common mysql_* functions, use PDO or some database abstraction framework. JavaScript is a very misunderstood language. It's not really procedural like C or object-oriented like C++, it's actually a lot closer to functional languages like lisp or scheme and once you actually understand that, it becomes a lot easier. Once you are accustomed to the basics, use jQuery, it makes a lot of stuff very easy. | ||
JieXian
Malaysia4677 Posts
However given the fact that Youtube and Google use Python, does it mean something? Also, do any of you happen to have any recommendations for goos sites/guides/techniques to learn a language? I'll be searching for them but it'll be great if anyone has any good suggestions. I'm talking about sites which good way of slowly introducing new things btw. Thanks again | ||
Integra
Sweden5626 Posts
On July 13 2012 00:56 JieXian wrote: Thanks thanks and thanks everyone, very informative. I'll learn all of them (HTML, PHP, Python, Java, MySQL & CSS) since they are needed. However given the fact that Youtube and Google use Python, does it mean something? Also, do any of you happen to have any recommendations for goos sites/guides/techniques to learn a language? I'll be searching for them but it'll be great if anyone has any good suggestions. I'm talking about sites which good way of slowly introducing new things btw. Thanks again The big 3 is PHP, MYSQL and traditional HTML (which includes HTML/XHTML/javascript/CSS) learn those first, once you done that you will know if there is anything else you should learn. But go learn the 3's first, then you can see if there is something else you can complement it with. | ||
JieXian
Malaysia4677 Posts
| ||
| ||