Final Review - Everything Flashcards
These are all topics that we covered in class. Most of them are lifted directly from your resume! Focus on these first-- you should be able to talk confidently about all of these.
What is ASP.NET?
ASP.NET is a framework that allows us to create applications for the web. We build API’s and MVC applications in ASP.NET. The only thing we built in the server-side half of the course that DIDN’T use ASP.NET was our command line applications that ran in the terminal.
What is ADO.NET?
ADO.NET is a database interface tool that uses raw SQL to query the database. ADO.NET has very little magic/ abstraction. You have to write a lot of code, but it’s extremely fast.
Did you use .NET Core?
Technically no– .NET Core is the cross-platform framework for C#/.NET (cross platform just means you can build apps for OSX and Linux, not just Windows.) .NET Core was basically eliminated in .NET 5.0, which is what we used. Moving forward, all versions of .NET will be cross platform and we won’t need to distinguish .NET Core. https://docs.microsoft.com/en-us/dotnet/core/about
What is OOP? (See if you can name the four pillars)
Object Oriented Programming is a style of programming that uses objects to represent data in your code. The four pillars are inheritance, abstraction, encapsulation, and polymorphism`
What version control system did you use?
We used the command line interface for git for version control, and we used GitHub for collaboration. (Git is what tracks changes on your local machine, GitHub is a hosting service for git repos and allows you to make Pull Requests and stuff)
What is DRY code? Why is it best practice?
DRY stands for “Do Not Repeat Yourself”. This means that if you find yourself writing the same code more than once, you should refactor it into a function or method so that it’s reusable. This makes your code more efficient and much easier for other developers (and you!) to read and change.
What is an ERD? Why are they helpful?
ERD stands for entity relationship diagram. ERDs map the relationships between your tables in a database. They help the whole team get on the same page with data structure and provide a point of reference throughout the project.
What is the MVC design pattern?
MVC stands for Model, View Controller. We build MVC applications in ASP.NET, but a lot of frameworks use MVC. Models represent the tables in your database, views present that data to the user, and controllers are in charge of controlling the signal flow through the application– in our case, they accept HTTP requests from a client, query the database, map the data to our models, and then send it to the views
What experience do you have with SQL?
We used T-SQL (Microsoft’s specific flavor of SQL) with SQL Server. We primarily used SQL in tandem with ADO.NET, which is a database tool in .NET core and allowed us to write complex SQL queries to load data into our web applications.
What is a RESTful API?
RESTful stands for Representational State Transfer. Generally, this means that the API is in charge of representing the current ‘state’ of the database to the client. (The state of the database just means what data is in there at the time of the request.) A RESTful API sends data back as JSON. (Some other API architectures, like SOAP, send data back as XML.)
There are some technical rules that an API is SUPPOSED to fulfill in order to be considered truly RESTful, but very few actually fulfill all of them. The rules are from a guy named Roy Fielding’s dissertation. Amaze your friends and control your enemies with this information.
What are hooks in React?
Hooks are functions that allow you to “hook into” React state and life cycle features. So for example, we used “useState()” to manage state in our components and “useEffect()” to load data into our components after the initial render
How do you update the user interface in React?
In Vanilla JS, we might select the element with a document.querySelector() and then replace its contents. In React, we used useState() to set and change the state of the component. Changing state triggers a re-render, which updates the DOM to reflect the current state of the component.
What is the virtual DOM in React?
The virtual DOM is what makes React super fast! When you set state in a component, React constructs a virtual “copy” of the real DOM and compares it to the real DOM. It pinpoints what exactly needs to be changed in the real DOM, and then goes in and changes only those things.
(In Vanilla JS, we often had to clear the whole container and reprint everything, which caused the weird flash and slowed us down)
What are some data types we used in JavaScript?
The primitive data types in JavaScript are string, number, boolean, null, undefined, symbol. We didn’t work with symbols at all. We did work with composite data types, such as objects. Objects can hold combos of other types of data types. Technically arrays and functions are also types of objects in JavaScript.
What’s the difference between == and === in JavaScript?
A double equals will compare a string of “1” and a number 1 and find them equal through a process called type coercion. (JS will try to ‘coerce’ the string of “1” into a number.) A triple equals will find them not equal because they’re different data types. Triple equals is also called “strict equals”