Modern web programming
PLAN OF THE BOOK Thebook is organised as follows. Part I - The Front End: Structure and Style Chapter 1. The Web and How It Works. A short history of the web; clients, servers and the request–response cycle; HTTP and HTTPS; URLs; what a browser does with thecodeitreceives; static versus dynamicpages;thetools ofthe trade. Chapter2. HTML5: StructuringContent. Tags,attributesandtheanatomyofan HTML document; the head and its metadata; text, lists, links and images; semantic structure with header, nav, main, article, section, footer; tables done properly; forms in depth, with the HTML5 input types and built-in validation; audio and video; what changed since HTML4andwhat to unlearnfrom older material. Chapter3. CSS:StylingandLayout. HowCSSattachestoHTML;selectors,the cascadeandspecificity;unitsandcolours;typography;theboxmodel;backgroundsand borders;displayandpositioning;layoutwithFlexboxandGrid;responsivedesignand media queries; transitions, transformsandcustom properties; organisingastylesheet. Part II - JavaScript Chapter4. JavaScriptFundamentals. Values,variablesandtypes;operators;control flow; functions, arrow functions and scope; arrays andobjects; classes; modules; strict mode and modern(ES2015+)idioms. Chapter5. TheDOMandEvents. Thedocumentasatree;selectingandmodify- ing elements; creating and removing nodes; listening to events; event bubbling and delegation;formsandclient-sidevalidation;browser storage (localStorage). Chapter 6. Asynchronous JavaScript. Why the browser cannot wait; callbacks, promisesand async/await;fetchingwithfetch;JSON;talkingtoyourownPHPback end; errorhandling;asmall single-page application without a framework. Part III - The Back End: PHP and MySQL Chapter7. PHP8Fundamentals. HowPHPexecutesinsideawebserver;syntax, variables and types; operators and control structures; functions, named arguments and arrow functions; arrays; strings; classes, interfaces, enums and traits; namespaces and Composer;whatchangedfromPHP5to8.5. Chapter8. PHPfortheWeb: Forms,SessionsandSecurity. Superglobals;process- ing GET and POST data; file uploads; cookies and sessions; authentication basics; the security materialmost coursesleave out: escaping output,validating input, password hashing, CSRF,XSSand SQLinjection. Chapter9. MySQL andSQL.Relational databasesinbrief; creating databases and tables;datatypes;inserting,updatinganddeleting;queryingwith SELECT,joinsand aggregation;indexes; phpMyAdminandthe mysql client. Chapter10. PDO:PHPMeetstheDatabase. WhyPDOreplacedtheold mysql_* functions;connecting;preparedstatementsasthedefault;fetchingresults;transactions; errorhandling;a smalldata-access layer. Part IV - Modern Frameworks Chapter11. React. Whyfront-endframeworksexist;thinkingincomponents;JSX; props and state; the useState and useEffect hooks; lists and forms; fetching data; a small React application,builtanddeployed(React 19, Vite). Chapter12. Node.jsandExpress. JavaScriptoutsidethebrowser;npm;aminimal HTTPserver;Expressroutesandmiddleware;servingJSONAPIs;whentochoose Node overPHP. Chapter 13. Laravel: an Overview. The MVC pattern; routing, controllers and Bladetemplates;EloquentORM;migrations;validation;Artisan;onesmallCRUD application,end toend (Laravel 13). Chapter14. Symfony: anOverview. Symfony’sphilosophyandcomponents;rout- ing and controllers; Twig; Doctrine ORM; forms and validation; the same CRUD application rebuiltwith Symfony (7.4 LTS),for a side-by-sidecomparison. Part V - Workshops Chapter15. Workshops. Gradedlabexercisesforeverypartofthebook: HTML/CSS pagebuilding;JavaScriptinteractivity;PHP/MySQLmini-projects;andafinalproject: acomplete smallwebapplication, inthespirit ofthe original exam subjects. Appendices A.Settingupyourenvironment. XAMPP,orPHP+ MySQL+NodeviaDocker; VSCodeextensionsworthinstalling. B.HTMLandCSSquickreference. C.HTTP status
Avis des lecteurs
Aucun avis pour le moment.