In this tutorial we will create the ability to upload an image, resize an image based on any defined pixels and whitelist file extension types to protect our database.
Let’s add the gems to our gemfile:
I had a hard time finding an explanation of all basic Big O concepts with practical use cases and code examples (ruby).
Each algorithm is broken down into 4 parts:
- Basic Definition (only what you need to know to understand the basics of this approach).
- Real life example (what you do in your daily life that mirrors this algorithm, reading a book, feeding your cat etc).
- Ruby code example (the most basic code example that I can think of).
- Other things you have done or may do in your programming day to day.