Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Abhinanda Shri
Page 4 of 5
In JavaScript inheritance how to differentiate Object.create vs new?
In the first example, you are just inheriting amitBaseClass prototype.function SomeClass() { } SomeClass.prototype = Object.create(amitBaseClass.prototype);In the second example, you are executing the constructor function. An instance of amitBaseClass is created and you are inheriting the who complete amitBaseClass object.function SomeClass () { } SomeClass.prototype = new amitBaseClass ();So, both are doing separate work.
Read MoreWhat is the difference between "strict" and "non-strict" modes of JavaScript?
The “use strict” is a directive, which is a literal expression. It introduced in JavaScript 1.8.5. As the name suggests, “use strict” indicates that the code is to be executed in strict mode. Under non-strict, the code won’t execute won’t execute in strict mode.Let us declare strict mode. To declare, add the keyword “use strict” in the beginning. For global scope, declare it at the beginning of the script. An error would come, since you have used a variable, but forgot to declare it Press F8 to see the error. "use strict"; a = 1;
Read MoreInteracting SAP and Navision using 3rd party applications
There are many middleware tools that work as middleware for integrating different applications. There exists a vast variety of them but choosing a correct one is based on the applications being integrated.For integrating the third-party application with either SAP or Navision, you can use Apache Camel. Also, SAP provides a framework - SAP PI - SAP NetWeaver Process Integration.Lately, SAP Business One has emerged as the preferred choice for integration of third-party applications with SAP. It is highly preferred by developers as it provides vast options for handling various use cases. Its working is based on either of the two ...
Read MoreHow to use OR condition in a JavaScript IF statement?
To use OR condition in JavaScript IF statement, use the || operator i.e Logical OR operator. If any of the two operands are non-zero, then the condition becomes true.Here’s how you can use the operator || in JavaScriptExampleLive Demo var a = true; var b = false; document.write("(a || b) => "); result = (a || b); document.write(result);
Read MoreWhy do we use restrict qualifier in C++?
There's no such keyword in C++. List of C++ keywords can be found in section 2.11/1 of C++ language standard. restrict is a keyword in the C99 version of C language and not in C++.In C, A restrict-qualified pointer (or reference) is basically a promise to the compiler that for the scope of the pointer, the target of the pointer will only be accessed through that pointer (and pointers copied from it).C++ compilers also support this definition for optimization purposes, but it is not a part of the official language specification.
Read MoreHow can I use goto statement in JavaScript?
JavaScript goto statement is a reserved keyword. Generally, according to web standards it isn’t considered a good practice to use goto statement.Using goto with JavaScript preprocessing is still considered good as shown below.var a = 0; [lbl] beginning: console.log("Demo Text!"); a++; if(i < 424) goto beginning;The above code gets translated like the following −var a = 0; beginning: while(true) { console.log("Demo Text!"); a++; if(i < 424) continue beginning; break; }
Read MoreDifference between undefined, unspecified, and implementation-defined behavior in C and C++?
Undefined behavior is simply behavior that is not defined by the C++ specification. For example, if you have multiple unary increment/decrement operations in an expression like i++ + ++i, they result in behavior that is not defined. This is simply due to the fact that some language constructs are syntactically valid but you can't predict the behavior when the code is run. Another example is the expression: u = (u++);Implementation-defined behavior is behavior unspecified by the specification and left for the implementor to decide and document how the choice is made. In this case, the choice that is made must ...
Read MoreSAP Authorization concept and Authorization Objects, Object Class
To clear the air all at once, SAP Authorization Objects and Object Class has nothing much in common from Object Oriented classes and objects and differ vastly from it.Authorization object details the current user’s privileges which are used to authorize user activities and data availability. The Authorization Object is the place where configurations pertaining to permissions are set up and initialized against fields.An object class, on the other hand, is a grouping of Authorization objects. It may contain one or more than one authorization objects.
Read MoreDecoding SAP text from STXL.CLUSTD table
Accessing cluster tables in SAP is not recommended. If you set a direct access underlying database in SAP R/3 system, this option is not recommended as it will bypass all the security features in ERP system and open security threats the structural changes of the database. This also results in performance issues in SAP R/3 system. Also note that when you read the content of the mentioned table, it is required to know original source data structure.
Read More