adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · kohana: a lightweight php...
TRANSCRIPT
![Page 1: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/1.jpg)
adapted from http://www.thehotzoneonline.com/2008/10/31/happy-halloween-2/
![Page 2: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/2.jpg)
Gabor Bojar, founder and president of the Aquincum Institute of Technology (AIT), will make a presentation about AIT for students interested in computing, design,
computational biology, and IT entrepreneurship.
Pizza and small treats from Hungary will be served!
Thu 11/1, Maxwell Dworkin 123
![Page 3: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/3.jpg)
![Page 4: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/4.jpg)
cs50.net/lunch
![Page 5: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/5.jpg)
cs50.net/seminars
![Page 6: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/6.jpg)
cs50.net/rsvp
Android Apps (Now with Jelly Beans!), Jordan JozwiakICT4D: Technology for Good, Alisa Nguyen and Joy MingiOS: Writing Apps like a Boss, Tommy MacWilliamJavaScript Frameworks: Why and How?, Kevin SchimdjQuery, Vipul ShekhawatKohana: A Lightweight PHP Framework, Brandon LiuMake an Attractive Website with CSS, Ben ShyrockPattern Matching with Regular Expressions, John MussmanSurviving the Internet, Esmond KaneTechnical Interviews, Kenny YuUnix Shells, Environment, by Douglas KlineVim: Speed and Power at your Fingertips, Brandon Liu
![Page 7: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/7.jpg)
CSS
![Page 8: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/8.jpg)
twitter.github.com/bootstrap/
![Page 9: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/9.jpg)
PHPhttp://us2.php.net/manual/en/langref.php
![Page 10: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/10.jpg)
functionsmain
![Page 11: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/11.jpg)
conditionsif (condition){ // do this}else if (condition){ // do that}else{ // do this other thing}
![Page 12: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/12.jpg)
Boolean expressions
if (condition || condition){ // do this}
![Page 13: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/13.jpg)
Boolean expressions
if (condition && condition){ // do this}
![Page 14: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/14.jpg)
switchesswitch (expression){ case i: // do this break;
case j: // do that break;
default: // do this other thing}
![Page 15: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/15.jpg)
loops
for (initializations; condition; updates){ // do this again and again}
![Page 16: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/16.jpg)
loops
while (condition){ // do this again and again}
![Page 17: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/17.jpg)
loops
do{ // do this again and again}while (condition);
![Page 18: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/18.jpg)
arrays$numbers = [4, 8, 15, 16, 23, 42];
![Page 19: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/19.jpg)
variables$s = "hello, world";
![Page 20: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/20.jpg)
loops
foreach ($array as $element){ // do this with $element}
![Page 21: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/21.jpg)
associative arrays$staff = [ "foo" => "bar", "baz" => "qux" ];
![Page 22: adapted from ...cdn.cs50.net/2012/fall/lectures/8/week8w.pdf · Kohana: A Lightweight PHP Framework, Brandon Liu Make an Attractive Website with CSS, Ben Shyrock Pattern Matching](https://reader030.vdocuments.site/reader030/viewer/2022041009/5eb573b22636777925454618/html5/thumbnails/22.jpg)
to be continued...