Naming conventions – PHP

Here are the suggested naming conventions for Variables, Classes, Functions and Files. Naming Variables Use all lower case. Use _ to separate words, e.g. $green_color_value Use descriptive names (except loop …

Best coding Practices – PHP

Never put phpinfo() in the root directory Assignments in arrays may be aligned. When splitting array definitions onto several lines, the last value may also have a trailing comma. Never …

Node.js

How to enable v8 inspector for debugging and profiling? –inspect –inspect=<PORT NO> NodeJS is advised to be used for? Single Page Applications JSON APIs based Applications Data steaming applications Data …

Compile time & run time

Q1. Difference between Run time and compile time? A: To become an executable program, source code should be compiled into machine code. This compilation process is known as compile time. …

jQuery

Q: What is the difference between onload() and document.ready()? A: In a page, we can have only one onload function but we can have more than one document.ready function. Document.ready …

Javascript

Q1. What is JavaScript? A: JavaScript is a client side scripting language, that can be inserted into HTML pages and is understood by web browsers. Q2. What is ‘this’ keyword? …

MySql

Q1. What is the difference between Where and having clause? A: HAVING specifies search condition for a group or an aggregate function used in SELECT statement. HAVING is typically used …

Ruby On Rails

Q1: What does ruby name refer to? – Ruby on Rails A: Ruby names refer to the classes, variables, methods, constants and modules that help in the creation of the …

Magento

Q1. Explain Magento’s MVC architecture? Q2. What is EAV in Magento? Q3. How Magento ORM works? A: ORM stands for Object Relational Mapping. It is programming technique used to convert …