Giter Site home page Giter Site logo

php-inferno's Introduction

The PHP Inferno

The PHP inferno is a guided set of exercises through PHP Hell. It is a cautionary tale about the features of PHP and how to use them safely. You will learn of the sins of the language and how to remain pious even in the darkest PHP codebases. The format is similar to the Ruby Koans, but has more long-form programming exercises, horrifying monsters and literary references.

PHP 5.4.9 and higher is required to begin.

Getting started

  • Clone the PHP Inferno to your local hellgate.

  • PHP 5.4 can be installed via homebrew and tapping the PHP homebrew Recipes.

  • In BASH or any terminal that supports ANSI coloring, run:

      >	cd php-inferno/
      >	php descent.php
    

A set of guided exercises through PHP Hell

Limbo -The beginning of your trip introduces you to basic PHP.

Lust - Arrays are PHP's most sensuous sinners.

Gluttony - Strings consume, regular expressions take all they can.

Greed - Classes want everything for themselves.

Anger - Callables in PHP can drive you into a rage.

Heresy - Type Juggling spits in the face of strong types.

Violence - Exceptions and errors in PHP brutally alter programs.

Fraud - PHP likes to misrepresent itself as entirely procedural, when that's not the case.

Treachery - The worst sins in the language, reserved for the lowest level of Hell.

Most of the circles end with a challenging exercise that will require everything you've learnt up until that point. It is worth noting that some prior programming experience will help you complete some of the more challenging questions.

php-inferno's People

Contributors

anthonybishopric avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.