So that’s what RESTful means
Ruby/Rails day 6 plus the Binary Search Tree algorithm

I’ve literally googled “what is a RESTful API” tens of times, but for some reason, none of the very tech lingo heavy definitions stuck. Today while learning rails it became clear: RESTful routing (or a RESTful API etc) is simply a convention used by programmers to keep their API routes universal. That might be an oversimplification, but I don’t think it’s that far off. The routes stick to the basic CRUD (create, read/retrieve, update, destroy) routes. In rails, using RESTful routes is basically a necessity, because rails does so much of the work work for you. Anyway, that’s my tidbit for today.
Rails “magic”
Rails has some really “magical” commands, and that obviously has some pros and cons. The important thing here is, that (especially) for a new programmer, it’s really vital to understand what’s going on under the hood. The coding dojo platform does a really good job of breaking it down.
A couple of the super “magical” commands are:
- Scaffolding which basically creates a complete CRUD app based on a given model.
- Recourses. It’s slightly less magical than scaffolding but it’s still creates all of the CRUD routes in one command.
Binary Search Tree
In algorithms today, we went through the Binary Search Tree algorithm using nodes and the ES6 Class and Constructor keywords. We first went through a BST and printed every value and then went on to actually searching it. Maybe I’ll type up the code if I have some time.
That’s it for now. As always, happy coding!
I am looking for an opportunity to join and contribute to a tech team, and I’d love to chat. I’m on Twitter, LinkedIn, Medium, Github or plain old email @ leibelhecht@gmail.com. My Portfolio is at leibelhecht.com

