Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the first 5 minute experience is really good in React at this point.

  npx create-react-app foo-app
  cd foo-app
  yarn start
In ~2 minutes (10 if you had to install node/npm/npx), you have a hot-reloading live site to play with.

That doesn’t make React great nor solve all of the issues that lie between minute 1 and v0.1 in production, but the startup is smooth and painless (for me who comes from C/C++/C#/SQL, and my javascript is at a level where beginners can still help me).



The first 2-minute experience with a Haskell web service:

  curl -L https://nixos.org/nix/install | sh
  
  cat > ./script.sh <<EOF
  #! /usr/bin/env nix-shell
  #! nix-shell <nixpkgs> -i runghc -p "ghc.withPackages (x: [ x.yesod ])"
  {-# LANGUAGE ExtendedDefaultRules #-}
  {-# LANGUAGE OverloadedStrings    #-}
  {-# LANGUAGE QuasiQuotes          #-}
  {-# LANGUAGE TemplateHaskell      #-}
  {-# LANGUAGE TypeFamilies         #-}
  import Yesod
  
  data App = App
  
  mkYesod "App" [parseRoutes|
    / HomeR GET
  |]
  
  instance Yesod App
  
  getHomeR = return $ object ["msg" .= "Hello!"]
  port     = 3000
  
  main = warp port App
  EOF
  
  chmod +x ./script.sh
  
  ./script.sh




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: