Enable contrast version

Tutor profile: Vincent H.

Inactive
Vincent H.
Experienced Tutor - Software Engineer at Microsoft
Tutor Satisfaction Guarantee

Questions

Subject: Python Programming

TutorMe
Question:

What is a short-hand way of writing a simple for loop in python?

Inactive
Vincent H.
Answer:

Use list comprehensions. Example: l = [] for i in range (0, 100): if i % 2 == 0: l.append(i) Can be simplified to l = [i for i in range(0, 100) if i % 2 == 0]

Subject: Computer Science (General)

TutorMe
Question:

How is premature generalization bad?

Inactive
Vincent H.
Answer:

Premature generalization can lead to a more complicated and less performant product. For example, the overuse of interfaces vs concrete types. If there is no need to use an interface, using a concrete type will lead to better performance as the runtime can use the address of the concrete type which is known at compile time, rather than at runtime.

Subject: C Sharp Programming

TutorMe
Question:

What is the downside of awaiting on async methods?

Inactive
Vincent H.
Answer:

For each await call to an async function, an async state machine will get created with all the local variables in its scope. Many calls to the same async function will have memory impact as the state machines will allocate memory on the heap.

Contact tutor

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

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
© 2013 - 2021 TutorMe, LLC
High Contrast Mode
On
Off