Reading List

The Selfish Gene
The Psychopath Test: A Journey Through the Madness Industry
Bad Science
The Feynman Lectures on Physics
The Theory of Everything: The Origin and Fate of the Universe


ifknot's favorite books »

Tuesday 25 April 2017

LNMHH Towards A Full Stack Developer Jack-Of-All-Trades



LNMHH

LNMHH is my alternative solution stack to the archetypal LAMP model of web service stacks. Using the LAMP naming convention as an acronym of the names of its composing five open-source components it consists of: 
  • Linux operating system
  • Nginx HTTP Server
  • MySQL relational database management system (RDBMS)
  • Hip Hop Virtual Machine (HHVM) virtual machine designed for executing programs written in Hack and PHP

LNMHH is intended to be the modern, typesafe approach to building dynamic web sites and web applications.

Other supporting members of the cast are also included, not least of which is the excellent Hack Lang compatible editor Nuclide (built atop Atom) for its remote development strengths:
  • Nuclide client development environment for remote & local Hack projects
  • Nuclide server to enable remote development
  • Watchman utility that watches files/directories for changes and performs actions on change
  • Composer tool for dependency management in PHP Hack Lang
  • XHP extension to Hack for inline XML/HTML for custom and reusable HTML elements
The initial LNMHH test stack was set up on a Digital Ocean Droplet...



LNMHH Digital Ocean set up notes:


Ubuntu, Nginx & Mysql

Hip Hop Virtual Machine and Hack

**Seriously though

Nuclide for remote Hack development

  1. Install Nuclide client
  2. Install Nuclide server
  3. Install Watchman from source
  4. Use compile time configuration options
    --without-python        (Disable python bindings)
    --without-pcre            (Don't enable pcre support)
  5. Watch your Hack source folder 
    $ watchman watch ~/src
  6. Login from client and edit test file
  7. Take a snapshot

XHP inline XML/HTML for custom and reusable HTML elements 

  1. Install Composer
    *But do not do this bit -> sudo apt-get install curl php5-cli git
  2. Quick learn Composer
  3. Use Composer to install XHP
  4. Test it out
    (Don't forget to require vendor/autoload.php in your source file)
  5. Use Composer with your own stuff
  6. Take a snapshot

Tweaks






No comments:

Post a Comment