<?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 Study Section on Medium]]></title>
        <description><![CDATA[Stories by Study Section on Medium]]></description>
        <link>https://medium.com/@studysectionexam?source=rss-fcd955db2123------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FV62SJG9w0ITpCj7M7o_4w.png</url>
            <title>Stories by Study Section on Medium</title>
            <link>https://medium.com/@studysectionexam?source=rss-fcd955db2123------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:55:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@studysectionexam/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[Singleton design pattern — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/singleton-design-pattern-studysection-blog-1d90410c1f09?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d90410c1f09</guid>
            <category><![CDATA[singleton-pattern]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[singleton-design-pattern]]></category>
            <category><![CDATA[singleton]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 04:22:11 GMT</pubDate>
            <atom:updated>2022-04-07T07:02:14.090Z</atom:updated>
            <content:encoded><![CDATA[<h3>Singleton design pattern — StudySection Blog</h3><figure><img alt="Singleton design pattern — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*it9UvwOCux1M3NY9iYajfA.png" /><figcaption><a href="https://studysection.com/blog/singleton-design-pattern/"><strong>Singleton design pattern — StudySection Blog</strong></a></figcaption></figure><p>Design patterns provide solutions to the commonly occurring problems in the design of the software. The design pattern is like a blueprint that can be customized to target any particular problem of the code. Patterns are a toolkit of solutions to address common problems in software design. They provide the team with a common language to communicate efficiently.</p><p>Singleton design pattern in C# is one of the most widely used design <a href="https://studysection.com/blog/bridge-design-pattern/">patterns</a>. In this pattern, only one instance of a class is created and it becomes a global point from where that class can be accessed. In simple words, a singleton is a class where only a single instance of the class is created and that access has simple access to the class.</p><p><strong>Singleton pattern can be implemented in various ways in C#. Common characteristics of a singleton pattern are as follows.</strong></p><ul><li>Private and parameterless single constructor.</li><li>Sealed class.</li><li>Static variable to hold a reference to the single created instance.</li><li>A public and static way of getting the reference to the created instance.</li></ul><h3>Advantages of Singleton Design Pattern are listed below:</h3><ul><li>Singleton patterns can implement interfaces.</li><li>It has Static Initialization and can be lazy-loaded.</li><li>It helps to hide dependencies.</li><li>It is easy to maintain as it provides a single point of access to a particular instance.</li></ul><p><strong>There are a few disadvantages of using the singleton pattern which are mentioned below:</strong></p><ul><li>Unit testing of the application becomes a bit difficult as it introduces a global state into an application.</li><li>Parallelism within the program also gets affected due to the dependency on a single instance.</li></ul><h3>Singleton class vs. Static methods:</h3><p>Classes with static methods cannot be initialized. We can reference a static method with the name of the class. The same copy of that static method is shared between every reference. So, changes made by one will be reflected in another.</p><p><strong>Comparison is listed below between Singleton class and Static methods</strong></p><ul><li>We can extend a singleton class but we can not extend a static Class.</li><li>We can initialize a singleton class but a Static Class cannot be initialized.</li><li>When the program containing the static class is loaded, then that static class is loaded automatically by the CLR.</li></ul><p><strong>Singleton Pattern can be implemented in several ways in C# as listed below:</strong></p><ul><li>No Thread Safe Singleton.</li><li>Thread-Safety Singleton.</li><li>Thread-Safety Singleton using Double-Check Locking.</li><li>Thread-safe without a lock.</li><li>Using .NET 4’s Lazy&lt;T&gt; type.</li></ul><p><em>The English language is the most widely used language as a medium of communication around the world. Having a certification for the English language can be an advantage. StudySection provides an </em><a href="https://www.studysection.com/english-language-advanced-diploma"><em>English Certification Exam</em></a><em> that tests English language proficiency in English grammar, reading, and writing.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/singleton-design-pattern/"><em>https://studysection.com</em></a><em> on April 7, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d90410c1f09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridge Design Pattern — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/bridge-design-pattern-studysection-blog-294738d6d7e5?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/294738d6d7e5</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 04:19:40 GMT</pubDate>
            <atom:updated>2022-04-11T07:26:11.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bridge Design Pattern — StudySection Blog</h3><figure><img alt="Bridge Design Pattern — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*00ycxynMa8lYC69SasHM9Q.png" /><figcaption><a href="https://studysection.com/blog/bridge-design-pattern/"><strong>Bridge Design Pattern — StudySection Blog</strong></a></figcaption></figure><p>Design patterns provide solutions to the commonly occurring problems in the design of the software. The design pattern is like a blueprint that can be customized to target any particular problem of the code. <a href="https://studysection.com/blog/module-design-pattern/">Patterns </a>are a toolkit of solutions to address common problems in software design. They provide the team with a common language to communicate efficiently.</p><p>The bridge pattern separates the implementation from abstraction and makes it easy to modify both independently without any risk of coupling. In this pattern, the user is provided with an interface basically, between abstraction class and implementer classes. With the help of this users can make the changes in any of the classes without hampering the other one.<br> Design Patterns basically provide the solution to the problems that we encounter doing different types of implementations, each having its own unique Requirement.</p><p>This design pattern occurs when we have two different kinds of implementations, whereby one implementation uses the other and we want to progressively add functionality to these implementations.</p><p>One way to solve this problem is to keep the dependent implementation inside the client implementation and implement the dependent implementation separately in both classes. The problem with this is that whenever we have to change the client implementation we may end up changing the dependent implementation as well and if the change is dependent implementation-specific we may need all the client implementers.</p><p>So, the way to solve this using Bridge Design Pattern is to create separate abstract classes for both kinds of implementation and keep the reference of the dependent implementation inside the client implementation. This way a loose coupling is created between both the implementations, which helps to progressively add functionality to these implementations in an independent manner.</p><h3>Example:</h3><p>Suppose we need to draw different shapes and fill them with different colors. So, the usual approach will be to create an interface Shape and create a class Triangle and Square that implements this interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*dYOHzmCekwzKYP-Q.png" /></figure><p>Now Suppose we want to fill them with blue and green colors. So As a typical programmer, we take the next step of creating different classes of triangles and squares with colors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*X_KQoTcG0XAtVFjh.png" /></figure><p>Now though the approach looks fine, it tightly couples the things, so let’s see how to solve this with a bridge design pattern.</p><h3>BRIDGE DESIGN PATTERN</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*kKo8bQZfLKhEgZLM.png" /></figure><p>Here, the shape will have a reference to color, and both the shape and the color will extend separately without bothering each other.</p><p>StudySection gives an opportunity to beginners and experts in .NET framework to go through StudySection’s .NET certification exam and get a <a href="https://www.studysection.com/asp-.net-4.5-foundation">.NET certification</a> for enhancement of career in programming. If you have knowledge of the .NET framework then you can get a certificate through an online exam at StudySection.</p><p><em>Originally published at </em><a href="https://studysection.com/blog/bridge-design-pattern/"><em>https://studysection.com</em></a><em> on April 6, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=294738d6d7e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Web 3.0 — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/what-is-web-3-0-studysection-blog-e36d03de71b6?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/e36d03de71b6</guid>
            <category><![CDATA[web-3-point-0]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 04:25:03 GMT</pubDate>
            <atom:updated>2022-04-05T06:57:53.834Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Web 3.0 — StudySection Blog</h3><figure><img alt="What is Web 3.0 — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*Dpcxy0pWXH7xGhGIiy1Apg.png" /><figcaption><a href="https://studysection.com/blog/what-is-web-3-0/"><strong>What is Web 3.0 — StudySection Blog</strong></a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*k74ce5_Xx4oxzEd0.png" /></figure><h3>Introduction:</h3><p>In this article, we will discuss the evolution of the Internet from its Elementary Phase, where it’s going now and how it affects Us.</p><p>In the current time, we don’t think about our life without the Internet. We know how the internet Has evolved from Static Websites to Dynamic <a href="https://studysection.com/blog/how-social-media-helps-in-seo/">Social Media</a> Websites.</p><h3>Evolution of the web:</h3><p>The internet has changed over the years and their Applications has changed so unrecognizable<br> In comparative to their Early stage. The development/ evolution of the internet has been partitioned into 3 Stages: Web 1.0, Web 2.0, and Web 3.0. Now we discuss these stages in detail:</p><h3>What is Web 1.0?</h3><p>Web 1.0 is the first part of the internet. In this early stage, most of the Internet Users are Consumers i.e they just consume the content. Whereas the creators are the developers who created the websites. In this phase websites mostly contain static Text and Images.<br> Web 1.0 existed between 1991 to 2004.<br> Data is served on the website through a static File system instead of a database.</p><h3>What is Web 2.0?</h3><p>Most of us Experience Web 2.0. In this phase of the internet, you don’t need to be a developer for creating the content. Most Websites treat users as a contributor to the content. In this phase, if you want to share the information with the world you can. Web 2.0 is simple and real because most people are the creators.</p><h3>What is Web 3.0?</h3><p>In Web 3.0, we can say users don’t upload/host websites on a single server. The hosting is on a distributed system or cloud database. The ultimate goal of Web 3.0 is to create more intelligent, connected and open websites. With Web 3.0, the data generated by disparate and increasingly powerful computing resources, including mobile phones, desktops, appliances, vehicles, and sensors, will be sold by users through decentralized data networks, ensuring that users retain ownership control.</p><p><strong>Web3.0 key characteristics:</strong></p><ul><li>Verifiable</li><li>Trustless</li><li>Self-governing</li><li>Permissionless</li><li>Distributed and robust</li><li>Stateful</li><li>Native built-in payments</li></ul><p><strong>Conclusion:</strong> Web 3.0 is more open and intelligent, with semantic Web technologies, distributed databases, natural language processing, machine learning, machine reasoning, and autonomous agents.</p><p><em>If you have skills in PHP programming and you want to enhance your career in this field, a PHP certification from StudySection can help you reach your desired goals. Both beginner level and expert level </em><a href="https://www.studysection.com/cakephp-developer-advanced-diploma"><em>PHP Certification Exams</em></a><em> are offered by StudySection along with other programming certification exams.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/what-is-web-3-0/"><em>https://studysection.com</em></a><em> on April 5, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e36d03de71b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebDriver Architecture Selenium — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/webdriver-architecture-selenium-studysection-blog-ddb400b9fa53?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb400b9fa53</guid>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[selenium-webdriver]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Mon, 04 Apr 2022 04:22:17 GMT</pubDate>
            <atom:updated>2022-04-13T05:54:35.990Z</atom:updated>
            <content:encoded><![CDATA[<h3>WebDriver Architecture Selenium — StudySection Blog</h3><figure><img alt="WebDriver Architecture Selenium — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*3p-FPTO9AaL0rANVetQEaw.png" /><figcaption><a href="https://studysection.com/blog/webdriver-architecture-selenium/"><strong>WebDriver Architecture Selenium — StudySection Blog</strong></a></figcaption></figure><p>The requirement of WebDriver Architecture selenium is to understand the Web-UI automation using selenium WebDrive.For the depth of knowledge of selenium Webdrive, we have to understand the architecture first. The order to know about architecture first needs to know about the 4 components that compare the framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/0*WfwGGaX96hQwK6rT.png" /></figure><h3>Selenium Client Library</h3><p>This is possible to support different programming languages in Selenium WebDrive.The language bandings component of selenium Webdrive allows us to write selenium scripts. The language as per our choice we can write the script in selenium. For example the programming language we can use like Java, C#, <a href="https://studysection.com/blog/about-useful-python-tools/">Python</a> , Ruby, JavaScript, etc.</p><h3>Browser Drivers</h3><p>In selenium, we have a separate browser drive. Selenium script gives commands to the driver and passes them to the respective driver. Some of the browser Drivers that we can use in selenium are — FirefoxDriver, ChromeDriver, InternetExploreDriver, SafariDriver, OperBrowser.</p><h3>JSON Wire Protocol over HTTP</h3><p>The communication between the script and the browser Driver via JSON Wire protocol. It can transfer the data between client and server over the web.</p><p><strong>Browser</strong><br> The browser receives the command and calls the respective method to perform the automation task.<br><em>Here below is the command to perform the automation task:</em><br>WebDriver driver = new chromeDriver();<br> driver.get(&quot;https://www.google.com&quot;)</p><p><em>jQuery presents a tree-like structure of all the elements on a webpage simplifying the syntax and further manipulating such elements. The </em><a href="https://www.studysection.com/jquery-3.x-advanced"><em>jQuery Certification Exam</em></a><em> by StudySection will secure your fundamental knowledge and a basic understanding of jQuery as an asset to improve your skills.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/webdriver-architecture-selenium/"><em>https://studysection.com</em></a><em> on April 4, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb400b9fa53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explain this pattern with example in PHP — Server Session State — SS Blog]]></title>
            <link>https://studysectionexam.medium.com/explain-this-pattern-with-example-in-php-server-session-state-ss-blog-71d9f8ae3cf0?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/71d9f8ae3cf0</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[php-developers]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[php-development]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Fri, 01 Apr 2022 04:44:15 GMT</pubDate>
            <atom:updated>2022-04-01T06:14:17.418Z</atom:updated>
            <content:encoded><![CDATA[<h3>Explain this pattern with example in PHP — Server Session State — SS Blog</h3><figure><img alt="Explain this pattern with example in PHP — Server Session State — SS Blog" src="https://cdn-images-1.medium.com/max/1000/1*Ja3L-0K3FGQSYralDrOm1A.png" /><figcaption><a href="https://studysection.com/blog/explain-this-pattern-with-example-in-php-server-session-state/"><strong>Explain this pattern with example in PHP — Server Session State — SS Blog</strong></a></figcaption></figure><p>A session is a way to continue information across different web pages to recognize users as they traverse a site or app.</p><p>There was absolutely no way a server could remember a specific user between multiple requests, which is why we call the HTTP protocol a stateless protocol.</p><p>For example, When you click a web page, the <a href="https://studysection.com/blog/how-slow-loris-attack-using-javascript-on-a-php-server-and-prevent/">server </a>is only available for providing the content of the requested page. So when you click other pages on the same website, the webserver converts each request uniquely, as if they were not connected to each other. The server has no way to differentiate whether each request is coming from the same user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/0*tTVthPqTG3XHB59r.png" /></figure><h3>Real-Time Example Login Flow With Sessions and Cookies</h3><p><em>Following is the flow for a website to understand what happens behind the scenes.</em></p><ul><li>When a user opens a login page of a website.</li><li>After submitting the login form, a server authenticates the request by checking the credentials that were entered.</li><li>If the credentials entered by the user are correct, the server creates a new session and it creates a unique random number, which is called a session id. It also creates a new file for each session created on the server and it will store the session-specific information.</li><li>Next, a session id is sent back to the user, along with whatever assets were requested. In the background, the session id is sent in the PHPSESSID cookie in the response header.</li><li>When the browser gets the response back from the server, it will come across the PHPSESSID cookie header. If cookies are accepted by the browser, it will save this PHPSESSID cookie, which has the session id passed by the server.</li><li>For the next requests, the PHPSESSID cookie is sent back to the server. When the server gets into the PHPSESSID cookie, it will try to configure a session with the same session id. It will then configure the global array variable $_SESSION with the information stored in the session file.</li></ul><p>This is how the user’s data is saved across multiple requests, and the user remains logged in for the duration of a session.</p><p>Following is the image which depicts how the HTTP protocol works throughout the session:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*Fo-sNWJZJRUk3wD-.png" /></figure><p>&lt;?php<br> session_id(YOUR_SESSION_ID);//If you want to change the system-generated session id with your own, you can pass it to the first argument of the session_id function.<br> // start a session<br> session_start();<br> echo session_id();//It will give the Id which is created when the session started.<br> // manipulate session variables<br> // initialize session variables<br> $_SESSION[&#39;logged_in_user_id&#39;] = &#39;1&#39;;<br> $_SESSION[&#39;logged_in_user_name&#39;] = Test_User;<br> // destroy everything in this session<br> unset($_SESSION);<br> if (ini_get(&quot;session.use_cookies&quot;)) {<br> $params = session_get_cookie_params();<br> setcookie(session_name(), &#39;&#39;, time() - 42000, $params[&quot;path&quot;], $params[&quot;domain&quot;], $params[&quot;secure&quot;],$params[&quot;httponly&quot;]);<br> }<br> session_destroy();<br> ?&gt;</p><p>The session_start function should be called at the beginning of the file before anything is sent to the browser. Otherwise, you’ll get the error of the Headers are already sent.But if you want to add custom session Id you have to call <em>session_id(YOUR_SESSION_ID) before session_start()</em> function</p><p><em>If you have skills in PHP programming and you want to enhance your career in this field, a PHP certification from StudySection can help you reach your desired goals. Both beginner level and expert level </em><a href="https://www.studysection.com/php-web-developer-advanced-diploma"><em>PHP Certification Exams</em></a><em> are offered by StudySection along with other programming certification exams.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/explain-this-pattern-with-example-in-php-server-session-state/"><em>https://studysection.com</em></a><em> on April 1, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71d9f8ae3cf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Foreign Key Mapping — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/foreign-key-mapping-studysection-blog-248416047a10?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/248416047a10</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 04:30:47 GMT</pubDate>
            <atom:updated>2022-04-19T06:23:56.494Z</atom:updated>
            <content:encoded><![CDATA[<h3>Foreign Key Mapping — StudySection Blog</h3><figure><img alt="Foreign Key Mapping — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*muBPApZPZSa2LYUPkDmVJA.png" /><figcaption><a href="https://studysection.com/blog/foreign-key-mapping/"><strong>Foreign Key Mapping — StudySection Blog</strong></a></figcaption></figure><p>Foreign Key Mapping is the process of establishing a link between two records. Suppose I have a User and I make a <a href="https://studysection.com/blog/join-two-tables-without-a-common-column-in-mysql/">table </a>called users that has some specific ID that should be a primary key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/0*Mus2XEO23M6clE5j.png" /></figure><p>An additional table named ‘vehicles’ has a listing of vehicles with descriptions such as the vehicle model, brand, color, and so on. The thing that comes to mind is that I have to establish a relationship with the vehicles’ owners. I am going to add a new column named user_id which works as a foreign key to the user’s table in the vehicles table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/0*seIlX1_RzziYbpS2.png" /></figure><h3>SQL Query Example:</h3><p>ALTER TABLE `vehicles` ADD CONSTRAINT `user_vehicles` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;</p><p>One-to-one mapping occurs when records of a primary table relate to a single record of a secondary table. For example, a relationship between the User table and the UserDetails table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/0*DrzVRvFLHsSg9nFA.png" /></figure><p>Another case occurs when a record is linked to multiple records. For example, users may have multiple vehicles, multiple phone numbers, multiple documents, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*29AQ3BFbqXFGVJLG.png" /></figure><p>Whenever a record of a first table can reference multiple records of a second table and similarly a second table record can reference multiple records of a first table, it refers to many-to-many mapping. As an example, a product could have multiple tags and each tag may relate to multiple products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*5A21ZfSFHxnCPQzs.png" /></figure><p><em>jQuery allows the user to create powerful and dynamic webpages that run without any hiccup. With StudySection, you have the liberty to choose among beginner or expert level </em><a href="https://www.studysection.com/jquery-3.x-foundation"><em>jQuery Certification Exams</em></a><em> to help you excel in this career field.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/foreign-key-mapping/"><em>https://studysection.com</em></a><em> on March 31, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=248416047a10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strategy pattern in Salesforce Apex — SS Blog]]></title>
            <link>https://studysectionexam.medium.com/strategy-pattern-in-salesforce-apex-ss-blog-e12ebc2d686a?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/e12ebc2d686a</guid>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[sales-development]]></category>
            <category><![CDATA[salesforce-apex]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Wed, 30 Mar 2022 04:36:03 GMT</pubDate>
            <atom:updated>2022-03-30T06:34:10.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>Strategy pattern in Salesforce Apex — SS Blog</h3><figure><img alt="Strategy pattern in Salesforce Apex — SS Blog" src="https://cdn-images-1.medium.com/max/1000/1*C8pWMSp-iN_e6tgXFrOdsg.png" /><figcaption><a href="https://studysection.com/blog/strategy-pattern-in-salesforce-apex/"><strong>Strategy pattern in Salesforce Apex — SS Blog</strong></a></figcaption></figure><p>In the Strategy pattern, we implement multiple solutions for the same problem and solutions can be selected at run time depending on the condition.<br> In <a href="https://studysection.com/blog/what-is-apex/">Apex</a>, we can use custom metadata or custom settings to define these conditions.<br> Let’s understand this pattern by jumping to a solution via sudo-code.<br> Suppose you have multiple URLs and you need to use the appropriate URL at run time. We can configure this condition using Custom Metadata or custom Setting. for example. if we want to choose a URL depending on the profile we can define that in Metadata or Custom Setting.<br> In this example, we will get 2 URLs and use them at run time depending on the condition.<br>Public Class RedirectTo{<br> public String url;<br> public RedirectTo(){<br> Id profileId= userinfo.getProfileId();<br> String profileName=[Select Id,Name from Profile where Id=:profileId].Name;<br> if(profileName.equals(&#39;System Administrator&#39;)){<br> url = URLs.getSystemAdminURL();<br> }<br> else{<br> url = URLs.getNonSystemAdminURL();<br> }<br> }<br> }<br> Public class URLs{<br> public static String getSystemAdminURL(){<br> //Code to genrate URL<br> }<br> public static String getNonSystemAdminURL(){<br> //Code to genrate URL<br> }<br> }</p><p><em>jQuery presents a tree-like structure of all the elements on a webpage simplifying the syntax and further manipulating such elements. The </em><a href="https://www.studysection.com/jquery-3.x-advanced"><em>jQuery Certification exam</em></a><em> by StudySection will secure your fundamental knowledge and a basic understanding of jQuery as an asset to improve your skills.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/strategy-pattern-in-salesforce-apex/"><em>https://studysection.com</em></a><em> on March 30, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e12ebc2d686a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webhooks — StudySection Blog]]></title>
            <link>https://studysectionexam.medium.com/webhooks-studysection-blog-8d9eefbdf8a9?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d9eefbdf8a9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[webhooks]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 04:38:08 GMT</pubDate>
            <atom:updated>2022-04-21T06:35:57.343Z</atom:updated>
            <content:encoded><![CDATA[<h3>Webhooks — StudySection Blog</h3><figure><img alt="Webhooks — StudySection Blog" src="https://cdn-images-1.medium.com/max/1000/1*5xsE04T5s2R-pXsa4cvRbw.png" /><figcaption><a href="https://studysection.com/blog/webhooks/"><strong>Webhooks — StudySection Blog</strong></a></figcaption></figure><p>Webhooks are extensions of APIs. The data comes in a web request to your application. Webhooks may be the result of an earlier <a href="https://studysection.com/blog/api-documentation/">API </a>call, this type of webhook is also called a “callback”, such as an ‘asynchronous’ request to the Number Insight API. Even webhooks are used to notify your application of events such as an incoming call or message.<br> As the server needs to send data to your application via webhooks, you need to set up the webserver to receive the incoming HTTP requests. You also need to specify the URL of each webhook on your web server so that data can be sent to each URL.</p><h3>Securing Webhooks:</h3><p>Since webhook delivers data to publicly available URLs in your app or router, there is the chance that someone else could find that URL and then provides you with false data. To prevent it from happening you can employ a number of techniques. The easy thing to do (and what you should implement before going any further) is to force TLS connections “HTTPS”. Once you have implemented that you may go forward and further secure your connection:</p><ul><li>The first and most common way to secure a webhook is to add tokens to the URLs that act as unique identification.</li><li>The next option is to implement Basic Auth, this is widely supported, and very easy to do.</li><li>The first two points work great to prevent most attacks, therefore they have the disadvantage of sending the auth token with the request. The third option is to have the provider sign each request it makes to you and then verify a signature. This has the disadvantage of requiring the provider to have implemented request signing meaning if they do not already, you are probably out of luck.</li></ul><p><strong><em>Paypal webhook events eg: “PAYMENT.SALE.COMPLETED”</em></strong><br> Response data could be like this:<br>{<br> &#39;id&#39;: &#39;WH-06485091105459459-0W6R85331JD518460C&#39;,<br> &#39;create_time&#39;: &#39;2021-12-31T07:37:44.311A&#39;,<br> &#39;resource_type&#39;: &#39;sale&#39;,<br> &#39;event type&#39;: &#39;PAYMENT.SALE.COMPLETED&#39;,<br> &#39;summary&#39;: &#39;Payment completed for $ 180.0 USD&#39;,<br> &#39;resource&#39;: {<br> &#39;billing_agreement_id&#39;: &#39;I-605HV1LDP8UM&#39;,<br> &#39;amount&#39;: {<br> &#39;total&#39;: &#39;180.00&#39;,<br> &#39;currency&#39;: &#39;USD&#39;,<br> &#39;details&#39;: {<br> &#39;subtotal&#39;: &#39;180.00&#39;}<br> },<br> &#39;payment_mode&#39;: &#39;INSTANT_TRANSFER&#39;,<br> &#39;update_time&#39;: &#39;2021-12-31T07:37:26Z&#39;,<br> &#39;create_time&#39;: &#39;2021-12-31T07:37:26Z&#39;,<br> &#39;protection_eligibility_type&#39;: &#39;ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE&#39;,<br> &#39;transaction_fee&#39;: {<br> &#39;currency&#39;: &#39;USD&#39;,<br> &#39;value&#39;: &#39;6.77&#39;},<br> &#39;protection_eligibility&#39;: &#39;ELIGIBLE&#39;,<br> &#39;links&#39;: [{<br> &#39;method&#39;: &#39;GET&#39;,<br> &#39;rel&#39;: &#39;self&#39;,<br> &#39;href&#39;: &#39;https://api.sandbox.paypal.com/v1/payments/sale/76W3987305068623Y&#39;<br> },<br> {&#39;method&#39;: &#39;POST&#39;,<br> &#39;rel&#39;: &#39;refund&#39;, &#39;href&#39;: &#39;https://api.sandbox.paypal.com/v1/payments/sale/76W3987305068623Y/refund&#39;<br> }],<br> &#39;id&#39;: &#39;76W3987305068623Y&#39;,<br> &#39;state&#39;: &#39;completed&#39;, &#39;invoice_number&#39;: &#39;&#39;},<br> &#39;links&#39;: [<br> {&#39;href&#39;: &#39;https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-06485091105459459-0WR85331JD518460C&#39;,<br> &#39;rel&#39;: &#39;self&#39;,<br> &#39;method&#39;: &#39;GET&#39;,<br> &#39;encType&#39;: &#39;application/json&#39;},<br> {&#39;href&#39;: &#39;https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-06485091105459459-0WR85331JD518460C/resend&#39;, &#39;rel&#39;: &#39;resend&#39;,<br> &#39;method&#39;: &#39;POST&#39;,<br> &#39;encType&#39;: &#39;application/json&#39;}],<br> &#39;event_version&#39;: &#39;1.0&#39;<br> }</p><p><em>People having good knowledge of Financial accounting can get an </em><a href="https://www.studysection.com/financial-accountant-advanced-diploma"><em>Accounting Certification Exams</em></a><em> from StudySection to increase their chances of getting a job in this field. You can get a foundation level certification if you are new to Financial accounting or you can go for advanced level certification if you have expert level skills in Financial accounting.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/webhooks/"><em>https://studysection.com</em></a><em> on March 29, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d9eefbdf8a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Template Method design pattern in PHP — SS Blog]]></title>
            <link>https://studysectionexam.medium.com/template-method-design-pattern-in-php-ss-blog-d95ff333927f?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/d95ff333927f</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[php-developers]]></category>
            <category><![CDATA[php-development]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 04:45:26 GMT</pubDate>
            <atom:updated>2022-03-28T06:16:53.905Z</atom:updated>
            <content:encoded><![CDATA[<h3>Template Method design pattern in PHP — SS Blog</h3><figure><img alt="Template Method design pattern in PHP — SS Blog" src="https://cdn-images-1.medium.com/max/1000/1*zSgb3vA7uJkC36Uu8I3FdQ.png" /><figcaption><a href="https://studysection.com/blog/template-method-design-pattern-in-php/"><strong>Template Method design pattern in PHP — SS Blog</strong></a></figcaption></figure><p>The template method behavioral <a href="https://studysection.com/blog/module-design-pattern-in-javascript-jquery/">design pattern</a> is to define an algorithmic program as a skeleton of operations and leave the details to be implemented in subclasses. These steps can be abstract methods that don’t require implementation while declaration time. That’s why they will be implemented in subclasses. Subclasses will override only the steps defined in the base class without changing the overall algorithm’s structure.</p><h3>Uses of Template Method:</h3><ul><li>To reduce the duplication of code by splitting the code into similar ‘steps ‘ or ‘sections’.</li><li>To extend the code easily with controlling of core parts of it, this is useful.</li><li>When you have a set of steps (algorithm), that might have more than one implementation. The base set of steps will be defined in the base class, but subclasses can create their own implementation of each step by replacing the base class steps.</li></ul><p>Let us take an example of manufacturing cars and motorbikes. There are common four steps to creating vehicles:</p><p>As we know, every vehicle has different engines and wheels. So, the code to implement these properties will be different. We need to just declare addEngine() and addWheels() methods as abstract methods in the base class. The actual implementation of these methods will be performed in subclasses.<br> The process of painting/selling all types of vehicles is the same. So, we don’t need to rewrite the code again and again for every vehicle. We will declare and define paintVechicle() and sellVechicle() methods in parent class.</p><p><strong>Parent class:</strong><br>&lt;?php<br> abstract class VehicleManufacturing<br> {<br> abstract protected function addWheels();<br> abstract protected function addEngine();<br> protected function paintVehicle()<br> {<br> echo &quot; Painting of vehicle\n&quot;;<br> }<br> final protected function sellVehicle()<br> {<br> echo &quot;Vehicle Selling\n&quot;;<br> }<br> final public function template()<br> { // this is the template method<br> $this-&gt;addEngine();<br> $this-&gt;addWheels();<br> $this-&gt;paintVehicle();<br> $this-&gt;sellVehicle();<br> }<br> }</p><p><strong>Subclass1:</strong><br>class Car extends VehicleManufacturing<br> {<br> protected function addWheels()<br> {<br> echo &quot; Four Car wheels added \n&quot;;<br> }<br> protected function addEngine()<br> {<br> echo &quot; Car engine added\n&quot;;<br> }<br> }</p><p><strong>Subclass2:</strong><br>class Motorbike extends VehicleManufacturing<br> {<br> protected function addWheels()<br> {<br> echo &quot;Two Motorbike wheels added\n&quot;;<br> }<br> protected function addEngine()<br> {<br> echo &quot;Motorbike engine added\n&quot;;<br> }<br> }</p><p>Both subclasses are extending the main abstract template class “VehicleManufacturing”. Only two methods “addWheels()” and “addEngine()” need to be implemented in child classes.<br> We always only have the same steps, in the same order, that are defined in the template() method. So, we will call only the template() method for creating both types of vehicles:<br>&lt;?php<br> $motorbike = new Motorbike;<br> $motorbike-&gt;template();<br> $car = new Car();<br> $car-&gt;template();<br> ?&gt;</p><p><em>StudySection gives an opportunity to beginners and experts in .NET framework to go through StudySection’s </em><a href="https://www.studysection.com/c-sharp-net-web-developer-advanced-diploma"><em>.NET Certification Exam</em></a><em> and get a .NET certification for enhancement of career in programming. If you have knowledge of the .NET framework then you can get a certificate through an online exam at StudySection.</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/template-method-design-pattern-in-php/"><em>https://studysection.com</em></a><em> on March 28, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d95ff333927f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebDriver and WebElements in Selenium — SS Blog]]></title>
            <link>https://studysectionexam.medium.com/webdriver-and-webelements-in-selenium-ss-blog-ff53be24a83e?source=rss-fcd955db2123------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff53be24a83e</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[selenium-webdriver]]></category>
            <dc:creator><![CDATA[Study Section]]></dc:creator>
            <pubDate>Fri, 25 Mar 2022 04:32:30 GMT</pubDate>
            <atom:updated>2022-04-25T09:07:31.932Z</atom:updated>
            <content:encoded><![CDATA[<h3>WebDriver and WebElements in Selenium — SS Blog</h3><figure><img alt="WebDriver and WebElements in Selenium — SS Blog" src="https://cdn-images-1.medium.com/max/300/0*8p9I-RigIQq35ip0.png" /><figcaption><a href="https://studysection.com/blog/webdriver-and-webelements-in-selenium/"><strong>WebDriver and WebElements in Selenium — SS Blog</strong></a></figcaption></figure><p>WebDrvier is a collection of related methods. WebElements are buttons, text boxes, checkboxes, drop-down menus, hyperlinks, etc. on a web application. The Building Blocks for <a href="https://blog.webnersolutions.com/introduction-to-selenium-grid/">Selenium </a>WebDriver is to first locate a WebElement then perform an action on the WebElement.<br> A configuration for WebDriver is required before importing its packages. The driver object and methods are put to use after importing a WebDrvier package.</p><p><strong>WebDriver Packages and Classes:</strong> The WebDriver interface contains several classes. Each class is utilized through an imported package. In order to use WebDrvier, the appropriate package must be imported to execute specific commands. As an example, the package “org.openqa.selenium.chrome” must be imported to use class “Chrome Driver” to execute a command that loads Google Chrome browser. The following is an example of importing a package for Firefox driver:</p><p>import org.openqa.selenium.WebDriver;<br> import org.openqa.selenium.firefox.FirefoxDriver;</p><p><strong>WebDriver Object and Methods:</strong> Executions of the WebDriver commands are carried out through the driver object. The driver object is the main WebDriver component, which assists with locating and performing actions on WebElements. Like objects in Java programming, the driver object must be instantiated “created” before it is used. The following is an example of instantiating a Firefox driver object:</p><p>WebDriver driver = newFirefoxDriver();</p><p>After creating a driver object, the WebDriver methods are available to perform actions on a browser. An automation engineer can type the word “driver” followed by the dot operator (.) to view the methods.</p><p>The following is a screenshot of the WebDriver methods</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*0ZvRkxvcr_RwX6lV.png" /></figure><p>The WebDriver methods either return a value or return no value. For example, the findElement() method <strong>“findElement(By argO) : WebElement”</strong> has a return value of “WebElement” which indicates a WebElement will be returned to the method. On the other hand, the close() method <strong>“close(): void”</strong> has a return value of “void” which indicates a value will not be returned. The same with get() method <strong>“get(String argO) : void”</strong> which returns a value of void. However, the get() method receives a String parameter <strong>“String argO”</strong>. All strings have double quotes surrounding it’s value.</p><p><em>The following is a complete syntax utilizing get() method for loading a new web page.</em></p><p><strong><em>Note:</em></strong> <strong>driver.manage().window().maximize()</strong> is a statement of maximizing/enlarging the window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*EPKehupzivhGvCl2.png" /></figure><h3>The following describes each WebDriver Method:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*TGi_VH82GncobDNw.png" /></figure><p><strong>Locate WebElements via HTML:</strong> All web applications and browsers contain WebElements <strong>“i.e, buttons, links, etc.”</strong><br> The WebElements are derived from HyperText Markup Language (HTML). HTML is the standard markup language for creating web applications. Furthermore, each browser reads an HTML document to display the browser pages.</p><p>A great deal of HTML markup tags includes an opening (also known as starting) tag, a closing (also known as ending) tag, and at least one attribute. In regards to web applications and browsers, the markup tags determine the characteristics of a WebElement. Attributes provide additional information about the WebElement. It is important to know that attributes are defined in the opening tag.</p><p>Both tags have the same name surrounded by angle brackets ( &lt; &gt; ). However, the difference between an opening tag and a closing tag is the forward-slash ( / ). Closing tags must include a forward slash before the tag name. Unlike the tags, an attribute contains a name/value pair. The following is the syntax for an opening tag, closing tag, and attribute name/value pair.</p><p><strong><em>Note:</em></strong> Some elements do not contain a closing tag</p><p><em>Get certification for your knowledge in the fundamentals of Computer functioning by clearing the </em><a href="https://studysection.com/computer-networks-advanced"><em>Computer Certification</em></a><em> exam conducted by StudySection. After going through this Computer Certification exam, you will be able to evaluate your basic knowledge of computers</em></p><p><em>Originally published at </em><a href="https://studysection.com/blog/webdriver-and-webelements-in-selenium/"><em>https://studysection.com</em></a><em> on March 25, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff53be24a83e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>