<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sharad Jaiswal on Medium]]></title>
        <description><![CDATA[Stories by Sharad Jaiswal on Medium]]></description>
        <link>https://medium.com/@Sharad35386442?source=rss-1b644f09c89f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ridWx13tGvIPzfmP.jpg</url>
            <title>Stories by Sharad Jaiswal on Medium</title>
            <link>https://medium.com/@Sharad35386442?source=rss-1b644f09c89f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:00:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Sharad35386442/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[InterviewMocks: Launched an Andriod App]]></title>
            <link>https://medium.com/@Sharad35386442/interviewmocks-launched-an-andriod-app-cab57750ec23?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab57750ec23</guid>
            <category><![CDATA[interview-app]]></category>
            <category><![CDATA[interview-questions]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Thu, 09 Apr 2020 17:33:10 GMT</pubDate>
            <atom:updated>2020-04-09T17:33:10.530Z</atom:updated>
            <content:encoded><![CDATA[<p>Dear readers, In last week we have launched and Mobile App for IT professionals where you can read comprehensive and description interview Questions and Answers for Top Programming languages and frameworks.</p><p>Our aim is to provide quality interview materials to Job seekers who are looking for job change or preparing for coding jobs.</p><p>We request you to review our app from the below link and provide your feedback.</p><p>Download Now: <a href="https://bit.ly/2xe5sKm">https://bit.ly/2xe5sKm</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*_P1IZukGL31BFyK3YNKAZQ.png" /><figcaption><a href="https://bit.ly/2xe5sKm">Interview Mocks: Best Interview Questions prep App.</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab57750ec23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Jquery Interview Questions With Answers]]></title>
            <link>https://medium.com/@Sharad35386442/10-jquery-interview-questions-with-answers-8d604a245dc9?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d604a245dc9</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Fri, 29 Nov 2019 09:48:52 GMT</pubDate>
            <atom:updated>2019-11-29T09:48:52.945Z</atom:updated>
            <content:encoded><![CDATA[<p>Frequently Asked Questions on Jquery Curated from Various Sources of Internet</p><h4>1. What is Jquery?</h4><p>jQuery is a lightweight, “write less, do more”, JavaScript library.<br>The purpose of jQuery is to make it much easier to use JavaScript on your website.<br>jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish and wraps them into methods that you can call with a single line of code.</p><h4>2. How can you use jQuery in HTML?</h4><p>You can use Jquery by including Below Script File through CDN.<br>&lt;script src=”//code.jquery.com/jquery-1.11.3.min.js”&gt;&lt;/script&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*JWkJRxhKUqiFrRvIRbwA5g.jpeg" /><figcaption><a href="https://www.courseya.com/jquery-interview-questions/"><strong>Jquery Interview Questions</strong></a></figcaption></figure><h4>3. What is the relationship between JavaScript and jQuery?</h4><p>Javascript is the language in which jquery was written. The simple answer to this question is Jquery is a framework over the javascript, which makes it easy to do tedious tasks in javascript to be done easily like dom manipulation, ajax request etc. You can obviously do everything that jquery does in plain javascript, but with a lot more lines in your code and you would have to handle many scenarios like browser compatibility on your own, which jquery does for you.</p><h4>4. What are the jQuery Ajax Events?</h4><p>There are 6 different jQuery AJAX Events. They are<br>1. ajaxStart()<br>2. ajaxSend()<br>3. ajaxSuccess()<br>4. ajaxComplete()<br>5. ajaxStop()<br>6. ajaxError()</p><h4>5. What is the difference between onload() and document.ready() methods?</h4><p><strong>Body.Onload()</strong> event will be called only after the DOM and associated resources like images get loaded, but jQuery’s <strong>document.ready() </strong>event will be called once the DOM is loaded and it does not wait for the resources such as images to be loaded.</p><h4>6. What is jQuery connect?</h4><p>jQuery connect is a plugin used to connect or bind a function with another function. Connect is used to execute the function from any other function or plugin is executed. Connect can be used by downloading jQuery connect file from jQuery.com and then include that file in the HTML file.</p><h4>7. What are the advantages of JQuery?</h4><p><strong>There are many advantages of using JQuery. Some of them are :</strong></p><ul><li>It is more like a JavaScript enhancement so there is no overhead in learning a new syntax.</li><li>It has the ability to keep the code simple, readable, clear and reusable.</li><li>Cross-browser support (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)</li><li>It would eradicate the requirement for writing complex loops and DOM scripting library calls.</li><li>Event detection and handling.</li><li>Tons of plug-ins for all kind of needs.</li></ul><h4>8. What is difference between .empty() vs .remove() vs .detach() in Jquery?</h4><ul><li><strong>.empty()</strong> method is used to remove all the child elements from matched elements.</li><li><strong>.remove()</strong> method is used to remove all the matched element. This method will remove all the jQuery data associated with the matched element.</li><li><strong>.detach()</strong> method is same as .remove() method except that the .detach() method doesn’t remove jQuery data associated with the matched elements.</li></ul><h4>9. <strong>What is the use of jQuery filter?</strong></h4><p><strong>Jquery filter() </strong>method returns elements that match certain criteria.<br>This method lets you specify the criteria. Elements that do not match the criteria are removed from the selection, and those that match will be returned.</p><h4>10. <strong>What is the double click event handler?</strong></h4><p>The dblclick event fires when a pointing device button (such as a mouse’s primary button) is double-clicked; that is, when it’s rapidly clicked twice on a single element within a very short span of time. dblclick fires after two click events (and by extension, after two pairs of mousedown and mouseup events).</p><p>Sources</p><p><a href="http://quora.com/">Quora.com</a></p><p><a href="https://www.w3schools.com/">w3schools.com</a></p><p><a href="https://developer.mozilla.org/">developer.mozilla.org</a></p><p>Read More <a href="https://www.onlineinterviewquestions.com/jquery-interview-questions/">Jquery Interview Questions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d604a245dc9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Different ways to do Ajax calls in JavaScript]]></title>
            <link>https://medium.com/@Sharad35386442/6-different-ways-to-do-ajax-calls-in-javascript-b47200fe7a38?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47200fe7a38</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ajax]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 14:51:45 GMT</pubDate>
            <atom:updated>2019-11-28T14:51:45.128Z</atom:updated>
            <content:encoded><![CDATA[<p>There are so many options in <strong>different ways to call Ajax in JavaScript</strong> that can improve user experiences drastically like submitting data to the server, checking the username, creating autocomplete form, voting, and rating, creating chat rooms, etc.</p><p>This article covers the information about the latest list of various options to make AJAX calls. To keep it simple, let’s focus on what they are, there some pros and cons of each option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3b022s2UAyhVAFLUtzhJg.png" /><figcaption><a href="https://www.onlineinterviewquestions.com/ajax-interview-questions/"><strong>Ajax Interview Questions</strong></a></figcaption></figure><h3>1. XHR</h3><p>XMLHttpRequest is an object such as (a native component in most other browsers, an ActiveX object in Microsoft Internet Explorer) that permits a web page to make a request to a server and get a response back without reloading the entire page. The user continues on the same page that is page did not reload, and more importantly, they will not actually see or notice the processing occur — that is, they will not see a new page loading, not by default at least.</p><p>Using the XMLHttpRequest object makes it possible for a developer to change a page earlier loaded in the browser with data from the server without having to request the full page from the server again.</p><p><strong>Performing GET request using XHR</strong></p><pre>const Http = new XMLHttpRequest();<br>const url=&#39;http://yourdomain.com/&#39;;<br>Http.open(&quot;GET&quot;, url);<br>Http.send();<br>Http.onreadystatechange=(e)=&gt;{<br>console.log(Http.responseText)<br>}</pre><p><strong>Performing Post request using XHR</strong></p><pre>var xhr = new XMLHttpRequest();<br>xhr.open(&quot;POST&quot;, &#39;/submit&#39;, true);<br>xhr.setRequestHeader(&quot;Content-Type&quot;, &quot;application/x-www-form-urlencoded&quot;);</pre><pre>xhr.onreadystatechange = function() {<br>    if (this.readyState === XMLHttpRequest.DONE &amp;&amp; this.status === 200) {<br>        // Request finished. Do processing here.<br>    }<br>}<br>xhr.send(&quot;name=Ketan&amp;id=1&quot;);</pre><h3>2. Fetch API</h3><p>Fetch API is the new choice to XMLHttpRequest for getting resources from the server. Unlike XMLHttpRequest, it has a more powerful feature set and a more meaningful name. Fetch is also flexible and easy to use because of its syntax and structure. However, the thing that sets it apart from other AJAX HTTP libraries is that it is supported by all modern web browsers. Fetch follows a request-response approach where Fetch makes a request and returns a promise that resolves to the Response object.</p><p><strong>Pros of using Fetch API</strong></p><ul><li>It’s flexible and easy to use</li><li>Callback hell is avoided by Promises</li><li>Supported by all modern browsers</li><li>Follows request-response approach</li></ul><p><strong>Cons of using Fetch API</strong></p><ul><li>Doesn’t send cookie by default</li><li>CORS is disabled by default</li></ul><p><strong>Performing GET Request in Fetch API</strong></p><pre>fetch(&#39;https://www.yourdomain.com&#39;, {<br>        method: &#39;get&#39;<br>    })<br>    .then(response =&gt; response.json())<br>    .then(jsonData =&gt; console.log(jsonData))<br>    .catch(err =&gt; {<br>            //error block<br>        }</pre><p><strong>Performing POST Request in Fetch API</strong></p><pre>var url = &#39;https://www.yourdomain.com/updateProfile&#39;;<br>var data = {username: &#39;courseya&#39;};</pre><pre>fetch(url, {<br>  method: &#39;POST&#39;, // or &#39;PUT&#39;<br>  body: JSON.stringify(data), // data can be `string` or {object}!<br>  headers:{<br>    &#39;Content-Type&#39;: &#39;application/json&#39;<br>  }<br>}).then(res =&gt; res.json())<br>.then(response =&gt; console.log(&#39;Success:&#39;, JSON.stringify(response)))<br>.catch(error =&gt; console.error(&#39;Error:&#39;, error));</pre><h3>3. jQuery</h3><p>jQuery is a client-side programming language you can be used to create cool and amazing web applications. It’s free, yet powerful, comparatively easy to set up and learn, and it has multiple extensions and plugins available to do anything you could imagine or think off. You can get started quickly, and you won’t outgrow it later when you get really good at it.</p><p><strong>Pros of using Jquery</strong></p><ul><li>The greatest advantage of jQuery is its simplicity.</li><li>It is also incredibly flexible because jQuery allows users to add plug-ins.</li><li>It is also a very fast solution to your problems. While there may be “better” solutions, jQuery and its development teamwork to make sure you can implement jQuery quickly and effectively, which saves money.</li><li>Open-source software means quick growth and the freedom of developers to provide the best service possible without corporate red tape.</li></ul><p><strong>Cons of using Jquery</strong></p><ul><li>It is also, frequent updates mean community members are also unlikely to provide solutions.</li><li>There are also multiple varieties of jQuery available currently and some are less compatible than others.</li><li>Sometimes jQuery is slower compared to CSS in some cases. At that time its simplicity becomes a curse, as it is not meant for client-side interactions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*JWkJRxhKUqiFrRvIRbwA5g.jpeg" /><figcaption><a href="https://www.courseya.com/jquery-interview-questions/"><strong>Jquery Interview Questions</strong></a></figcaption></figure><p><strong>Performing GET Request in Jquery</strong></p><pre>$.ajax({<br>    url: &#39;/users&#39;,<br>    type: &quot;GET&quot;,<br>    dataType: &quot;json&quot;,<br>    success: function (data) {<br>        console.log(data);<br>    },<br>    error: function (error) {<br>        console.log(`Error ${error}`);<br>    }<br>});</pre><p><strong>Performing POST Request in Jquery</strong></p><pre>$.ajax({<br>    url: &#39;/users&#39;,<br>    type: &quot;POST&quot;,<br>    data: {<br>        name: &quot;Ipseeta&quot;,<br>        id: 1<br>    },<br>    dataType: &quot;json&quot;,<br>    success: function (data) {<br>        console.log(data);<br>    },<br>    error: function (error) {<br>        console.log(`Error ${error}`);<br>    }<br>});</pre><h3>4. Axios</h3><p>Axios is one among many available promise-based HTTP client that works both in the browser and in a node.js environment. It basically provides a single API for dealing with XMLHttpRequest s and node’s HTTP interface. Apart from that, it binds the requests using a polyfill for ES6 new’s promise syntax.</p><p><strong>Advantages of using Axios</strong></p><ul><li>Out-of-the-box Promise support</li><li>Client-side support for protecting against XSRF</li><li>Can capture requests or responses before they are carried out.</li><li>Automatic transforms for JSON data</li><li>Supports Promise API</li><li>Can set or cancel a request</li><li>Can set a response timeout</li><li>It works on both Nodejs and Browser</li></ul><p><strong>Performing GET Request in Axios</strong></p><pre>axios.get(&#39;/get-user&#39;, {<br>    params: {<br>      ID: 1<br>    }<br>  })<br>  .then(function (response) {<br>    console.log(response);<br>  })<br>  .catch(function (error) {<br>    console.log(error);<br>  })<br>  .then(function () {<br>    // always executed<br>  });</pre><p><strong>Performing POST Request in Axios</strong></p><pre>axios.post(&#39;/user&#39;, {<br>    name: &#39;Sanjeev&#39;,<br>    id: 1<br>  })<br>  .then(function (response) {<br>    console.log(response);<br>  })<br>  .catch(function (error) {<br>    console.log(error);<br>  });</pre><h3>5. Request</h3><p>The Request library is one of the simplest ways to make HTTP calls. The structure and syntax are very similar to that of how requests are handled in Node.js. Currently, the project has 18K stars on GitHub and deserves a mention for being one of the popular HTTP libraries available.</p><p><strong>Syntax</strong></p><pre>var request = require(&#39;request&#39;);<br>request(&#39;http://www.yourdomain.com&#39;, function (error, response, body) {<br>  console.log(&#39;error:&#39;, error);<br>  console.log(&#39;statusCode:&#39;, response &amp;&amp; response.statusCode); <br>  console.log(&#39;body:&#39;, body);<br>});</pre><h3>6. SuperAgent</h3><p>SuperAgent is a lightweight and progressive AJAX library that’s focused more on readability and flexibility. SuperAgent also boasts of a gentle learning curve unlike other libraries out there. SuperAgent has a request object that accepts methods such as GET, POST, PUT, DELETE, and HEAD.</p><p>Pros of SuperAgent</p><ul><li>It has a plugin-based environment and ecosystem where plugins could be built and developed for extra or additional functionality.</li><li>Easily Configurable.</li><li>Nice interface for making HTTP requests.</li><li>Multiple functions chaining to send requests.</li><li>Has to support for upload and download progress.</li><li>Has support for chunked transfer encoding.</li><li>Old-style callbacks are supported</li><li>Numerous plugins available for many common features</li></ul><p>Performing Get Request</p><pre>request<br>   .get(&#39;/user&#39;)<br>   .query({ id: 1 })<br>   .then(res =&gt; {</pre><pre>   });</pre><p>Performing Post Request</p><pre>request.post(&#39;/user&#39;)<br>    .set(&#39;Content-Type&#39;, &#39;application/json&#39;)<br>    .send(&#39;{&quot;name&quot;:&quot;Ipseeta&quot;,&quot;id&quot;:1}&#39;)<br>    .then(callback)<br>    .catch(errorCallback)</pre><h3>Conclusion</h3><p>The selection depends or differs on your project, its scale, and its target and accepted audience. No choice is neither right nor wrong. The question might be answered if you select the wrong library for the wrong requirements. Pick the right tool for the job.</p><p>If you have any questions or suggestions regarding this or if you think I should add, correct or remove, feel free to comment.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47200fe7a38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Different versions of Angular.JS]]></title>
            <link>https://medium.com/@Sharad35386442/different-versions-of-angular-js-d7bd766c74c0?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7bd766c74c0</guid>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[versions-of-angularjs]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Mon, 24 Dec 2018 13:18:00 GMT</pubDate>
            <atom:updated>2018-12-24T13:18:00.633Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s world, where the people are running at a vast pace the technology also evolving at the same speed. We know that the changes are required to build better versions of applications. In the field of the IT sector, the same is applied to stand in the market otherwise you will be cornered. This points to the Angular.JS which has wide changes within a gap of the few years. In 2009, Google developed the angular.JS for the first time but released it after 3 years in 2012. In last 7–8 years, Angular.JS has evolved immensely. Started from version 1.0 advanced up to version 1.7, the Angular developed company has added many features and improving it constantly. That’s why Angular.JS is still running in the competition and leave all other frameworks behind. Although, we can’t guarantee the success in these fields as all are competing with each other to become best and useful. Here we talk about different versions of Angular.JS, their features and what is the improvement made in the updated versions.</p><h3>What is Angular.JS?</h3><p>Before moving to versions, first, let’s introduce with the Angular.JS. It is JavaScript open source structural framework which helps to address many problems encountered in handling single page applications. It used in designing front-end web application apps. It has many features such as binding, dependency injection that enables the developers to not write extra code as it eliminates that. It is one of the most popular frameworks available in the industry. It follows the MVC (Modern-View-Controller) architecture to represent the data. In short, the basic function of Angular.JS is developing single page applications. Maintained and developed by team members of Google, it is highly demanded.</p><h3>Understanding the versions of Angular:</h3><p>It is clear from above that Anguar.JS has released its 1st version in 2012, and after that, it continuously updating its versions and released approx. after a 1 year of a gap. Here we discuss all versions with details.</p><p><strong>Angular.JS 1.0:</strong> It was the first version released by Google in the year 2012. Although, it may have many faults comparison to other versions still it had made its position in the industry at that time period. All version of Angular that has 1.x known as AngularJS which conceived back in 2009 but released in public on June 14th,2012. Here we present you some features of Angular.JS 1.0:</p><ul><li>Architecture: The architecture of Angular.JS is based on the MVC which is Model-View-Control.</li><li>Language: To build the web applications, it uses JavaScript to write the code.</li><li>SEO: In AngularJS, it is very difficult to develop the SEO friendly single page applications for users. But in later versions, the team tries to handle this problem and get succeeded.</li><li>Communication: If you talk about the communication process between the components, then AngularJS is fast and smooth as a comparison with other versions. This makes highly easy for developers to interface and works with it.</li></ul><p>These are some properties of AngularJS which may be not efficient for the developers. So, a company decides to update it with more features and release the next version after a couple of years.</p><p>Also Read: <a href="https://www.onlineinterviewquestions.com/angular-js-interview-questions/"><strong>100 Best AngularJs interview Questions with Answers</strong></a></p><p><strong>Angular 2.0:</strong> For Version 2, Angular is the blanket term to name it. Angular 2 is an open source framework based on TypeScript which is the superset of JavaScript. Similar to AngularJS, Angular is also used for developing web and mobile applications. Announced in September 2014, Angular 2.0 is the complete rewrite of AngularJS with some additional features. Here we describe some features of Angular 2.0:</p><h3>Features:</h3><ol><li>Architecture: The architecture of Angular 2.0 is based on service/controller where components and directives have replaced controllers and $scope. The main purpose of the change is to deal with the view and logic of the page. There are two types of directives:</li></ol><p><strong>A. Structural Directives:</strong> These directives help in altering the layout of DOM by replacing and removing its elements.</p><p><strong>B. Attribute Directives:</strong> These directives change the behavior and appearance of DOM elements.</p><ol><li>Language: Unlike AngularJS, it uses TypeScript language to write the code which is the superset of ECMAscript6. This makes it better because it has the combined features of Typescript such as declarations and of ESMA like iterations.</li><li>Reusability: In Angular 2, the components are sorted building blocks of application, which enables the users to reuse the code in the future.</li><li>Testing: If we talk about testing, it is easier in Angular 2.0, as the components promote proficiency and smoothness. This takes less time for unit testing.</li><li>Performance: In comparison to speed, Angular 2.0 provides better structure to maintain the big applications of mobile and web. In addition to that, it also provides a better change detection mechanism for applications.</li><li>Mobile-Oriented: Besides all of the above, Angular 2.0 also supports mobile applications whereas AngularJS don’t support.</li></ol><p>These are the main features of Angular 2.0 which makes developers to choose it. After this, the team has released the next version of Angular which is Angular 4.0.</p><p>Also Read: <a href="https://www.onlineinterviewquestions.com/angular2-interview-questions/"><strong>40 important Angular2 interview Questions with answers</strong></a></p><p><strong>Angular 4.0:</strong> No version three! Yeah, Google decides to skip version 3 to avoid any confusion and went straight to version 4. Well, no need to think about that. We focus on version 4, its compatibility with the other two versions and its enhanced features. Angular 4 is the latest version but it has no major differences with Angular 2.0. In short, we can say that it is backward compatibility of Angular 2.0 as it is equipped with better resources and comes with finer detailing for least commotions, faster reflexes, better user interaction, and good results. The features of Angular 4.0 are shown below.</p><h3>Features:</h3><ul><li>Architecture: The architecture of Angular 4.0 I similar to Angular 2.0 which means that it also supports service/controller. In it, the only change is in structural derivatives which is that the nglf and ngFOR derivatives have been improved. In conjunction with this, you can use if else syntax with templates.</li><li>Language: Like Angular 2.0, Angular 4.0 also compatible TypeScript but with more powerful features such as object-oriented and type checking. It supports Typescript 2.1 and Typescript 2.2 which help it to use more advanced features.</li><li>AOT: In Angular 4.0, the size of AOT stands for Ahead of Time has been reduced. This makes highly smooth to work on Angular 4.0 comparison to others.</li><li>Mobile support: Angular 4.0 is mobile-oriented similar to Angular 2.0.</li><li>Performance: If we talk about performance, Angular 4.0 is the fastest version of all. This version is upgraded to increase the speed and better improvement in Dependency Injection.</li></ul><p>Read <a href="https://www.onlineinterviewquestions.com/angularjs-interview-questions/"><strong>16 interview questions on Angular4.0</strong></a></p><p>After a one-year gap, Google upgraded this version and launched version 5.0 with enhanced features.</p><p><strong>Angular 5.0</strong>: Launched in November 2017, Angular 5.0 was released with the motto that makes it faster, smaller, lighter and easily usable. The Angular team focused to make web apps easier on Angular 5.0. In addition to that, the team also added the material design compatibilities. To make it fast, the bundles are introduced to improve the loading time. The upgrade to this version is incremental as many changes are made invisible. The new features added to Angular 5.0 are explained below:</p><h3>Features:</h3><ul><li>Language: Like Angular, it also supports TypeScript but with an improved version. This means it is compatible with Typescript 2.4 with improvements such as weak type detection, stricter type checking and many more.</li><li>PWA: Before Angular 5.0, the progressive Web applications are handled very carefully. They are highly checked during development and deployment. But now, the development of PWA is very smooth and can be created by default. This provides advantages to both developers as well as users.</li><li>Tree shaking: By working on the tree shaking, the size of developed applications is reduced. The AOT is also accelerated to reduce built time and to support incremental builds.</li><li>Sharing: Angular 5.0 also supports the sharing between the client side and server side. The team introduces Angular Universal Transfer API and DOM to share the application state.</li><li>Build Optimizer: With the help of Build Optimizer, Angular 5.0 eliminates the useless code of your application and make it lighter, smaller and easily understandable.</li><li>Whitespace: In Angular 5.0, you have the option to preserve whitespace for your applications. This may help you to keep your code well-defined, well-arranged and easily readable.</li><li>Pipes: Angular 5.0 comes with new dates, number, and currency pipes which help in increasing standardization across browsers. Hence no need to depend on i18n polyfills. Instead, it relied on browser i18n APIs to provide the date, number, and currency.</li><li>Routing: In this, it enables the developer to track the route from the starting until the completion of the activity.</li><li>Décor: Lambda expressions are used to improve the decor in Angular 5.0 while the use of nomenclatures and naming functions is reduced.</li></ul><p>Read: <a href="https://www.onlineinterviewquestions.com/angular-5-interview-questions/"><strong>20 questions and answers on Angular 5 Programming</strong></a></p><p>These features make Angular 5.0 more efficient and easy to use. After Angular 5.0, Angular 6.0 also released in the industry.</p><p><strong>Angular 6.0:</strong> The 6th version was released with more focusing on toolchains. This version tried to help developers to create web applications more easily and smoothly. Angular 6.0 has come out with extravagant features especially, in the Angular-CLI. With Angular 6.0, you can do many things such as updating old packages, creative native web apps and many more. Here, we show you the newly added features in Angular 6.0:</p><h3>Features:</h3><ul><li>ng add: To download and install new packages in your applications, the new command ng add has introduced. This command is added in Angular-CLI and works similar to npm but couldn’t replace it.</li><li>ng update: Like ng add, one more command ng update has been added which help to upgrade your packages. In addition to update and peer dependencies, it will apply needed transforms for you project.</li><li>Angular Elements: The release of Angular Element mainly focused on allowing you to bootstrap Angular components. In this, you are able to render your elements as native web elements, and embedded as HTML elements.</li><li>Library: Now, In Angular 6.0 you can enjoy the latest version of the Rxjs library with new features.</li><li>Performance: The angular team is now more focusing on performance, so added features that enable developers to create PWA’s easily and providing a good environment in which it is easy to work with.</li><li>Build Library: The utmost feature which is requested a feature for CLI Is it support to create and build the libraries.</li><li>LST: The team has expanded the long-term support to all the major releases of Angular.</li></ul><p>Check out few <a href="https://www.onlineinterviewquestions.com/angular6-interview-questions/">Basic interview Questions and answers on Angular 6.0</a></p><p>After the Angular 6.0, the team introduced the latest version Angular 7.0 which was released recently. Adding new features and benefits, the team has set an example to remain updated in the industry.</p><p><strong>Angular 7.0:</strong> Angular 7.0 has released. The wait is over. This version launched on October-November 2018. It has new features for advancing toolchain and enabled major partner launches. This version spans the entire platform that includes core frameworks, Angular elements, Angular Material and the CLI with the latest versions. The adopters of v7 reported that this is the fastest version ever and has the ability to download all apps in just less than 10 minutes.</p><h3>The new features added are:</h3><ul><li>CLI prompt: While installing a new application, the Angular 7.0 will ask the users or prompt the users to whether they want to add built-in features like routing and SCSS scripts in their applications.</li><li>Size: Angular 7.0 has set the bundle size of 2Mb and for error is 5Mb. It warns developers if the size of applicants exceeds the limit with the help of Bundle Budget feature of Angular CLI. This is the value that can be changed in the angular.json file.</li><li>CDK: The new features have added in the CDK Component Dev Kit of angular material. The newly added features are virtual scrolling, Drag &amp; Drop.</li><li>Dependency Updates: This version is compatible with transcript 3.1 and RxJS6.3 having the advantage of new features.</li><li>Angular Elements: In Angular 7.0, the elements support content projections for content elements by using web standards.</li></ul><p>Prepare <a href="https://www.onlineinterviewquestions.com/angular-7-interview-questions/"><strong>Best Interview Questions and answers on Angular 7</strong></a></p><p>Until now, total 7 versions have been released having enhanced features. By comparing each version, we find that they are different from each other in some way. The successor versions come up with better offerings and advancements in comparison to pre-cursor versions. The updated versions have been enhanced with new features and improved performance. You can check the difference between the latest version and the first version and find out that how the performance has been improved. It is inevitable that by the time more features will be introduced and more smoothly we can implement Angular.</p><p><em>Originally published at </em><a href="https://www.onlineinterviewquestions.com/blog/different-versions-of-angular-js/"><em>www.onlineinterviewquestions.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7bd766c74c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upload Multiple files in PHP]]></title>
            <link>https://medium.com/@Sharad35386442/how-to-upload-multiple-files-in-php-888e6aef47c2?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/888e6aef47c2</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Sat, 22 Dec 2018 09:51:26 GMT</pubDate>
            <atom:updated>2018-12-22T09:51:26.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0r4gpy1VyhOJkdc9av7FsQ.jpeg" /></figure><p>When I first started this blog. I showed you how you can upload images to a specified folder using PHP which could only upload one image at a time. This time, I will show you how you can handle multiple image uploads using PHP with a few restrictions. Restrictions are the part which separates image uploading to other files uploading since there’s no totally separate PHP code which can let you upload only image files. Uploading means uploading in PHP and the differences need to be created by you.</p><p>Below is your <a href="https://www.onlineinterviewquestions.com/html-interview-questions/">HTML</a> form for uploading-</p><blockquote><em>&lt;form action=&quot;&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;<br>&lt;input type=&quot;file&quot; name=&quot;files[]&quot; multiple /&gt;<br>&lt;input type=&quot;submit&quot;/&gt;<br>&lt;/form&gt;</em></blockquote><p>And here’s the <a href="https://www.onlineinterviewquestions.com/php/">PHP</a> code which will let you handle multiple images at a time-</p><blockquote><em>&lt;?php<br>if(isset($_FILES[&#39;files&#39;])){<br>foreach($_FILES[&#39;files&#39;][&#39;tmp_name&#39;] as $img =&gt; $tmp_name ){<br>$file_name = $_FILES[&#39;files&#39;][&#39;name&#39;][$img];<br>$file_size =$_FILES[&#39;files&#39;][&#39;size&#39;][$img];<br>$file_tmp =$_FILES[&#39;files&#39;][&#39;tmp_name&#39;][$img];<br>$file_type=$_FILES[&#39;files&#39;][&#39;type&#39;][$img];<br>//Valid Extensions<br>$extensions = array(&quot;jpeg&quot;,&quot;jpg&quot;,&quot;png&quot;,&quot;JPG&quot;);<br>$file_ext=explode(&#39;.&#39;,$_FILES[&#39;files&#39;][&#39;name&#39;][$img]) ;<br>$file_ext=end($file_ext);<br>$file_ext=strtolower(end(explode(&#39;.&#39;,$_FILES[&#39;files&#39;][&#39;name&#39;][$img])));<br>//Check For Extension<br>if(in_array($file_ext,$extensions ) === false){<br>echo &#39;&#39;.$file_name.&#39; is an Invalid Image Type &lt;br/&gt;&#39;;<br>}<br>//Error For Large File Size. Max 2MB<br>else if($file_size &gt; 2097152){<br>echo &#39;&#39;.$file_name.&#39; Is Too Large To Upload &lt;br/&gt;&#39;;<br>}<br>else{<br>//Upload Images to folder named &#39;gallery&#39;<br>move_uploaded_file($file_tmp,&quot;gallery/&quot;.$file_name);<br>echo &#39;Successfully uploaded &#39;.$file_name.&#39;&lt;br/&gt;&#39;;<br>//Do some SQL part here if you want.<br>}<br>}<br>}<br>?&gt;</em></blockquote><p>Here are the valid extensions which are allowed:</p><p>$extensions = array(&quot;jpeg&quot;,&quot;jpg&quot;,&quot;png&quot;,&quot;JPG&quot;);</p><p>And the maximum size for each image must be less than or equal to 2MB which is ‘2097152‘ bits. You can use a greater number if you want. But since you will be using the images on the web, 2MB is already a large file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=888e6aef47c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 Frequently Asked Hibernate Interview Questions.]]></title>
            <link>https://medium.com/@Sharad35386442/8-frequently-asked-hibernate-interview-questions-8bac48a4c7f5?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bac48a4c7f5</guid>
            <category><![CDATA[hibernate]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Wed, 19 Dec 2018 09:23:32 GMT</pubDate>
            <atom:updated>2018-12-19T09:23:32.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8qirhrmqxSy5GHYJcOdlw.png" /><figcaption>Hibernate Interview Questions and answers</figcaption></figure><p><strong>Hibernate ORM</strong> is a java based tool that provides a framework for mapping application domain objects to the relational database tables and vice-versa.</p><p>Here in this article, I am going to share 8 <a href="https://www.onlineinterviewquestions.com/hibernate-interview-questions-answers/"><strong>Frequently asked basic Hibernate framework interview questions</strong></a> that help you to <a href="https://www.onlineinterviewquestions.com/java/"><strong>Crack Java Interviews</strong></a>.</p><h3>1. What are the main features of Hibernate?</h3><h3>Main features of Hibernate:</h3><p>The most important Hibernate’s feature is mapping from Java classes to database tables (and from Java data types to SQL data types), but also to provides data query ( and retrieval facilities ). It is important that Hibernate generates the SQL calls and relieves keeping the application portable to all SQL databases, with database portability delivered at very little performance overhead. This feature can significantly reduce development time that programmer would have to spent with manual data handling in SQL and JDBC.</p><p>Resuming Hibernate allows creating high-performance database applications with Java much faster and easier. Thanks to transparent persistence for Plain Old Java Objects (POJOs) all you need to do is build a simple POJO, next create XML mapping file that will describe relationship between the database and the class attributes and at the end call Hibernate API’s to specify the operations You can use Hibernate as in standalone Java applications or as in Java EE applications using servlets or EJB session beans.</p><h3>2. What is object relation mapping in Hibernate?</h3><p>ORM — Object Relation Mapping. Almost all contemporary databases are relational and based on SQL language. Most programs using them are created in an object way. So some kind of incoherence appears at the meeting point of a database and software. We need some appropriate tools to translate data from relational language into an object language and the other way round. Service of JDBC is extremely troublesome while dealing with more complex applications. ORM deals with the following tasks: Hibernate is currently one of the most popular ORM solutions. Its popularity and effectiveness were proved by the fact that e.g. an implementation of CMP in EJB3 on JBoss server is based on Hibernate.</p><p>What is more, a lot of solutions were copied during designing EJB3 specification. Other, common solutions ORM include CMP, JDO. Hibernate, as opposed to them, is not a standard but a concrete solution. Its main advantage is — lightness it is no need to use special containers, it is enough to attach an appropriate library. One can also use it to both: web and client applications. There is no need to generate manually an additional code. As opposed to e.g. JDO, Hibernate requires the only presence of configuration files. Additional classes used by it are generated during performing a task.</p><h3>3. Which design patterns are used in Hibernate?</h3><p>Hibernate uses following Design patterns</p><ul><li><strong>Domain Model Pattern</strong> -An object model of the domain that incorporates both behavior and data.</li><li><strong>Proxy Pattern</strong> for lazy loading.</li><li><strong>Unit of Work</strong> (as part of Session object)</li><li><strong>Factory Pattern</strong> in Session Factory</li><li><strong>Query Object</strong> for Criterion API</li><li><strong>Data Mapper</strong> — A layer of Mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself.</li><li><strong>Active Record Pattern</strong></li><li><strong>DAO</strong></li><li><strong>Object-Relational Mapping(ORM)</strong></li></ul><h3>4. Explain Hibernate’s Architecture?</h3><p>Hibernate is based on similar ideas and patterns like other ORM solutions (JDO, CMP).</p><p>Basic classes used while working with Hibernate are:</p><ul><li>SessionFactory,</li><li>Session,</li><li>Transaction</li></ul><p><strong>SessionFactory-</strong> SessionFactory is a class that provides Session objects. It contains information concerning mapped objects a configuration is being loaded during its formation. An application has usually one object of this class it can be managed by e.g. Spring.</p><p>One of the most important objects of Hibernate and one of the most troublesome at the beginning. An object of this class represents a unit of work with a database, it usually equals one connection (Connection) with a database.</p><p>It represents a unit of work with Hibernate. It equals e.g. PersistenceManager in CMP. All persistent objects are attributed to some definite session and any attempt to modify them or even ( sometimes) access to them results in an exception.</p><p><strong>Session</strong>- A Session is opened by SessionFactory.newSession() and closed by session.close()</p><p>One session should match a logic part of the program an execution of a task. Sometimes ( but not always!) it can be a transaction. While dealing with www applications session-per-request model is very common and easy to implement. Then the session is opened at the beginning of the processing of a claim and closed at the end. The easiest way to do it is by means of the filter. This model can be a bit troublesome if we store some persistent objects in an HTML session ( that is when we use e.g. JSF, Struts)</p><p><strong>Transaction-</strong> Transaction equals one database transaction. It is connected with a concrete session and is made by means of</p><pre>Transaction tx = session.beginTransaction( ); <br>We can cancel it or confirm by below methods<br>tx.commit(); // confirms a transaction<br>tx.rollback(); // rollbacks or cancels a transaction</pre><h3>5. List Data types supported in Hibernate?</h3><p>Hibernate maps Java data types into databases. Java type can be mapped into one or more column in the database. We can set the Object’s record as primitive types like int, byte or more complex, for example, java.util.Currency.</p><p>Data types supported in Hibernate are</p><ol><li>Primitive types.</li><li>Date and time types.</li><li>Binary and large object types.</li><li>Other JDK-related types.</li></ol><h3>6. What are the different ORM levels in Hibernate?</h3><p>There are basically four different ORM levels in Hibernate:</p><ol><li><strong>Pure Relational ORM:</strong> At this level, the entire application is designed around the relational model. All the operations are SQL based at this level.</li><li><strong>Light Object Mapping: </strong>At this level, entity classes are mapped manually to relational tables. A business logic code is hidden from data access code. Applications with less number of entities use this level.</li><li><strong>Medium Object Mapping:</strong> In this case, an application is designed around an object model. Most of the SQL code is generated at compile time. Associations between objects are supported by the persistence mechanism. The object-oriented expression language is used to specify queries.</li><li><strong>Full Object Mapping:</strong> This is one of the most sophisticated objects modeling level. It supports composition, inheritance, polymorphism, and persistence. The persistent classes do not inherit any special base class at this level. There are efficient fetching and caching strategies implemented transparently to the application.</li></ol><h3>7. What is the main difference between spring and hibernate?</h3><p>Spring and Hibernate are two different things, Spring has several components like Dependency Injection, Spring MVC, Spring ORM, Spring Rest API. So Spring ORM and Hibernate are kind of similar, they both deal with the object relation model, which means they deal with connection java objects to database entities.</p><p>Now if you want to build a Rest API using Spring, you can use the Spring Rest API (Here is the getting start guide for Spring Rest Building a RESTful Web Service) for ORM you can either choose Hibernate or Spring ORM framework in either cases there are advantages and disadvantages but major industry goes with using Hibernate (I might be wrong!!) I’ve used both of them Spring ORM is quite useful in simple scenarios and Hibernate in some complex scenarios, whereas in most complex scenarios both of them are not quite useful when you want to write really complex queries. (Both of them provide functionalities two write queries by yourself in the case of complex scenarios).</p><h3>8. What is @Transient in Hibernate? What is the use of this?</h3><p>Hibernate supports various object states. One of this object state is transient. In hibernate which is object relation mapping, it will map or create every variable with the class we have defined. For example, if we declare a new variable it will add its entry to the database. But if a variable is marked @Transient then it will not be added to the database. This means it has no persistence representation in that hibernate session. And after an application is closed these transient objects will be destroyed through garbage collection.</p><pre>class Edufect{</pre><pre>	private int id;</pre><pre>	private String courseName;</pre><pre>	@Transient</pre><pre>	private int courseId;</pre><pre>}</pre><p>So in this in our database, we can see the entry of id column, courseName but no <strong>courseId</strong> column. But if we remove transient annotation from <strong>courseId</strong> then it will be added as an int to the database.</p><p>Thanks for reading this article. If you found this article helpful, please share it on your community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bac48a4c7f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 PHP frameworks to learn in 2018]]></title>
            <link>https://medium.com/@Sharad35386442/10-php-frameworks-to-learn-in-2018-dbadba25a700?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbadba25a700</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[php-frameworks]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Sun, 09 Dec 2018 08:23:17 GMT</pubDate>
            <atom:updated>2018-12-09T08:23:17.116Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Top 10 PHP Frameworks in 2018</strong></p><p><a href="https://www.onlineinterviewquestions.com/core-php-interview-questions/"><strong>PHP (Hypertext Processor)</strong></a> is the most popular server-side programming language, which is being adopted by many developers and communities leading to the emergence of many PHP frameworks. These frameworks help the developers in fast web development and deploying the complexity. So, if you are a web developer and on the fence about which framework to choose for the best web development. Well, here is an extra hand you need. We tried to put together the best PHP frameworks of 2018 including the newly emerged one with advanced features and abilities.</p><p>The list below of <strong>top 10 </strong><a href="https://www.onlineinterviewquestions.com/php-frameworks/"><strong>PHP frameworks</strong></a> targets the developers with different hosting capabilities, levels of experience and development timeframes. We also provide you the favorable and unfavorable factors (pros and cons) of each framework, that will help you in deciding the best one you need for your web development.</p><h3>1. Laravel</h3><p>Being the first framework that introduced routing in an abstract way, the Laravel eliminates the hassle of code organization and is the most prominent PHP framework with a massive community of developers. It is a comprehensive framework featuring tons of Laravel specific packages, unit testing, lightweight Blade templating unit, ORM, packaging system, RESTful controllers which makes it is specially designed model to build the application quickly using the MVC architecture. Handling the NoSQL structures like Mondo DB or Redis, are one of the best things Laravel can do. With the extensive documentation, popularity and, Laravel Udemy, it is very much easy to get started with Laravel. This framework requires 5.5.9 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Organized code and files</li><li>Quick development of application</li><li>Features MVC architecture, ORM, Unit testing (FAST on HHVM) and other out of the box functionalities.</li><li>Integration of payment with stripe</li><li>Has overloading capabilities using dynamic methods</li><li>Strong encryption packages</li><li>High-level abstraction and best documentation</li></ul><p><strong>Cons:</strong></p><ul><li>Incompatible with shared hosting plans</li><li>Does many queries on the database</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/laravel-interview-questions/">Laravel interview questions</a></p><h3>2. Phalcon</h3><p>It has been actively developed since 2012, featuring ORM, MVC, caching and auto-loading components and using very few resources when compared to any frameworks, it is absolutely blazing fast. It has the all the developer tools such as Object Document mapping for MongoDB and many other features that include form builders, Template engines, building applications with international language support etc. Phalcon can be the ideal choice to build the performance REST APIS and also the full-fledged web applications. This framework requires 5.3 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Built-in security features</li><li>Autoloading</li><li>Uniquely built as C-extension</li><li>The performance is Blazing fast with low overheads</li><li>Its developer friendly and facilitates lots of documentation</li></ul><p><strong>Cons:</strong></p><ul><li>It is an open source but not as Laravel</li><li>Bugs need to wait to be patched by developers.</li><li>Incompatible with HHVM</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/phalcon-interview-questions/">Phalcon interview questions</a></p><h3>3. CodeIgniter</h3><p>CodeIgniter can be an ideal choice for rapid development of the application. It helps the developers in building the full-fledged web applications with small learning curves and numerous libraries. It makes the life a developer easier with low-hassle and no special command line or software installation requirement. Just requires files uploading and it’s all ready to use after the upload. The documentation is extensive and the community is vast and helpful. Featuring many built-in libraries for unit testing, validation, email, sessions and much more of it, the CodeIgniter makes a perfect choice for the development of applications. This framework requires 5.4 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Developer friendly, as it does not require any special dependencies or support</li><li>Outperforms other non-MVC frameworks</li><li>Very well-abled in using normal web hosting services and standard databases like MySQL.</li><li>Has extensive and good documentation.</li></ul><p><strong>Cons:</strong></p><ul><li>No namespace’s, but still the framework can speed up.</li><li>Not very much friendly towards unit testing when compared to other frameworks</li><li>Comes with only a few built-in libraries.</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/codeigniter-interview-questions/">Codeigniter interview questions</a></p><h3>4. Symfony</h3><p>This framework is modular with high performance and well documentation. It is developed by French Sensio Labs and is used by many reputed companies. This prominent framework helps in to build both RESTful APIs and full-fledged web applications. This framework requires 5.5.9 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Provides high performance and is stable,</li><li>The framework is well documented, maintained and supported.</li></ul><p><strong>Cons:</strong></p><ul><li>Documentation is good, but the in-learning curve disappoints.</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/symfony-interview-questions/">Symfony interview questions</a></p><h3>5. CakePHP</h3><p>An ideal framework for beginners and comes with code generation and scaffolding functionality for rapid development of commercial web applications. The framework is unique in having MVC conventions and is under active development process for good documentation and gathering support portals to get started. The configuration is a breeze as it eliminates the need for complicated XML files. With tons of packages and security features, it also has tools for form validation. This framework requires 5.5.9 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Modern framework with tons of packages</li><li>Has scaffolding systems and fast builds</li><li>Ideal for commercial web applications</li><li>Built-in database access, validation, authentication</li><li>Actively developed</li><li>Prevention of scripting and SQL injection</li><li>Good documentation</li></ul><p><strong>Cons:</strong></p><ul><li>Not ideal for constructing RESTful APIs</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/cakephp-interview-questions/">CakePHP interview questions</a></p><h3>6. Zend Framework</h3><p>It is one of the prominent, professional frameworks and is mostly used to build high-performance enterprise level applications. It is developed with extensibility, security, and performance in mind. Because of complete focus on enterprise applications, it has many components for authentication, forms, feed, services and more. It can’t be ideal for quick application development. But comes with many developer tools that make the application development easier. This framework requires 5.3 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Perfect for enterprise applications</li><li>Fully-object oriented</li><li>Has tons of components for feeds, forms, and validation</li></ul><p><strong>Cons:</strong></p><ul><li>Not ideal for rapid application development</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/zend-framework-interview-questions/">Zend Framework Interview Questions</a></p><h3>7. Fuel PHP</h3><p>Built with HMVC architecture in mind, the Fuel PHP is modern, high modular, sophisticated, and extensible PHP framework, that features lightweight, template parsing, powerful ORM support and security enhancements with many packages and about 21 developer’s capabilities. It is actively developed, fully object-oriented, supports multiple applications on a single installation and has the ability to install the framework using composer. This framework requires 5.5.3 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Modular with integrated ORM</li><li>Restful building and URL routing</li><li>Authentication packages</li><li>Fully object-oriented support multiple applications</li></ul><p><strong>Cons:</strong></p><ul><li>Not beginner friendly.</li><li>Relative framework with fewer modules</li><li>Less open source community contributions</li><li>Less prominent when compared to other frameworks</li></ul><p>Also, read <a href="https://www.onlineinterviewquestions.com/fuel-php-interview-questions/">Fuel PHP Interview Questions</a></p><h3>8. Slim</h3><p>Inspired by Ruby’s Sinatra, the Slim is a minimal micro-framework, which is best utilized in building lightweight Restful APIs. Featuring built standard and many add-on features like URL handling, routing, HTTP caching and much more, developing becomes easy. This framework requires 5.5 PHP version. <strong>Pros:</strong></p><ul><li>It is one of the fastest PHP framework available</li><li>Beginner friendly documentation</li><li>Actively developed framework</li><li>Ideal for small rest APIs</li></ul><p><strong>Cons:</strong></p><ul><li>Has minimal add-ons on the stock composer</li><li>Since it’s new, there is no official LTS release yet</li></ul><p>Also, Read Top 10 <a href="https://www.onlineinterviewquestions.com/slim-interview-questions/">Slim framework interview questions</a></p><h3>9. Phpixie</h3><p>This framework is latest, lightweight, modularized and easy to get started with. Enabling fast compilation, it comes with great tools for security and cryptography support for MongoDB and code sharing with the composer. But has relatively few modules and is less prominent when compared to other frameworks. This framework requires 5.3 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Relatively new framework with fast compilation ability.</li><li>Easy to get started with</li><li>Has an impressive routing system</li><li>It is HMVC pattern oriented</li><li>Documentation with code samples</li></ul><p><strong>Cons:</strong></p><ul><li>Has only a few modules</li><li>Incompatible with the components that are independently made from the dependencies.</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/phpixie-framework-interview-questions/">PHPixie Framework Interview Questions</a></p><h3>10. Fat-Free</h3><p>It is a modular PHP micro-framework that comes with tons of packages which makes it a perfect competitor of full-fledged PHP framework, Laravel. The packages include unit testing, CSS compression, image processing, Open ID, data validation and much more. With the Fat-free framework, you get off the shelf support for SQL and NoSQL databases, making it easy for the developers to develop the multilingual web applications. This framework requires 5.5 PHP version.</p><p><strong>Pros:</strong></p><ul><li>Lightweight and small learning curve</li><li>Comes with tons of packages</li><li>Provides off shelf support for both SQL and NoSQL</li><li>Fast optimizations for URL routing and caching</li><li>An ideal choice for multilingual applications.</li></ul><p><strong>Cons:</strong></p><ul><li>No latest or modern options when compared to other frameworks</li><li>Code repetition</li><li>Kind of overkill for a micro framework</li></ul><p>Also, Read <a href="https://www.onlineinterviewquestions.com/fat-free-framework-interview-questions/">Fat-Free Framework Interview Questions</a></p><p><strong>Wrapping Up</strong></p><p>The choice or selection of the PHP framework primarily depends upon the kind of website or the web application to be developed and later on the features of the PHP framework like scalability, speed, modules, packages, documentation, unit testing, a support system of databases, security and other built-in features.</p><p>So, the above list of <a href="https://www.onlineinterviewquestions.com/php-frameworks/"><strong>PHP frameworks</strong></a> has all the frameworks that are considered to be the best PHP frameworks in the year 2018. Each of them has different capabilities and packages.</p><p>Single out the one that suits best to your web development project for a smooth web application development journey.</p><p><em>Originally published at </em><a href="https://www.onlineinterviewquestions.com/blog/10-php-frameworks-to-learn-in-2018/"><em>www.onlineinterviewquestions.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbadba25a700" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Publish Laravel package on Packagist]]></title>
            <link>https://medium.com/@Sharad35386442/how-to-publish-laravel-package-on-packagist-c078d5f79d2c?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c078d5f79d2c</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[package-publishing]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Tue, 23 Oct 2018 12:02:55 GMT</pubDate>
            <atom:updated>2018-10-23T13:28:20.219Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will show you how to package your Laravel into Packagist so that other developers can download your package more easily with Composer.</p><h3>What is a Packagist?</h3><p><a href="https://packagist.org/">Packagist</a> is a composer’s default package repository that helps you find packages and helps composers find where to source them. By the way, when you sign up for your package with a Packagist, Packagist will assign your package a unique name. Most developers can use that name to download your package to their project via the composer without knowing where your source code is.</p><h3>Step1: Put your source code into GitHub</h3><p>The first thing to do is you have to put your source code on a server repository service, you can use <a href="https://github.com/">GitHub</a> or Bitbucket … In this tutorial, I will use GitHub. After putting the source code package into GitHub, you enter the setting in the package’s repository:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*QGuji9qPiDjaJJyB.png" /></figure><p>Next to Webhooks &amp; Services:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*GGRVaW-MCKQVTnSt.png" /></figure><p>At this screen, go to Services, select Add Services and enter the package in the filter field, select the Packagist line.GitHub will then ask you to enter a password to confirm.</p><p>After adding the service successfully, the services section will add the following packages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*RlAD5kBHRFlRz61k.png" /></figure><p><strong>Also, Read </strong><a href="https://www.onlineinterviewquestions.com/php-frameworks/"><strong>Best Interview Questions and answers on PHP Frameworks</strong></a></p><h3>Step2: Name the package</h3><p>The next step is to choose a name for your package. This is a very important step because the package name cannot be changed and it is unique to avoid future conflicts.</p><p>The package name consists of two parts, the vendor name and the project name, which are joined together by the “/” sign:</p><pre>vendor/package-name</pre><p>For example, if I create a package named slider and my name is Sammer then I will register my package name with the sammer/ slider packagist.</p><p>The vendor part exists to avoid conflicts. For example, if a developer creates a package slider, he can choose somename / slider.</p><p>Your package name is in the package’s composer.json file, at the first line “name”: “sammer/ slider”</p><h3>Step3: Submit package</h3><p>The last step you need to do is to sign up for an account on Packagist. After submitting your submission, copy the url of your GitHub repository to the Repository URL box and click check. Pakagist will check if there is a package with the same name as your package, if not, then you have successfully registered your package with the packagist then!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c078d5f79d2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Interview Questions for Java Language]]></title>
            <link>https://medium.com/@Sharad35386442/10-interview-questions-for-java-language-571da37444b0?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/571da37444b0</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Mon, 08 Oct 2018 08:48:02 GMT</pubDate>
            <atom:updated>2019-11-22T09:38:55.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2Vm476XKYw1ZX82iq1iY7A.jpeg" /></figure><p><strong>1.</strong> <strong>What is JVM? Why is Java called the Platform Independent Programming Language?</strong></p><p><strong>Ans:</strong> A Java virtual machine (JVM) is a process virtual machine that can execute Java bytecode. Each Java source file is compiled into a bytecode file, which is executed by the JVM. Java was designed to allow application programs to be built that could be run on any platform, without having to be rewritten or recompiled by the programmer for each separate platform. A Java virtual machine makes this possible because it is aware of the specific instruction lengths and other particularities of the underlying hardware platform.</p><p><strong>2.</strong> <strong>In Java Can you access non-static variable in static context?</strong></p><p><strong>Ans:</strong> A static variable in Java belongs to its class and its value remains the same for all its instances. A static variable is initialized when the class is loaded. If your code tries to access a non-static variable, without any instance, the compiler will complain, because those variables are not created yet and they are not associated with any instance.</p><p><strong>3.</strong> <strong>How many data types does Java support? What is Autoboxing and Unboxing??</strong></p><p><strong>Ans: </strong>The eight primitive data types supported by the Java programming language are:</p><p>1.byte</p><p>2.short</p><p>3.int</p><p>4.long</p><p>5.float</p><p>6.double</p><p>7.boolean</p><p>8.char</p><p>Autoboxing is the automatic conversion made by the Java compiler between the primitive types and their corresponding object wrapper classes. For example, the compiler converts an int to an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true">Integer</a>, a double to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html">Double</a>, and so on. If the conversion goes the other way, this operation is called unboxing.</p><figure><img alt="Java Interview Questions from courseya" src="https://cdn-images-1.medium.com/max/350/1*IKljACffsMwymU_Aim18CA.jpeg" /><figcaption><a href="https://www.courseya.com/java-interview-questions/">Java Interview Questions from Courseya</a></figcaption></figure><p><strong>4.</strong> <strong>How you define pass by reference and pass by value in Java?</strong></p><p><strong>Ans:</strong> When an object is passed by value, this means that a copy of the object is passed. Thus, even if changes are made to that object, it doesn’t affect the original value. When an object is passed by reference, this means that the actual object is not passed, rather a reference of the object is passed. Thus, any changes made by the external method, are also reflected in all places.</p><p><strong>5.</strong> <strong>Explain different ways of creating a thread in Java. Which one would you prefer and why?</strong></p><p><strong>Ans:</strong> There are three ways that can be used for a Thread to be created:</p><p><strong>1</strong>. A class may extend the Thread class</p><p><strong>2</strong>. A class may implement the Runnable interface.</p><p><strong>3</strong>. An application can use the Executor framework, to create a thread pool.</p><p>The Runnable interface is preferred, as it does not require an object to inherit the Thread class. In case your application design requires multiple inheritances, only interfaces can help you. Also, the thread pool is very efficient and can be implemented and used very easily.</p><p><strong>6.</strong> <strong>What is the difference between a synchronized method and a synchronized block?</strong></p><p><strong>Ans:</strong> In Java programming, each object has a lock. A thread can acquire the lock for an object by using the synchronized keyword. The synchronized keyword can be applied in a method level (coarse-grained lock) or block level of code (fine-grained lock).</p><p><strong>7.</strong> <strong>Define Java Priority Queue?</strong></p><p><strong>Ans:</strong> The PriorityQueue is an unbounded queue, based on a priority heap and its elements are ordered in their natural order. At the time of its creation, we can provide a Comparator that is responsible for ordering the elements of the PriorityQueue. A PriorityQueue doesn’t allow null values, those objects that don’t provide natural ordering or those objects that don’t have any comparator associated with them. Finally, the Java PriorityQueue is not thread-safe, and it requires O(log(n)) time for its enqueuing and dequeuing operations.</p><p><strong>8.</strong> <strong>What is the purpose of finalization method?</strong></p><p><strong>Ans:</strong> The finalize method is called by the garbage collector, just before releasing the object’s memory. It is normally advised to release resources held by the object inside the finalize method.</p><p><strong>9.</strong> <strong>Explain the difference between Exception and Error in java?</strong></p><p><strong>Ans:</strong> Exception and Error classes are both subclasses of the Throwable class. The Exception class is used for exceptional conditions that a user’s program should catch. The Error class defines exceptions that are not excepted to be caught by the user program.</p><p><strong>10.</strong> <strong>Justify your answer that N threads can access N resources without deadlock?</strong></p><p><strong>Ans:</strong> A very simple way to avoid deadlock while using N threads is to impose an ordering on the locks and force each thread to follow that ordering. Thus, if all threads lock and unlock the mutexes in the same order, no deadlocks can arise.</p><p>Thanks for reading and good luck on your interview! Check more <a href="https://www.onlineinterviewquestions.com/core-java-interview-questions/">Java Interview Questions &amp; Answers</a> on <a href="https://www.onlineinterviewquestions.com/">onlineinterviewquestions.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=571da37444b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic SQL interview questions and answers]]></title>
            <link>https://medium.com/@Sharad35386442/basic-sql-interview-questions-and-answers-39ece391a158?source=rss-1b644f09c89f------2</link>
            <guid isPermaLink="false">https://medium.com/p/39ece391a158</guid>
            <category><![CDATA[questions]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Sharad Jaiswal]]></dc:creator>
            <pubDate>Sun, 07 Oct 2018 18:27:19 GMT</pubDate>
            <atom:updated>2018-10-07T18:27:19.237Z</atom:updated>
            <content:encoded><![CDATA[<p>Dear Aspirants, here we are providing you with all the important interview questions on SQL, that might be asked in an interview, this list of questions are prepared by our research team by analyzing many interviews and taking feedback from candidates who attend the SQL interviews. The answers to the questions are given by our SQL expertise. We have covered all the major areas of the subject, so, go through all the questions twice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*E4DKIBzqtNBd3gi2T7u1Zg.png" /></figure><p>You may Also Like <a href="https://www.onlineinterviewquestions.com/mysql-interview-questions/"><strong>30 Best MYSQL Interview Questions</strong></a></p><ol><li><strong>What is the Full form of SQL?</strong></li></ol><p>SQL stands for the Structured Query language.</p><p><strong>2. What is the difference between Mysql and Sql?</strong></p><p>Mysql is the software required and sql is the Structured query language, that is used to manipulate the data.</p><p><strong>3. What are DDL commands in Sql?</strong></p><p>Create, Alter, Drop and Truncate are the DDL commands.</p><p><strong>4. Explain DDL commands?</strong></p><p><strong>Create:</strong> It is used to create the new table, to create view of table, and objects in the database.</p><p><strong>Alter:</strong> It is used to modify the existing database object.</p><p><strong>Drop:</strong> It is used to delete the new table, to delete view of table, and objects in database.</p><p><strong>Truncate:</strong> it is used to delete all the rows of a table and it can’t be rolled back.</p><p><strong>5. What are DML commands in Sql?</strong></p><p>Select, Insert, Update and Delete are the DML commands in Sql.</p><p><strong>6. Explain the DML commands?</strong></p><p>Select: it is used to retrieve records from one or more tables.</p><p>Insert: It is used to insert a record into the table.</p><p>Update: It is used to modify the existing record.</p><p>Delete: It is used to delete the records.</p><p><strong>7. What are DCL commands in Sql?</strong></p><p>Grant and Revoke are the DCL command in Sql.</p><p><strong>8. Explain the DCL commands?</strong></p><p>Grant: It is used to provide privilege to the user.</p><p>Revoke: It is used to take back the privilege provided to the user.</p><p><strong>9. How many and what are the operators available in sql?</strong></p><p>3 operators, Arithmetic operator, Logical operator and Comparison operator.</p><p><strong>10. Query to display current date?</strong></p><p>GetDate() built in query is used to retrieve the current date.</p><p><strong>11. What is meant by Trigger in sql?</strong></p><p>Trigger helps you execute certain sql code, whenever a insert, delete or insert command is executed. These are the special type of stored procedures that automatically execute upon completion of certain query.</p><p><strong>12. What set operators does sql has?</strong></p><p>Union, intersect or minus are the set operators in sql.</p><p><strong>13. What is meant by a Constraint?</strong></p><p>These are the representation of a column to enforce data consistency and entity.</p><p><strong>14. What are the various levels of constraints?</strong></p><p>Column-level constraint, table level constraint.</p><p><strong>15. What is a NVL function in Sql?</strong></p><p>NVL function is used to convert Null value to actual value.</p><p><strong>16. What is the difference between NVL and NVL2 function?</strong></p><p>NVL: NVL(val1, val2), it converts source value to the target value and if source value contains null, target remains the same data type as of val1.</p><p>NVL2: NVL2(val1, val2, val3), this function checks for null in the first value, if it is not null then second value val2 is returned and if it is null then the third value val3 is returned.</p><p><strong>17. What is meant by Nullif in sql?</strong></p><p>Nullif function is used to compare to expressions and if they are equal, then it returns Null or else it returns the first expression.</p><p><strong>18. What is Coalesce function?</strong></p><p>It returns the first not null value in the given expressions.</p><p><strong>19. What is the use of Union and UnionAll in sql?</strong></p><p>Union and UnionAll both are used to merge to tables in to one table , the difference is that UnionAll do not omit the duplicate records where as union omits the duplicate records.</p><p><strong>20. What is a Join and what are the types of join?</strong></p><p>Joins are used to combine rows of two or more tables. There are five types of Joins in Sql. Inner join, left join or left outer join, right join or right outer join, full join or full outer join and cross join.</p><p><strong>21. What is the difference between regular joins and cross joins?</strong></p><p>The regular join is used to join the columns with same name and datatype but cross join produces a Cartesian product of two tables.</p><p><strong>22. What is a group function?</strong></p><p>Group function is used to work on set of rows and returns a single result per group.</p><p><strong>23. Examples of Group function?</strong></p><p>COUNT, AVG, MAX, MIN, VARIANCE, SUM and STDDEV are the group functions.</p><p><strong>24. How do you copy rows from one table to other?</strong></p><p>Insert statement can be used. A sub-query can be used in the place of values clause.</p><p><strong>25. Can we modify the rows of a table with respect to the values of another table?</strong></p><p>Yes, we can do that using subqueries in the Update function.</p><p><strong>26. What happens if we do not mention Where clause in delete statement?</strong></p><p>All the rows of the table get deleted.</p><p><strong>27. Where we use the Merge Statement?</strong></p><p>Merge statement is used in conditional updating of data into the database.</p><p>Write a query to find the employees whose name starts with B?</p><p>SELECT * FROM Employees WHERE Empname LIKE ‘B%’;</p><p><strong>28. Write a query to find the third highest salary from a emp_table?</strong></p><p>SELECT TOP 1 salary</p><p>FROM (</p><p>SELECT TOP 3 salary</p><p>FROM emp_table</p><p>ORDER BY salary DESC ) AS emp</p><p>ORDER BY salary ASC;</p><h3>Conclusion:</h3><p>The above mention questions are the important <a href="https://www.onlineinterviewquestions.com/mssql-interview-questions/">SQL interview questions </a>and answers that are encountered by many of the candidates. We are not sure that the questions will be asked from the above-mentioned questions. Thank you for reading the post. All the Best for your interview. If you have any doubts please feel to comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39ece391a158" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>