Learning Outcomes 17 March

The past few days I’ve looked into

  • How to read and write from a file in ruby
    In here I learnt about specifying the absolute and relative paths.

  • Splat Operator (*)
    This operator when used as as argument is used to declare an unknown number of arguments to be expected and converts them into an array. Conventionally written as *args.

  • Exception handling in ruby
    Here I learnt about the the rescue block and also how to raise exceptions whenever needed.

  • Converting a ruby app into a gem
    Here I learnt about packaging the application into modules.
    The .gemspec file and it’s necessary attributes like the name, version and files to include to the gem. It is also the file that is used to build the gem when fetching it from a source like GitHub.

  • Manually deploying a branch to Heroku
    I learnt about the config.ru file that acts as the entry file to run the application on Heroku. (Kind of like a Procfile)
    This file also allows you to fire up the server/run the App with the `$rackup` command.
    Also the `$git push Heroku <branch-name>:master` command that pushes/deploys the branch specified to Heroku master branch.

Previous
Previous

17th March, 2020 Output

Next
Next

Learning Outcome - Monday 16th March, 2020