Enable contrast version

Tutor profile: Daniel P.

Inactive
Daniel P.
Senior Software Developer with adult teaching experience
Tutor Satisfaction Guarantee

Questions

Subject: Web Development

TutorMe
Question:

What does the MVC model provide when doing full stack web development?

Inactive
Daniel P.
Answer:

Conceptually, the MVC model (or Model, View, Controller) allows for separation of concerns. What this means is that each are of your code can do one thing and do it well. You don't have single files, classes, or sections of code trying to do all kinds of different actions, Instead, when a request comes in it hits your Controller layer, which is only in charge of making sure requests are directed to the correct place and responses are returned in the right format. From there, you will usually have a Service Class that deals interacts with your Model to return any relevant data to your Controller. Once the Controller has the data it needs, it calls up the View layer to determine how best to format that data to return to the client / user as a response. This MVC model makes perfect sense for running Server-Side rendered web applications, but how do you think it might change if you were using a front-end framework like React?

Subject: SQL Programming

TutorMe
Question:

How would I count the number of records in a table?

Inactive
Daniel P.
Answer:

SQL has a number of "helper functions" that you can use to do analysis on tables from within the SELECT section of your query. Consider [[ SELECT * FROM table_name; ]]. This will return all rows and columns table_name. If you wanted to do analysis you could run the query [[ SELECT count(*) from table_name; ]] which would return a count of all records in the table. Interestingly enough, you could also get the same result by running [[ SELECT count(1) from table_name; ]] Why do you suppose that is?

Subject: Javascript Programming

TutorMe
Question:

What is the difference between == and === in JavaScript?

Inactive
Daniel P.
Answer:

JavaScript uses something called Type Coercion in an effort to make programming easier. What this means is that you can compare different types of data, and JS could still decide they are similar enough to be considered the same. For example, if I have the string [[ "5" ]] and the number [[ 5 ]], comparing them with the expression [[ "5" == 5 ]] would return [[ true ]]. This is because behind the scenes JS will try to guess that the string can be interpreted as a number, and then evaluate [[ 5 == 5 ]]. If you wanted JS to act more "normal" and do less guess-work for you, you could always use [[ === ]] which ensures that not only will the values match, but they will be of the same type as well.

Contact tutor

Send a message explaining your
needs and Daniel will reply soon.
Contact Daniel

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by Zovio
© 2020 TutorMe, LLC
High Contrast Mode
On
Off