Definitions and explanations i wish i had when i was starting.
asynchronous action creator: In Redux, this action creator takes some amount of time to get its data ready to go. (Compare synchronous action creator.)
CRUD: Stands for Create, Read, Update, Delete. These are the four basic functions of persistent storage, i.e. in cases where you are using a database.
form_for: A Ruby method into which a Ruby object is passed. It creates a form directly connected with an ActiveRecord model. It yields a FormBuilder object that lets you create form elements that correspond to attributes in the model. Works well for CRUD forms.
form_tag: The most basic form helper available in Ruby on Rails. It uses tag form elements to build out a form. Unlike the form_for helper, it doesn’t use FormBuilder. Works well for forms not connected with models.
generators: In Ruby on Rails, generators can set up some basic, standardized code. They need to be matched to the appropriate task. The syntax is:
rails generate <name of generator> <options> -- no-test-framework
Main generators include: migrations, models, controllers, resources
Information Architecture: The structure for a website, application, or other project that allows us to understand where we are as users and where the information we want is in relation to our position.
middleware: Generally, some software that is used to connect or “glue” two other pieces of software together to reduce duplication and allow them to communicate, passing data back and forth.
In Redux: A plain JS function that gets called with every action we dispatch. Has the ability to stop, modify, or otherwise change actions. Many open-source middleware exist; the most popular use is dealing with async actions. Redux-Thunk is an example of this.
React directory: After using create-react-app, you will see several folders in your directory.
src - where we put all of the source code that we write
public - stores static files, like images
node_modules - contains all project dependencies
package.json - records project dependencies and configures project
package-lock.json - records exact version of packages installed
README.md - instructions on how to use this project
Redux: Redux is a state-management framework that can be used with different web technologies, including React. (From Free Code Camp).
Redux-Thunk: Relaxes rules around action creators by allowing them to return action objects or return functions.
scaffold: In Ruby on Rails, a scaffold goes beyond a generator by creating both front and back end code. They are discouraged in production because they create so much code and so many files they can be hard to manage. The resource generator will let you build out the base setup required but let you control the implementation. The basic syntax is:
rails g scaffold <capitalized singular model name>
<optional 1st attribute name>:<first attribute type>
<optional 2nd attribute name>:<2nd attribute type>
synchronous action creator: In Redux, this action creator instantly returns an action with data ready to go. (Compare Asynchronous action creator.)