TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Deep H.
.Net developer with more than 6 years of experience in development
Tutor Satisfaction Guarantee
Web Development
TutorMe
Question:

What is Single page application? What are the advantages and disadvantages of single page application and we can avoid SPA architecture in Angular JS?

Deep H.
Answer:

A Single Page application is a form of architecture where we a single web page template and render multiple pages within the template page. The main advantage of using SPA is that we don't need to refresh or a round trip in the browser to open up different pages hence it saves time and data usage. SPAs are much faster than normal Web page applications. So the general question is if SPAs are so fast why not everyone is implementing SPAs on their website? The main reason why SPAs are not widely used because of one big drawback, the reason why SPA is faster is the same reason why crawlers from any search engine can only index the template the main file but not other pages as other pages don't stand alone as individual page but they are a subsection of the main template hence crawlers can't index them. If a website or web application is heavily dependent on Google search index for hits then it is not a good idea to use SPA. Even though Angular JS is widely famous for using SPA but if we still want to implement Angular JS without using SPA architecture then the best workaround would be to use express middleware in Node JS to help in routing web pages.

Javascript Programming
TutorMe
Question:

What is IIFE in JavaScript?

Deep H.
Answer:

IIFE refers to Immediately Invoked Function Expression. IIFE provides lexical scope using JavaScript function scope. In simple words, IIFE could be explained in JavaScipt as self-executing anonymous function. The function gets executed as soon as it is defined. IIFE helps in avoiding variable hoisting from within blocks thereby protecting the global environment. Example: IIFE is defined as below ----------------------------------------------------------- Structure of an IIFE: (function(){ // function code block }(); ----------------------------------------------------------- Example: var v, getValue; v = 1; getValue = (function (x) { return function () { return x; }; })(v); v = 2; console.log(getValue()); // 1 -----------------------------------------------------------

C Sharp Programming
TutorMe
Question:

What is the difference between Abstract Class and Interface?

Deep H.
Answer:

Abstract class ----------------------- An Abstract class is a special class in C# that cannot be instantiated but can be inherited in the child classes. An Abstract class can have fields, properties, and methods but it must have at least one abstract method. The abstract class allows other non-abstract methods to be defined within the abstract class but abstract methods or properties can only have declaration within the abstract class. The inherited child class must implement the declared abstract methods and properties. The abstract methods and properties in the abstract class and in the inherited class must have same access specifier as that of the abstract class. The child class can not inherit multiple abstract classes at the same time, meaning abstract class doesn't allow multiple inheritances. Abstract classes can't be sealed, as sealed classes can't be inherited which negates the main purpose of the abstract class. An abstract class can have a constructor. Interface ----------------------- The interface is an entity that has only the declaration but no definition. Interfaces contain only the signature of methods but no implementation. Basically, an interface provides a contract to any class, should it try to implement the interface. A class can implement multiple interfaces at the same time. All the members in an interface are public, members in an interface don't have any access specifier. An interface doesn't contain any field only method signature. The interface isn't fast when it comes to execution.

Send a message explaining your
needs and Deep will reply soon.
Contact Deep
Ready now? Request a lesson.
Start Session
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 Session" 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.