Cocktail By Ingredient

Cheers! I just finished building my first application. It has a command line interface(CLI) and uses an application program interface(API) to search for a cocktail by ingredient(CBI), pull the specs, and print them on the screen for you to use for your enjoyment. My background as a bartender inspired this idea, and with the help of my classmates and cohort leads it came to fruition. As simple as that sounds the process was much more complicated.

Over the past three weeks I’ve been learning to code using Ruby. Mostly learning basic ruby fundamentals and about object oriented programing(OOP). OOP was inspired by biology and the functioning of cells. There are four pillars of OOP; encapsulation, abstraction, inheritance, and polymorphism. Encapsulation bundles data and methods together into the form of classes, much like an individual cell. Abstraction takes complex processes and hides them. This makes the interface simpler and reduces the impact of change. Inheritance allows objects to share properties and methods. This reduces redundant code and helps implement another Ruby philosophy, don’t repeat yourself(DRY). Polymorphism allows objects to take on multiple forms. This is much like a person can be a parent, an employee, a sibling, and a friend. OOP allows objects to work together, share properties, simplify complex processes, and reduce repetition.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Weird Programming

A Technology Enhanced Model for Partnership Projects

How DevSecOps Can Replace DevOps To Offer Better Security

Man using power drill

Intro to Flutter for Android Developers

Accessibility as a design pattern

Wrangling with the GPU: Lessons Learned about Insidious Bugs

Protégé Mentorship Program, Mentober 1.0- Week 3

Java — java.util.concurrent.locks.Lock Interface | Code Factory

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Zachary Williams

Zachary Williams

More from Medium

Software Development Outsourcing — How to Choose? — Experts Zone Talks #15 |

Why Choose Custom Software Development?

Some React Core Concepts

No Code Web Design & Low Code App Design