1 00:00:00,000 --> 00:00:04,208 [MUSIC] 2 00:00:04,208 --> 00:00:07,920 [NOISE] PHP, a language belittled by many yet still used by millions of 3 00:00:07,920 --> 00:00:11,442 websites around the world to power about 80% of the internet. 4 00:00:11,442 --> 00:00:13,080 How does it manage this? 5 00:00:13,080 --> 00:00:17,290 Well, on one hand, it's very, very easy to knock out really simple websites. 6 00:00:17,290 --> 00:00:21,410 On the other hand, these sites can be insecure or have terrible code quality. 7 00:00:21,410 --> 00:00:23,780 To keep the benefits of PHP's ease of use, but 8 00:00:23,780 --> 00:00:27,590 improve our code quality, we can focus on standards and best practices. 9 00:00:28,830 --> 00:00:32,090 My name's Phil Sturgeon and I've been using PHP for over a decade, 10 00:00:32,090 --> 00:00:35,290 I've been involved with some popular open source projects like CodeIgniter, 11 00:00:35,290 --> 00:00:38,250 FuelPHP and Piracy MS. 12 00:00:38,250 --> 00:00:42,020 I've released code that is being used by Apple, Google, Facebook and 13 00:00:42,020 --> 00:00:43,990 the US government, all written in PHP. 14 00:00:46,290 --> 00:00:49,610 Over the years I've seen my PHP code go from terrible to reasonable following 15 00:00:49,610 --> 00:00:53,170 an awful amount of trial and error and a massive amount of research. 16 00:00:53,170 --> 00:00:56,530 These days PHP has a lot more high quality resources out there and 17 00:00:56,530 --> 00:00:59,040 we will look through a few of those to help us write better PHP. 18 00:01:00,580 --> 00:01:03,620 There are also some standards created by various bodies around the internet, 19 00:01:03,620 --> 00:01:08,170 like the IETF, who work on things like the HTTP spec, and W3C, 20 00:01:08,170 --> 00:01:10,210 who are responsible for HTML. 21 00:01:10,210 --> 00:01:13,443 Generally, it's a group of people who [SOUND] theoretically know a thing or 22 00:01:13,443 --> 00:01:16,845 two, who come together to hash out standards which everyone can then follow. 23 00:01:16,845 --> 00:01:20,561 Best practices and general advice is passed on from developer to developer to 24 00:01:20,561 --> 00:01:24,450 help people avoid common problems, things like interacting with data stores, 25 00:01:24,450 --> 00:01:28,700 caching, security, designing how you write your code, and anything else, really. 26 00:01:30,140 --> 00:01:32,950 Basically, in this video, we can help you skip a few months or 27 00:01:32,950 --> 00:01:36,380 years of getting things wrong with PHP, so you can get on with doing things right, 28 00:01:36,380 --> 00:01:37,410 like making awesome software.