Skip to content

Instantly share code, notes, and snippets.

View mattumland's full-sized avatar
😈

Matt Umland (he/him) mattumland

😈
View GitHub Profile

What does this PR do?

  • Displays volume discounts that are added on a Fastspring product. This occurs on the buy page, before items are added to the shopping cart.
  • Updates the fastspring_products.rb seeds to include a product with a volume discount
  • There's also a small update to app/views/layouts/_profile_navigation.html.erb due to a version update of the SBL script.

Background

While Fastspring handles volume discounts within the cart, we aren't reflecting those on our buy page

Manual Testing

double check your ENV

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions
  3. Comment a link to your forked copy on the original gist

Questions / Readings

What is a "data model", and how does it relate to the DOM in a front-end application?

  • The data model is the code that holds, manipulates and otherwise manages the state of a site. The DOM is populated using information stored within the data model.

What is a "framework?" And how does it differ from a "library?"

  • A framework is an environment imported into JS that defines a program's architecture. A library is imported code that adds functionality into JS.

Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?

  • Modularity, expanded syntax and functionality, improved synchronization between the UI and the data model/state.

What is a "component" in React? Why is it useful to have components?

Mod 3 Pre-Work

Instructional Pre-Work for Mod 3

Libraries and Frameworks

There are a bunch of JavaScript frameworks out there to use. At Turing, we choose to teach React - it's one of the most popular frameworks out there. Actually, a lot of developers will call React a library, which it is...but it can also be described as a framework. It's a little confusing, but the lines are blurred for React. Let's just say that React is a library with some rules and conventions to follow.

DTR: Define the Relationship

Project: RomCom

Group Member Names:

  • Matt Umland
  • Nikki Petersen

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):

  • Finish each iteration with level 3 or above.

MOD 0

When you've worked towards a goal in the past, what systems or tools have been helpful for you in accomplishing that goal? How could you adapt those same systems/tools to use while at Turing?

I benefit greatly from discussion with other people. The opportunity to talk through what I'm learning, bounce questions off people and restate content in my owns words helps me internalize. While I can't do this in person, I should always be open to relying on slack channels to get community support. Once I get in the flow of Turing I may try to set up some kind of regular video hang out with folks simply to create a feeling of being on a team.

As you start this new career, what is one of your strengths and how do you know?

_I am a quick study. I know this because I have needed to learn new often times fairly complex tools for my previous work with the start of each new project. I have often needed to become the local expert on technical matters or bespoke topics so that I can offer direction to a wider

Here are my Pairin results.