You need some necessary skills to take full advantage of the workshop. In this challenge, we exercise some of these skills: git, basic GNU/Linux terminal, install and write the basic Ruby code.
Read all this README file, and follow these steps:
- Join the workshop event at Sympla;
- Fork this repository;
- Implement the missing code;
- Run tests and make sure they pass;
- Send the link of your cloned repository to [email protected].
Inside the directory /lib/
you will find these files:
- circle [TODO]
- geometric_base [DONE]
- rectangle [TODO]
- sphere [TODO]
- square [DONE]
- triangle_rectangle [TODO]
- smart_calculator.rb [DONE]
The purpose here is to implement correctly the methods that compose files tagged with [TODO]
. The files tagged with [DONE]
are already done, and you can read them to understand how to implement the other files.
Fork this repository
To learn how to fork a repository, access GitHub documentation fork-a-repo and click on All
tab
to see how to do it by the graphics interface.
Clone the forked repository to your machine
To learn how to fork a repository, access GitHub documentation cloning-a-repository and follow instructions.
You will need:
- Basic Linux commands;
- Technical English;
- Learn basic Ruby.
On Ubuntu, you can easily install Ruby with apt-get install ruby
. You can also use the RVM tool, and install ruby version.
Take a look on square as an example of implementation.
Also, there are many documentations that you can take a look to learn the basics of Ruby:
- https://www.ruby-lang.org/en/documentation/quickstart/
- https://www.tutorialspoint.com/ruby/
- https://devdocs.io/ruby~2.5/
- etc...
Implement the code.
To prove you were able to implement the challenge correctly in Ruby, you will need to run the following tests with:
$ ruby test.rb
If you run these tests before your implementation, you'll see some errors like this below, because you didn't implement the code yet:
After implementing the code, what we expect to see when running the tests is something like this:
Good luck, and Don't Panic!