Skip to content

Instantly share code, notes, and snippets.

View dcoleman21's full-sized avatar

Dani Coleman dcoleman21

View GitHub Profile

The Problems (This is for Mac's with M1 chip)

  1. There was a conflict in two different installations (one being installed via the application, the other being installed via homebrew)
  2. Something else was running on port 5432
  3. Could not install pg gem

1. Completely uninstall Postgresql and start fresh.

  • Uninstalled postgresql using homebrew. You can use brew list to see all of the versions that you may have installed. (Note if you do have more than one version installed you will have to specify which version to brew uninstall)

Iteration 1

Use TDD to create an Employee class that responds to the following interaction pattern:

pry(main)> require './lib/employee'
# => true

pry(main)> bobbi = Employee.new({name: "Bobbi Jaeger", age: "30", salary: "100000"})
# => #<Employee:0x00007fdfd48af848...>

pry(main)> bobbi.name

Git and GitHub Commands Cheatsheet

Create a local repository

git init

Clone

This command will copy the project from the remote repository. (you will get this from the green CODE button on GitHub. SSH key)

Iteration 1

Use TDD to create a Passenger class that responds to the following interaction pattern. For the adult? method, a Passenger is considered an adult if they are age 18 or older.

pry(main)> require './lib/passenger'
# => true

pry(main)> charlie = Passenger.new({"name" => "Charlie", "age" => 18})    
# => #<Passenger:0x00007fc1ad88b3c0...>

API Jumpstart:

Consume an API:

Setup:

  • Ensure that faraday and figaro are added to gem file outside the testing block:
gem 'figaro'
gem 'faraday'

Rails Step By Step “Guide”

Start a new rails project:

Reference: https://github.com/turingschool-examples/task_manager_rails

This will start a new Rails App with postgresql as database and skip the usage of Spring and Turbolinks (method used in task_manager):

rails new task_manager -T -d="postgresql" --skip-spring --skip-turbolinks

What role does empathy play in your life and how has it helped you?

Empathy has played a huge role in my life. I have dissolved many of my own facades by becoming more connected and open. I feel as though I have always been more of an empath. I can just feel the energy of others. However, I truly believe that becoming empathetic towards myself has really been a big help for me in better connecting with others. I am learning that by knowing and understanding oneself more deeply, you can then relate more effectively with another. It breaks down this superficial barrier based on ego.

How does empathy help you build better software?

Prior to reading a few of those articles, I hadn't put much thought around empathy and technology development. Perhaps that is because I operate from that state often. Empathy helps build better software by constructing and developing from a place of understanding and connecting. I can have a great idea, in concept, but without gathering insight and perspective from the u

What is your greatest strength and how do you know?

I believe that my greatest strength is my ability to, most often, see both sides of the coin. In seeing things this way, I have noticed that others are drawn to me - I feel like a teacher at times. I am learning that when I can align myself to the place of the observer, with no attachment to 'right' or 'wrong', it opens a doorway to see things from a much broader perspective. I am learning that sometimes just listening and not feeling the need to inject my opinion allows me to understand better where another may be coming from. Then from that place of understanding, I can assimilate a response that takes into consideration everyone involved. It's just a feeling of knowing.

How do you work best?

I am both an audio and visual person. I appreciate being able to see what is being explained as this tends to help anchor it for me. I enjoy working in a small group setting as well. I like to be able to ask questions about things that I may not fully und