<?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 Utpal Biswas on Medium]]></title>
        <description><![CDATA[Stories by Utpal Biswas on Medium]]></description>
        <link>https://medium.com/@utpal.uoda?source=rss-9cc13878a746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UdYykWwDWgJPnR4ibZsVMQ.jpeg</url>
            <title>Stories by Utpal Biswas on Medium</title>
            <link>https://medium.com/@utpal.uoda?source=rss-9cc13878a746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:23:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@utpal.uoda/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[Introduce New Features in PHP 7]]></title>
            <link>https://medium.com/oceanize-geeks/introduce-new-features-in-php-7-8a2f9926e1f9?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2f9926e1f9</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php7]]></category>
            <category><![CDATA[new-features]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 10:05:25 GMT</pubDate>
            <atom:updated>2019-01-02T10:40:14.297Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWS1FXC2s98r37HTQRayFw.png" /></figure><p>The PHP community is very excited to welcome this latest release. But it does’t mean that php has been stagnant at this time. They updated so many thing in this mean time but PHP 7 is totally new release with some excited features.</p><p>The SPEED is the amazing feature that PHP 7 bring in this release. The developers worked very hard to refactor the PHP code in order to reduce memory consumption and increase performance and they certainly succeeded. along with this there is some other features i am going to describe below.</p><h3><strong>Type Declaration :</strong></h3><p>As we know PHP is considered to be a weak typed language. In essence, this means that PHP does not require you to declare data types. Variables still have data types associated with them but you can do radical things like adding a string to an integer without resulting in an error. Type declarations can help you define what should occur so that you get the expected results. This can also make your code easier to read. We’ll look at some specific examples shortly below</p><p><strong>Scalar Type Hints</strong></p><p>With PHP 7 we now have added Scalar types. Specifically: int, float, string, and bool.</p><p>By adding scalar type hints and enabling strict requirements, it is hoped that more correct and self-documenting PHP programs can be written. It also gives you more control over your code and can make the code easier to read.</p><p>here is an example with non strict</p><pre>function total(float $a, float $b) {<br>    return $a + $b;<br>}</pre><p>output</p><pre>total(2.8, &quot;3.2&quot;);<br>// string &quot;3.2&quot; changed to float(3.2) no notice<br>//returns float(6)</pre><p>output with warning</p><pre>total(2, &quot;1 week&quot;); <br>// int(2) changed to float(2.0) and string “1 week” changed to float(1.0) but you will get a “Notice: A non well formed numeric value encountered”<br>//returns float(3)</pre><p>If a type-declaration mismatch occurs, a “Fatal Error” is thrown with strict mood on. here is example</p><pre>declare(strict_types=1);</pre><pre>function total(float $a, float $b) {<br>      return $a + $b;<br> }</pre><pre>total(2, &quot;1 week&quot;);<br>// Fatal error: Uncaught TypeError: Argument 2 passed to total() must be of the type float, string given</pre><pre>total(2.5, 1);<br>// int(1) change to float(1.0)<br>//returns float(3.5)</pre><p>as we see when we use strict mood “on” the warning became Error which is very helpful and structured way to understand and get the desired output from the codebase.</p><p><strong>Return Type Declarations</strong></p><p>PHP 7 also supports Return Type Declarations which support all the same types as arguments. To specify the return type, we add a colon and then the type right before the opening curly bracket.</p><pre>function total(float $a, float $b) : float {}</pre><h3>New Operators :</h3><p>PHP 7 also brings us some new operators. The first one we’re going to explore is the spaceship operator. The spaceship operator, or Combined Comparison Operator, is a nice addition to the language, complementing the greater-than and less-than operators. like</p><pre><strong>$compare = 2 &lt;=&gt; 1</strong><br>2 <strong>&lt;</strong> 1? return -1<br>2 <strong>=</strong> 1? return 0<br>2 <strong>&gt;</strong> 1? return 1</pre><p><strong>Null Coalesce Operator</strong></p><p>Another new operator, the Null Coalesce Operator, is effectively the fabled if-set-or. It will return the left operand if it is not NULL, otherwise it will return the right. like</p><pre>$name = $firstName ??  &quot;Guest&quot;;</pre><p>Before 7.X it was like</p><pre>if (!empty($firstName)) $name = $firstName;<br>else $name = &quot;Guest&quot;;</pre><p>What makes this even more powerful, is that you can stack these! This operation will check each item from left to right and when if finds one that is not null it will use that value. like</p><pre>$name = $firstName ?? $username ?? $placeholder ?? “Guest”;</pre><p>This is fun is not it ??</p><p>If you’re ready to start playing around with PHP7 go throw all the changes in PHP 7. X</p><p><strong>References:</strong></p><p>New features in PHP 7. X</p><p><a href="http://php.net/manual/en/migration70.new-features.php">http://php.net/manual/en/migration70.new-features.php</a></p><p>Migrating from PHP 5.6.x to PHP 7.0.x<a href="http://php.net/manual/en/migration70.php">http://php.net/manual/en/migration70.php</a></p><p>Deprecated features in PHP 7.0.x <a href="http://php.net/manual/en/migration70.deprecated.php">http://php.net/manual/en/migration70.deprecated.php</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2f9926e1f9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/introduce-new-features-in-php-7-8a2f9926e1f9">Introduce New Features in PHP 7</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An introduction of PHP Design Patterns]]></title>
            <link>https://medium.com/oceanize-geeks/an-introduction-of-php-design-patterns-b0f75142e0b9?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0f75142e0b9</guid>
            <category><![CDATA[singleton]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[factory-pattern]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 10:52:10 GMT</pubDate>
            <atom:updated>2018-09-18T02:59:47.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*zgEfHDfuRjQMP7G7kTqY_A.png" /><figcaption>Design Patter</figcaption></figure><h3><strong>What is this ?</strong></h3><p><strong>D</strong>esign patterns represent the <strong>best practices</strong> used by experienced object-oriented software developers. Design patterns are solutions to general problems that software developers faced during software development.</p><p>Design Patterns have two main usages in software development arena.</p><ol><li><strong>Common platform</strong><br>A singleton design pattern signifies use of single object so all developers familiar with single design pattern will make use of single object and they can tell each other that program is following a singleton pattern.</li><li><strong>Best Practices</strong><br>Learning these patterns helps inexperienced developers to learn software design in an easy and faster way.</li></ol><p>There are so many like 23 design patterns which can be classified in three categories: Creational, Structural and Behavioral patterns. but here i will share the mostly used design pattern “<a href="https://en.wikipedia.org/wiki/Factory_pattern">Factory Pattern</a>” in the software development.</p><h3><strong>Factory Pattern:</strong></h3><p>One of the most commonly used design patterns is the factory pattern. In this pattern, a class simply creates the object you want to use. Consider the following example is using the factory pattern:</p><pre>&lt;?php</pre><pre>class Automobile<br>{<br> private $vehicleMake;<br> private $vehicleModel;</pre><pre>public function __construct($make, $model)<br> {<br> $this-&gt;vehicleMake = $make;<br> $this-&gt;vehicleModel = $model;<br> }</pre><pre>public function getMakeAndModel()<br> {<br> return $this-&gt;vehicleMake . ‘ ‘ . $this-&gt;vehicleModel;<br> }<br>}</pre><pre>class AutomobileFactory<br>{<br> public static function create($make, $model)<br> {<br> return new Automobile($make, $model);<br> }<br>}</pre><pre>// have the factory create the Automobile object<br>$veyron = AutomobileFactory::create(‘Toyota’, ‘Honda’);</pre><pre>print_r($veyron-&gt;getMakeAndModel()); // outputs “Toyota Honda”</pre><pre>?&gt;</pre><p>This code uses a factory to create the Automobile object. There are two possible benefits to building your code this way; the first is that if you need to change, rename, or replace the Automobile class later on you can do so and you will only have to modify the code in the factory, instead of every place in your project that uses the Automobile class. The second possible benefit is that if creating the object is a complicated job you can do all of the work in the factory, instead of repeating it every time you want to create a new instance.</p><p>The example code used here is so simple that a factory would simply be adding unneeded complexity. However if you are making a fairly large or complex project you may save yourself a lot of trouble down the road by using factories.</p><p>Here is some references if you want to learn more and dive into it.</p><p><a href="https://en.wikipedia.org/wiki/Architectural_pattern">Architectural pattern on Wikipedia</a><br><a href="https://en.wikipedia.org/wiki/Software_design_pattern">Software design pattern on Wikipedia</a><br><a href="https://code.tutsplus.com/courses/php-design-patterns/lessons/introduction">Collection of PHP design pattern</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0f75142e0b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/an-introduction-of-php-design-patterns-b0f75142e0b9">An introduction of PHP Design Patterns</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upgrade lower version to latest PHP version in XAMPP on Windows]]></title>
            <link>https://medium.com/oceanize-geeks/how-to-upgrade-lower-version-to-latest-php-version-in-xampp-on-windows-f7be9a70bbb0?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7be9a70bbb0</guid>
            <category><![CDATA[latest]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[xampp]]></category>
            <category><![CDATA[version]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 10:10:33 GMT</pubDate>
            <atom:updated>2017-12-29T10:47:46.962Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*QYbvkBHXAuoEibJlMvosVg.png" /></figure><p>It is not very complex but some time very essential when we need latest version of php for new project without changing the current local server settings.</p><p>so i am trying to cover the changing the version by keeping the old version manually.</p><p>PHP 7.0.0 is released on 3rd Dec. 2015. It comes with more strong features which I listing below:–</p><ul><li>PHP 7 is almost twice as fast as lower version of PHP</li><li>Low memory usage</li><li>Facilitates Error Handling</li><li>64-Bit Windows Systems Support</li><li>New Spaceship and Null Coalescing Operators</li><li>Enables Accurate Type Declarations</li><li>Add Anonymous Classes</li><li>Facilitates Imports From the Same Namespace</li><li>Introducing null coalescing &amp; Spaceship operator and more</li></ul><p>Find more on <a href="http://php.net/manual/en/migration72.php">http://php.net/manual/en/migration72.php</a></p><p>Now i am going to show how you will overcome this situation. my present php version is php-5.6.36</p><p><strong>Step 1:</strong> First download the latest php version from <a href="http://windows.php.net/download#php-7.0">http://windows.php.net/download#php-7.0</a> Download the <strong>VC14 x86</strong> Thread Safe or <strong>VC14 x64</strong> Thread Safe deciding upon your Windows version( x86 for 32-bit and x64 for 64-bit ). Next extract the zip file in a folder named <strong>php</strong>.</p><p><strong>Step 2:</strong> Go to your XAMPP installation directory and rename your old php directory with old version prefix like php to php_5_6_36. Now copy &amp; paste the extracted new php folder to here.</p><p><strong>Step3:</strong> Next, open httpd-xampp.conf from XAMPP configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Xn3k-dEF-cEWxeA-mUd0Uw.jpeg" /></figure><p>On PHP-Module setup section, comment these two lines and add the two lines below</p><blockquote><strong>#<br># PHP-Module setup<br>#<br>#LoadFile “D:/xampp/php/php5ts.dll”<br>#LoadModule php5_module “D:/xampp/php/php5apache2_4.dll”<br>LoadFile “D:/xampp/php/php7ts.dll”<br>LoadModule php7_module “D:/xampp/php/php7apache2_4.dll”</strong></blockquote><p>That’s it. Now restart your XAMPP server and keep coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*alPpTHFKr-yxyPHHkB6ulg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7be9a70bbb0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/how-to-upgrade-lower-version-to-latest-php-version-in-xampp-on-windows-f7be9a70bbb0">How to upgrade lower version to latest PHP version in XAMPP on Windows</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to delegation protocol OAuth 2.0]]></title>
            <link>https://medium.com/oceanize-geeks/an-introduction-to-delegation-protocol-oauth-2-0-5445b0468801?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/5445b0468801</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[oauth2]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 10:41:47 GMT</pubDate>
            <atom:updated>2017-12-01T08:32:52.376Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the version 2 of the OAuth protocol. It can be referred to as a authorization framework. Google and popular social websites like Facebook and Twitter also uses OAuth2 protocol for authentications and authorizations.</p><p>So simply OAuth protocol is a secure authorization protocol that deals with the authorization of third party application to access the user data without exposing their password. eg. (Login with fb, gPlus, twitter in many websites..) all work under this protocol.</p><p>Before dive into details about OAuth need to know about authentications and authorizations.</p><p><strong>Authentications: </strong>Authentication is the process of verifying the identity of a user by obtaining some sort of credentials for example user’s username password combination, and using those credentials to verify the user’s identity.</p><p><strong>Authorizations: </strong>Authorization is the process of allowing an authenticated user to access resources by checking whether the user has access rights to the system. You can control access rights by granting or denying specific permissions to an authenticated user. So If the authentication was successful, the authorization process starts. Authentication process always proceeds to Authorization process.</p><p>So check the overview of OAuth 2 roles, use cases, and flows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*fyfmxv1QjNyo9uan1YZroQ.png" /><figcaption>Protocol Flow</figcaption></figure><p><strong>Roles:</strong></p><p>OAuth2 defines 4 roles</p><p><strong>Resource Owner:User</strong> The resource owner is the user who authorizes an application to access their account. The application’s access to the user’s account is limited to the “scope” of the authorization granted (e.g. read or write access).</p><p><strong>Resource Server:API</strong> server hosting protected data/resources. (for example Google hosting your personal information such as contacts).</p><p>From an application developer’s point of view, a service’s API fulfills both the resource and authorization server roles. We will refer to both of these roles combined, as the Service or API role.</p><p><strong>Client:Application</strong> The client is the application that wants to access the user’s account. Before it may do so, it must be authorized by the user, and the authorization must be validated by the API.</p><p><strong>Authorization Server:</strong> server issuing <strong>access token</strong> to the client. This token will be used for the client(application) to request the resource server. This server can be the same as the authorization server for example Google authorization server.</p><p><strong>Tokens</strong><br>When the client application is authorized by the resource owner, the authorization server issues an token. The client application can use that token to access resource server APIs. These tokens are random string generated by the authorization server.</p><p>There are two type of token :-</p><p><strong>Access token: </strong>This token allows a third-party application to access user data on a resource server. This token is sent by the client as a parameter or as a header in the request to the resource server and it has a limited lifetime.</p><p><strong>Refresh Token: </strong>This token is issued with the access token but unlike the latter, it is not sent in each request from the client to the resource server. The client application can simply use a refresh token to renew access token when it expires.</p><p><strong>Access Token Usage: </strong>Once the application has an access token, it may use the token to access the user’s account via the API, limited to the scope of access, until the token expires.</p><p>Here is an example of an <strong>API</strong> request, using <strong>curl :-</strong></p><blockquote>curl -X POST -H “Authorization: Bearer ACCESS_TOKEN” <a href="https://api.digitalocean.com/v2/$OBJECT">https://api.example.com/v2/</a>$object&quot;</blockquote><p>Assuming the access token is valid, the API will process the request according to its API specifications. If the access token is expired or otherwise invalid, the API will return an “invalid_request” error.</p><p><strong>Refresh Token Usage:</strong> After an access token expires, using it to make a request from the API will result in an “Invalid Token Error”. At this point, if a refresh token was included when the original access token was issued, it can be used to request a fresh access token from the authorization server.</p><p>Here is an Example:-</p><blockquote><a href="https://cloud.digitalocean.com/v1/oauth/token?grant_type=refresh_token&amp;client_id=CLIENT_ID&amp;client_secret=CLIENT_SECRET&amp;refresh_token=REFRESH_TOKEN">https://cloud.example.com/v1/oauth/token?grant_type=refresh_token&amp;client_id=CLIENT_ID&amp;client_secret=CLIENT_SECRET&amp;refresh_token=REFRESH_TOKEN</a></blockquote><p>I think we should now have a basic idea of how OAuth 2 works.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5445b0468801" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/an-introduction-to-delegation-protocol-oauth-2-0-5445b0468801">An Introduction to delegation protocol OAuth 2.0</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Active Record and Data Mappers of ORM Pattern]]></title>
            <link>https://medium.com/oceanize-geeks/the-active-record-and-data-mappers-of-orm-pattern-eefb8262b7bb?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/eefb8262b7bb</guid>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[data-mapper]]></category>
            <category><![CDATA[orm]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Tue, 26 Sep 2017 09:16:00 GMT</pubDate>
            <atom:updated>2017-09-27T04:05:32.781Z</atom:updated>
            <content:encoded><![CDATA[<p>Because Web Applications become more and more complex and users demand more and more. So we must focus on performance. Since querying the database is a sensitive point for performance of application so the focus of this article will be the performance impact of “Active Record” and “Data Mappers”.</p><p><strong>Before dive into the deep let’s see what is ORM ?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*EICPNHgVOD-PDEQECc2IiQ.png" /><figcaption>ORM</figcaption></figure><p>Object-relational mapping (ORM, O/RM, and O/R mapping tool) in computer science is a programming technique for converting data between incompatible type systems using object-oriented programming languages. This creates, in effect, a “virtual object database” that can be used from within the programming language. There are both free and commercial packages available that perform object-relational mapping, although some programmers opt to construct their own ORM tools.</p><p>So simply we can say that ORM (Object Relational Mapper) is the layer that sits between your database and your application.</p><p><strong>Active Record: The Web’s Favorite ORM</strong></p><p>“The active record pattern is an approach to accessing data in a database. A database table or view is wrapped into a class. Thus, an object instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save. Any object loaded gets its information from the database. When an object is updated the corresponding row in the table is also updated. The wrapper class implements accessor methods or properties for each column in the table or view.”</p><ul><li><strong>Simple.</strong> Because of how tightly matched the records in your database and the objects in your system are conceptually, it’s really easy to pick up a project, examine its database schema, and have a strong sense of what the project is doing. What makes this great is that the ORM layers have a minimal amount of indirection. What you see in the database or objects is likely what exists in the other.</li><li><strong>Easy to understand</strong>. This flows directly out of the simplicity, but you’ll also probably have a pretty intuitive understanding of how you can work with this system even if you’ve never had the least exposure to an ORM before. Its simplicity is merciful and easy.</li></ul><p><strong>Data Mapper:</strong></p><p>“A Data Mapper is a Data Access Layer that performs bidirectional transfers of data between a persistent data store (often a relational database) and an in memory data representation (the domain layer). The goal of the pattern is to keep the in memory representation and the persistent data store independent of each other and the data mapper itself. The layer is composed of one or more mappers (or Data Access Objects), performing the data transfer. Mapper implementations vary in scope. Generic mappers will handle many different domain entity types, dedicated mappers will handle one or a few.”</p><p>The biggest difference between the data mapper pattern and the active record pattern is that the data mapper is meant to be a layer between the actual business domain of your application and the database that persists its data. Where active record seeks to invisibly bridge the gaps between the two as seamlessly as possible, the role of the data mapper is to allow you to consider the two more independently. Java’s Hibernate and PHP’s Doctrine2 are the two prototypical data mapper facilitators in my mind, though I have little doubt that there are many others.</p><p><strong>The Good: What Data Mappers Allow</strong></p><ul><li><strong>Allows for greater flexibility between domain and database</strong>. As we mentioned above, one of the prototypical reasons that you’ll want to use a data mapper is that you as the application architect do not actually have final say on the database scheme. Where you’ve got a historical database, or a new database with an unfriendly gatekeeper, the data mapper pattern allows you to hide the ways in which you database isn’t an ideal way to think about your domain behind the whole data-mapping layer.</li><li><strong>Can be much more performance.</strong> Similarly, because you do have a layer of abstraction and indirection between your domain objects and your database, there’s a good possibility that you can have the data mapper make more efficient use of the database than a naive active record implementation would allow.</li></ul><p><strong>Conclusion :</strong></p><p>I strongly believe that both the Active Record and the Data Mapper patterns have a place within our developer tool belts. I think it is wrong to categorically say that one pattern is better than the other. Hopefully I’ve shown in this article that each pattern has a time and a place.</p><p>Choosing the wrong pattern for an application will always be a mistake, but you can’t blame the tools at your disposal. By being aware of the different methods and ideologies of patterns such as Active Record or Data Mapper, we can make better, more informed decisions on the tools we choose for the current project.</p><ul><li>Use an ORM based on ActiveRecord if you do not have logic in your application.</li><li>Use an ORM based on DataMapper for more complex models, especially if you need to abstract the domain objects from the database representation.</li><li>When performance is needed, don’t try to optimize the ORM queries, just go back to pure SQL with a DataMapper.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eefb8262b7bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/the-active-record-and-data-mappers-of-orm-pattern-eefb8262b7bb">The Active Record and Data Mappers of ORM Pattern</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Composer — the heart of Modern PHP Apps development]]></title>
            <link>https://medium.com/oceanize-geeks/introducing-composer-the-heart-of-modern-php-apps-development-b18dfecdd6f?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/b18dfecdd6f</guid>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[dependencies]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Thu, 31 Aug 2017 10:01:44 GMT</pubDate>
            <atom:updated>2017-08-31T10:46:47.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*H4uyxbaTmtvf9SmofGdjMQ.jpeg" /></figure><p>Managing app dependencies manually in any programming language is a huge pain. This is why in most programming languages today you will find that they all have some implementation of a dependency management system or sometimes a package manager. Composer is the dependency management system that you will find inside most modern PHP projects.</p><p>My goal is to try and show you the basics of using Composer to install packages and libraries into your future projects.</p><p>We will need to understand what Composer is, what it will do for us, and explore the why before we get into the how. Composer manages all of your project dependencies and keeps them in a clean folder structure and tracks versions as well. For example, if your project needs to have PHPUnit installed for testing, you would tell Composer that you need PHPUnit and the specific version you want. Then you would run an install command. Composer would then go out and search for the package and version you requested and download it for you. Not only will it download your requested package, but also any other packages that your requested project requires to work. It will keep all of these dependencies in a folder named vendor which helps to keep your project nice and clean.</p><p><strong>Before we go into detail, there are two things that we need to have in mind:</strong></p><h3><strong>What Composer is:</strong></h3><p>As we can see on their website: “Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.” <strong>And need to keep in mind that Composer is not a package manager.</strong></p><h3><strong>Getting Composer:</strong></h3><p>There are two ways of installing Composer: locally and globally. Because Composer is such a useful and widespread tool, I always recommend installing it globally, as you’ll probably be working on more than one project at once. And you will able to install via Using the Installer or install manually.</p><p><strong>Running the composer command shows the information page:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnRcn31KOX__rtD4vP9WQw.jpeg" /><figcaption>information page after running composer command</figcaption></figure><p><strong>Some of Composer’s more useful commands are:</strong></p><ul><li><strong>composer help</strong> &lt;command&gt; — will show the help page for a given command.</li><li><strong>composer self update</strong> — Updates composer to the latest available version.</li><li><strong>composer search</strong> — Searches for packages.</li><li><strong>composer status</strong> — Shows a list of dependencies that have been modified locally. If we install something from the source (using the — prefer-source option), we will end up with a clone of that package in the /vendor folder. If we make some changes to that package, the composer status command will show us a git status for those changes.</li><li>composer diagnose — Diagnoses the system for common errors. This is especially useful for debugging, as it checks for things like connectivity to Packagist, free disk space, and git settings.</li></ul><h3><strong>Using Composer:</strong></h3><p>To manage dependencies in a project, Composer uses a json file. This file describes all the dependencies, and holds some metadata as well. composer init will launch the wizard. The wizard will guide us through the generation of our composer.json file.</p><p>If you used composer init or the manual method, you need to run composer install. This will download all the dependencies needed for the packages described in the composer.json file.</p><p>The first time you run the composer install command, the dependencies are downloaded and their installed versions are registered in the composer.lock file. The next time someone runs composer install on the project, it will not get the latest available package versions, but the ones that are registered in the composer.lock file. This way, Composer ensures that your project doesn’t break due to unexpected code changes in newer versions of the packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkKlWfVrYTu_paZG0seLMg.png" /></figure><h3>Updating Your Packages:</h3><p>The composer.lock file ensures that everyone in the project uses the same version of the packages by not allowing newer versions to be downloaded.</p><p>If for any reason we want to stick to a particular version, than we should mention the appropriate version in the composer.json file.</p><p><strong>But what if we want to update our dependencies to the latest versions?</strong></p><p>To update dependencies, Composer provides the composer update command. This command will not only download the latest versions of our dependencies, it will also update the composer.lock file to the new versions. Running composer update is actually the same as deleting composer.lock and then re-running composer install.</p><h3>The Vendor Folder:</h3><p>Composer downloads all dependencies into the /vendor folder, which it creates if it doesn’t exist. It also creates a vendor/autoload.php file.</p><h3><strong>Autoloading:</strong></h3><p>The autoloading provided by Composer to access the project’s dependencies is very useful, and can also be used to access our own application’s code. To do this, we need to register our code in the composer.json file using the autoload key.</p><pre>{<br>    &quot;autoload&quot;: {<br>        &quot;psub-4&quot;: {&quot;Foo\\&quot;: &quot;src/&quot;}<br>    }<br>}</pre><p>First, Composer will register a <strong>PSUB-4</strong> autoloader for the Foo namespace.</p><h3>Conclusion:</h3><p>This is all about important and useful topic about composer. Hopefully this has given you a good overview of how to use composer to install and manage project dependencies within your PHP projects!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b18dfecdd6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/introducing-composer-the-heart-of-modern-php-apps-development-b18dfecdd6f">Introducing Composer — the heart of Modern PHP Apps development</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile software development methodologies, process and implementation in sort?]]></title>
            <link>https://medium.com/oceanize-geeks/agile-software-development-methodologies-process-and-implementation-in-sort-68ef55e818f4?source=rss-9cc13878a746------2</link>
            <guid isPermaLink="false">https://medium.com/p/68ef55e818f4</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[agile-testing]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[agile-development]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <dc:creator><![CDATA[Utpal Biswas]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 08:34:02 GMT</pubDate>
            <atom:updated>2017-08-31T11:05:45.610Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong></p><p>This article is about introduction to agile software development methodologies, agile processes and implementation and why Software Company and developer need to know and flow these methodologies and process of it in shortly. It is about how to work together to achieve a common goal.</p><p>This article focus on how development team work together well to plan, develop and deliver software, This is not only suitable for software developers but also for Team Leaders, Project Managers, Product Managers, Development Managers, Testers, QA Managers, QA Engineers, Technical Writers, UX Designers, anyone involved in the developing and delivering software. It does not talk about only code or specific technologies. It is about from head to tail software development process.</p><p>In software engineering, a software development process is the process of dividing software development work into distinct phases to improve design, product management, and project management. It is also known as a software development life cycle. The methodology may include the per-definition of specific deliverables and artifacts that are created and completed by a project team to develop or maintain an application.<br> <br> There are different kind of method is available and these are used according to project kind and the project nature but now a day’s modern development processes described as <strong>agile</strong>.</p><p>Other methodologies include:</p><p>➢ <strong>waterfall</strong></p><p>➢ <strong>prototyping</strong></p><p>➢ <strong>iterative</strong></p><p>➢ <strong>incremental development</strong></p><p>➢ <strong>spiral development</strong></p><p>➢ <strong>rapid application development</strong></p><p>➢ <strong>extreme programming</strong></p><p><strong>AGILE:</strong></p><p>Before dive into deep, let’s start by defining this first. Agile software development refers to a group of software development methodologies based on iterative development, where requirements and solutions evolve through collaboration between self-organizing cross-functional teams. Agile methods or Agile processes generally promote a disciplined project management process that encourages frequent inspection and adaptation, a leadership philosophy that encourages teamwork, self-organization and accountability, a set of engineering best practices intended to allow for rapid delivery of high-quality software, and a business approach that aligns development with customer needs and company goals.</p><p>OK let’s talk about the ultimate goal and agile alert. The principles and values of agile software development were formed as a way to help teams to break the cycle of process inflation and mainly focus on simple techniques for achieving their goals. So what is the <strong>goal</strong>?</p><p>The main goal of every software developer and every development team is to deliver the highest possible product or value to employers and the customers.</p><p>The participants or team members in an agile process are not afraid of change. They view changes to the requirements as good things, because those changes mean that the team has learned more about what it will take to satisfy the customer. Agile team members work together on all aspects of the project. Each member is allowed input into the whole. No single team member is solely responsible for the architecture or the requirements or the tests. The team shares those responsibilities, and each team member has influence over them.</p><p>For use the agile method there are many processes of implementations like:</p><p>➢ SCRUM</p><p>➢ Crystal</p><p>➢ Behavior-Driven Development (BDD)</p><p>➢ Test-Driven Development (TDD)</p><p>➢ Feature-Driven Development (FDD)</p><p>➢ Adaptive Software Development (ADP)</p><p>➢ Extreme Programming (XP)</p><p>➢ and more…</p><h4>SCRUM:</h4><p>Between all of these processes, i am going to talk about “Scrum” because it is one of the most popular processes for implementing agile. It’s very popular in fact, many people think scrum and agile are the same thing. That’s not true. Many processes can be used to implement agile, such as “kanban” for example, but scrum has a unique flavor because of the commitment to short iterations of work.</p><p>With scrum, the product is built in a series of fixed-length iterations called sprints that give teams a frame for shipping software on a regular tone.</p><p>Scrum has four process that bring structure to each sprint and do pure agile implementation</p><p>➢ <strong>Sprint planning:</strong> A team planning meeting that determines what to complete in the coming sprint.</p><p>➢ <strong>Daily stand-up:</strong> Also known as a daily scrum, a 15-minute mini-meeting for the software team to sync.</p><p>➢ <strong>Sprint demo:</strong> A sharing meeting where the team shows what they’ve shipped in that sprint.</p><p>➢ <strong>Sprint retrospective:</strong> A review of what did and didn’t go well with actions to make the next sprint better.</p><h3>For complete implementation this agile process some roles are responsible and the process becomes success.</h3><h3>Scrum Roles:</h3><p>These are core roles for producing the product:</p><p>➢ Product Owner</p><p>➢ Scrum Teams</p><p>➢ Scrum Master</p><p>➢ Stakeholders</p><p>➢ Managers</p><p>Between of these roles here is the main three roles that Scrum become success.</p><p>The first one is “<strong>Product Owner</strong>” who builds and manages the product backlog, give the team clear guidance on which features to deliver next and decide when to ship product.</p><p>Second one is “<strong>scrum master</strong>” the heart or coach of the team. As a coach scrum master must have deeply understands the work being done by the team and can help the team optimize their delivery flow.</p><p>Third one is “<strong>Scrum teams</strong>”. The most effective scrum teams are tight-knit, co-located, and usually 5 to 7 members. Team members have differing skill sets, and cross-train each other so no one person becomes a bottleneck in the delivery of work.</p><p><strong>Conclusion</strong>:</p><p>A best agile team picks and chooses the management and technical practices that best work for them. When trying to adopt agile practices, there will be a ton of excuses as why it won’t work. Those who understand the real benefits of the approach and genuinely want to make the transition will likely have success.</p><p>Not Agile. It’s important to remember that Scrum and Agile methodologies are not a one-time look at a company’s process, it’s an on-going philosophy based on continuous improvement.</p><p>In the end of this topic, let me leave you with some words:</p><p><strong><em>“In preparing for battle I have always found that plans are useless, but planning is indispensable</em></strong><em>.”</em> — General Dwight David Eisenhower</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68ef55e818f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/agile-software-development-methodologies-process-and-implementation-in-sort-68ef55e818f4">Agile software development methodologies, process and implementation in sort?</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>