<?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:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Bhupinder Singh]]></title><description><![CDATA[Thoughts, stories and ideas]]></description><link>https://superpower.dynamicsingh.com/</link><image><url>https://superpower.dynamicsingh.com/favicon.png</url><title>Bhupinder Singh</title><link>https://superpower.dynamicsingh.com/</link></image><generator>Ghost 4.32</generator><lastBuildDate>Sun, 14 Dec 2025 06:17:35 GMT</lastBuildDate><atom:link href="https://superpower.dynamicsingh.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Relationship analysis between you and your code]]></title><description><![CDATA[<p>Software Engineering is a fascinating world, today millions of developers spend their time crafting new pieces of miracle and reading code snippets from developers across the planet. Let&apos;s talk about your interesting relationship with naming a simple variable today.</p><p>The naming of variables has an emotional meaning attached</p>]]></description><link>https://superpower.dynamicsingh.com/relationship-analysis-of-code/</link><guid isPermaLink="false">5ec6494e7888da00017d7eee</guid><category><![CDATA[Coding]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Thu, 21 May 2020 09:43:12 GMT</pubDate><media:content url="https://superpower.dynamicsingh.com/content/images/2023/07/1590055540100.jpeg" medium="image"/><content:encoded><![CDATA[<img src="https://superpower.dynamicsingh.com/content/images/2023/07/1590055540100.jpeg" alt="Relationship analysis between you and your code"><p>Software Engineering is a fascinating world, today millions of developers spend their time crafting new pieces of miracle and reading code snippets from developers across the planet. Let&apos;s talk about your interesting relationship with naming a simple variable today.</p><p>The naming of variables has an emotional meaning attached to the developer who has coded that program. Some of the factors influencing the code author to name those variables are:</p><ol><li>Author&apos;s understanding of that engineering problem.</li><li>How the code author solved a similar problem earlier i.e their past engineering experience.</li></ol><p>Also, there are some hidden factors which influence their decisions:</p><ol><li>Their life journey so far.</li><li>Their emotional state during which the author is coding that program.</li></ol><p><strong>Fun fact: </strong>So the author came up with that variable name. If you don&apos;t understand the author&apos;s thinking behind naming that variable, you may struggle to understand the whole program due to that single variable name.&#x202C;</p><p><strong>&#x202A;PRO TIPS:</strong></p><ol><li>Detach yourself from the name of the variables instead look at what does the program aims at doing and then you will understand the logic line by line.</li><li>As you have a different perspective of the world around you, you may come up with the idea of renaming those variables which according to you represents the logic better which is also a bias created by your brain. So don&#x2019;t start cursing the original author of the program.</li></ol><p><strong>Example: Reversing a singly linked list in-place</strong></p><p>&#x202A;Some people create temporary variables naming them as <strong>next</strong> and <strong>prev</strong> to accomplish swapping of nodes and pointers, logically and conceptually singly linked list have no previous pointer.</p><p>So now you are confused looking at the program what is the role of variable <strong>prev</strong> here. Instead of getting confused, you should think about what does this program aims to solve. You should go through the code and understood it based on the operations being performed. Suddenly you will have a Eureka moment, now you come up with the idea of renaming those temporary variables as <strong>nextNode</strong> and <strong>newNextPtr</strong> which makes a little bit more sense but maybe it&apos;s just for you.</p><p>That&apos;s why understanding the moral, events, decisions, actions of any story are much more important than the character names and their fashion sense in any movie or a book &#x1F61D;&#x202C;</p><p>&#x202A;That&#x2019;s one of the hidden reason it&apos;s important to get your pull request reviewed thoroughly so that the code could be understood and be relatable by most of the people removing all the emotional and hidden past experiential baggage from it.</p><p><strong>TIPS for reviewing a pull request, please check that:</strong></p><ol><li>PR is small enough (otherwise, break it up)</li><li>Variable names signify what they are being used for.</li><li>Code is readable and understandable.</li><li>Code is unit tested</li><li>The features are documented</li><li>Files are located and named correctly.</li><li>Files are following a decided naming convention like camelCase, PascalCase, snake_case, kebab-case.</li><li>Error states are properly handled</li><li>Bonus: Screenshots/screencast demo included</li></ol><p>Keep creating and contributing to the world while exchanging your positive thoughts, ideas, actions to improve everything you come across in your life whether its a piece of code, place or a person. Happy Coding!</p>]]></content:encoded></item><item><title><![CDATA[React + Redux + Redux Thunk, up and running]]></title><description><![CDATA[This blog aims to help you setup React with Redux, understand the why behind the usage of Redux, core benefits. You can use my starter kit repo to kickstart your latest gig!]]></description><link>https://superpower.dynamicsingh.com/react-redux-redux-thunk-up-and-running/</link><guid isPermaLink="false">5e1b5dda7888da00017cf8a2</guid><category><![CDATA[React]]></category><category><![CDATA[Up and running a.k.a. starterkits]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Fri, 19 Oct 2018 11:40:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1468091730376-d3b5558b71ab?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1468091730376-d3b5558b71ab?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="React + Redux + Redux Thunk, up and running"><p>This blog aims to help you setup React with Redux and you can use my starter kit to kickstart your latest gig!</p><h3 id="when-do-i-need-redux">When do I need Redux?</h3><ul><li>Complex data flows</li><li>Inter-component communication</li><li>Non-hierarchical data</li><li>Many actions</li><li>Same data used in multiple places</li></ul><h3 id="3-principles-of-redux">3 principles of Redux</h3><ol><li>One immutable store</li><li>Action trigger changes</li><li>Reducers update state</li></ol><h3 id="flux-and-redux-similarities">Flux and Redux Similarities </h3><ul><li>Unidirectional flow</li><li>Actions</li><li>Stores</li></ul><p><strong>Flux Vs Redux</strong></p><!--kg-card-begin: html--><table>
    <tr>
        <td><strong>Flux</strong></td>
        <td><strong>Redux</strong></td>
    </tr>
    <tr>
        <td>Stores contain state and change logic</td>
        <td>Store and change logic are seperate</td>
    </tr>
    <tr>
        <td>Multiple stores</td>
        <td>One store</td>
    </tr>
    <tr>
        <td>Flat and disconnected stores</td>
        <td>Single store with hierarchical reducers</td>
    </tr>
    <tr>
        <td>Singleton dispatcher</td>
        <td>No dispatcher</td>
    </tr>
    <tr>
        <td>React components subscribe to stores</td>
        <td>Contain components utilize connect</td>
    </tr>
    <tr>
        <td>State is mutated</td>
        <td>State is immutable</td>
    </tr>
</table><!--kg-card-end: html--><p></p><p><strong>Pre-requisites</strong></p><ul><li>Knowledge of React and Redux </li><li>NPM 6.2.0</li><li>Node v8+</li></ul><p></p><p><strong>Action Creator</strong></p><pre><code>sampleActionCreator(updateVal) {
	return {
		type: &quot;SAMPLE_ACTION_TYPE&quot;,
		val: updateVal 
	};
}</code></pre><p><strong>Creating Redux Store</strong></p><pre><code>let store  = createStor(rootReducer);</code></pre><p>Redux Store</p><ul><li>store.dispatch(action)</li><li>store.subscribe(listner)</li><li>store.getState()</li><li>replaceReducer(nextReducer)</li></ul><p>The only way you can change the store is by dispatching an action.</p><p><strong>Creating a reducer, reducers must be pure</strong></p><pre><code>const initialState = {counter : 0};

export default function sampleReducer(state = initialState, action) {
    let newState;
    switch (action.type) {
        //add your cases according to action types
        case &quot;SAMPLE_ACTION_TYPE&quot;:
            /* do the changes to state, keep in mind that state should be kept immutable */
             newState = {...state};
             newState.counter = newState.counter + action.val;
            return newState;

        default: return state;
    }
}</code></pre><p>Forbidden in Reducers</p><ul><li>Mutate arguments</li><li>Perform side effects</li><li>Call non-pure functions like Date.now() or Math.random() etc.</li></ul><p>Each reducer is a slice of application state</p><p>Write independent small reducer function that are each responsible for updates to a specific slice of state. We call this pattern &quot;<strong>reducer composition</strong>&quot;. A given action could be handled by all, some or non of the reducer functions. A particular reducer function runs in accordance with the action type specified by the action dispatched.</p><p><strong>Connecting React with redux</strong></p><ul><li>Provider</li><li>Connect</li></ul><p>React redux provider</p><pre><code>&lt;Provider store={store}&gt;
    &lt;App/&gt;
&lt;/Provider&gt;</code></pre><p>Connect</p><p><em>Wraps our component so its connected to redux store.</em></p><pre><code>export default connect(
	mapStateToProps,
	mapDispatchTopProps
)(SamplePage)</code></pre><p>Notice that here connect is a Higher order component.<em> (Concretely, <strong>a higher-order component is a function that takes a component and returns a new component.)</strong></em></p><p><strong>Benefits:</strong></p><ul><li>No manual unsubscribe</li><li>No lifecycle method required</li><li>Declared what subset of state you want</li><li>Enhanced performance for free</li></ul><p><strong>A chat with Redux </strong></p><p><strong>React:</strong> Hey SampleAction, someone clicked this &quot;Increment Value&quot; button</p><p><strong>Action:</strong> Thanks React!, I will dispatch an action so reducers that care can update state</p><p><strong>Store: </strong>Ah, thanks action. I see you passed me the current state and the action to perform. I&apos;ll make a new copy of the state and return it.</p><p><strong>React-Redux: </strong>Wow, thanks for the new date Store. I will now intelligently determine if I should tell React about this change so that it only has to bother with updating the UI when necessary.</p><p><strong>React: </strong>I got the new data that has been passed down via props from the store. I&apos;ll update the UI to reflect this!</p><p><strong>Why we are using Redux Thunk?</strong></p><p>Redux Thunk is a <a href="https://github.com/reactjs/redux/blob/master/docs/advanced/Middleware.md">middleware</a> allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. We can utilize action creators to achieve tasks like calling APIs, calling promises and only dispatching once we have received the response from the called entity.</p><p><em>Popular alternative to redux thunk : <strong><a href="https://github.com/redux-saga/redux-saga">Redux Saga</a></strong></em></p><hr><p>Link to this starter kit : <a href="https://github.com/dynamicsingh/create-react-redux-thunk-app">https://github.com/dynamicsingh/create-react-redux-thunk-app</a></p><p><em><strong>Follow this repository as I keep updating as per the new version releases.</strong></em></p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[GraphQL + NodeJS up and running]]></title><description><![CDATA[This blogs aims to help you setup GraphQL with NodeJS from scratch and help you make your own starter kit.]]></description><link>https://superpower.dynamicsingh.com/graphql-up-and-running/</link><guid isPermaLink="false">5e1b5dda7888da00017cf89f</guid><category><![CDATA[NodeJS]]></category><category><![CDATA[GraphQL]]></category><category><![CDATA[Up and running a.k.a. starterkits]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Fri, 28 Sep 2018 13:21:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1472722266948-a898ab5ff257?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1472722266948-a898ab5ff257?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="GraphQL + NodeJS up and running"><p>This blogs aims to help you setup GraphQL with NodeJS from scratch and help you make your own starter kit.</p><p>GraphQL is a very powerful query language used to communicate data between client and server.</p><ul><li>It allows more flexible &amp; efficient approach than REST.</li><li>No more Over- and Underfetching</li><li>Benefits of a Schema &amp; Type System</li><li>Rapid Product Iterations on the Frontend</li><li>GraphQL is platform independent</li></ul><p><strong>Pre-requisites</strong></p><ul><li>Initial knowledge of GraphQL </li><li>NPM 6.2.0</li><li>Node v8+</li></ul><h3 id="creating-graphql-server-on-nodejs-using-express">Creating GraphQL server on NodeJS using express</h3><ul><li>We will setup entry point to the graph in NodeJS.</li></ul><p>Go to your terminal application</p><p>create a new directory</p><pre><code>mkdir graphql_proj</code></pre><p>then move inside that directory</p><pre><code>cd graphql_proj</code></pre><p>Initiate a project using NPM which will create <code>package.json</code> used for our dependency management. </p><pre><code>npm init
</code></pre><p>answer all sort of questions like name of project, version, author, keywords, once done you would observe a package.json file inside the graphql_proj directory</p><h3 id="now-lets-installed-our-required-dependencies">Now lets installed our required dependencies</h3><pre><code>sudo npm install express --save</code></pre><p><strong>create express server</strong></p><p>create a file inside <code>graphql_proj</code> directory named <code>app.js</code> and use the following code to make your express server up and running</p><pre><code>const express = require(&apos;express&apos;);

const app = express();

app.listen(4000, () =&gt; console.log(&apos;Listening to 4000&apos;));
</code></pre><p>and run using node command</p><pre><code>node app.js
</code></pre><p>You should see &quot;Listening to 4000&quot; on your terminal.</p><h3 id="now-lets-setup-graphql-with-this-application">Now lets setup GraphQL with this application</h3><p>Install <code>graphql</code> and <code>express-graphql</code> for running GraphQL on our express server</p><pre><code>sudo npm install graphql express-graphql
</code></pre><p>once the dependencies are installed, we will setup an endpoint for graphQL using which client can interact to our GraphQL server.</p><pre><code>const express = require(&apos;express&apos;);

//allows express to understand graphql
const graphqlHTTP = require(&apos;express-graphql&apos;);

//initiate express
const app = express();

//setup middleware and graphqlHTTP handle graphql request
app.use(&apos;/graphql&apos;, graphqlHTTP({

}));

app.listen(4000, () =&gt; console.log(&apos;Listening to 4000&apos;));</code></pre><p>now if we open browser and goto <code>localhost:4000/graphql</code>, it gives</p><pre><code>{&quot;errors&quot;:[{&quot;message&quot;:&quot;GraphQL middleware options must contain a schema.&quot;}]}
</code></pre><p>to fix this error we will define the schema for our middleware function</p><p>Lets create our schema in &#xA0;in our schema directory</p><p>i.e <code>graphql_proj/schema/schema.js</code></p><p>We use <code>loadash</code> a commonly used library for data structure manipulation and operations.</p><pre><code>const graphql = require(&apos;graphql&apos;);
const {GraphQLObjectType, GraphQLString, GraphQLSchema} = graphql;

const _ = require(&apos;loadash&apos;);


//schema defines the object types and relation b/w object types
//so the graph will have vehicles and car-manufacturers as object types

//dummy data
const vehicles = [
    {name: &apos;Jeep Compass&apos;, type: &apos;SUV&apos;, id: &apos;1&apos;},
    {name: &apos;Mercedes-Benz A-Class&apos;, type: &apos;Hatchback&apos;, id: &apos;2&apos;},
    {name: &apos;Mercedes S class&apos;, type: &apos;Sedan&apos;, id: &apos;3&apos;}
];

const VehicleType = new GraphQLObjectType({
    name: &apos;Vehicle&apos;, //name of the object type
    fields: () =&gt; ({ //use function as will have multiple types
        id: {type: GraphQLString},
        name: {type: GraphQLString},
        type: {type: GraphQLString}
    })
});


const RootQuery = new GraphQLObjectType({ //how we can jump into graph
    name: &apos;RootQueryType&apos;,
    fields: {
        /* name of the query used
         when requested from graphiql */
        vehicle: {
            type: VehicleType,
            args: {id: {type: GraphQLString}},
            resolve(parent, args) {
                /*this is where we can place our code
                 get data from db or APIs in real scenerio*/
                return _.find(vehicles, {id: args.id});
            }
        }
    }
});

/*query for vehicle
    vehicle(id:&quot;2&quot;) {
        name,
        type
    }
 */


module.exports = new GraphQLSchema({
    query: RootQuery
});</code></pre><p>and now <code>graphql_proj/app.js</code> becomes</p><pre><code>const express = require(&apos;express&apos;);
const schema  = require(&apos;./schema/schema&apos;);
//allows express to understand graphql
const graphqlHTTP = require(&apos;express-graphql&apos;);

//initiate express
const app = express();

//setup middleware and graphqlHTTP handle graphql request
app.use(&apos;/graphql&apos;, graphqlHTTP({
    schema : schema
}));


app.listen(4000, () =&gt; console.log(&apos;Listening to 4000&apos;));</code></pre><p><strong>Now setting up graphiql (GraphQL client interface) in </strong><code>graphql_proj/app.js</code></p><pre><code>const express = require(&apos;express&apos;);
const schema  = require(&apos;./schema/schema&apos;);
//allows express to understand graphql
const graphqlHTTP = require(&apos;express-graphql&apos;);

//initiate express
const app = express();

//setup middleware and graphqlHTTP handle graphql request
app.use(&apos;/graphql&apos;, graphqlHTTP({
    schema : schema,
    graphiql: true //this is used to
}));


app.listen(4000, () =&gt; console.log(&apos;Listening to 4000&apos;));</code></pre><p>Now go to browser and you will see graphiql up and running at <code>http://localhost:4000/graphql</code></p><p>Now paste the following query on left side of graphiql GUI to see the result</p><pre><code>vehicle(id:&quot;2&quot;) {
	name,
	type
}</code></pre><p>I hope you enjoyed this blog.</p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Callbacks VS Promises VS Generators VS Async/Await]]></title><description><![CDATA[We will discuss the benefits and use case for each of the paradigm.]]></description><link>https://superpower.dynamicsingh.com/callbacks-vs-promises-vs-generators-vs-async-await/</link><guid isPermaLink="false">5e1b5dda7888da00017cf8a6</guid><category><![CDATA[Javascript]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Thu, 27 Sep 2018 19:12:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1485618609651-5a8bd6efc777?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1485618609651-5a8bd6efc777?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Callbacks VS Promises VS Generators VS Async/Await"><p>We will discuss the benefits and use case for each of the paradigm.</p><h3 id="callbacks">Callbacks</h3><ol><li>Callback is a Higher-order Function</li><li>Came as part of <strong>ES5</strong></li><li>Callback functions are derived from a programming paradigm known as functional programming</li><li><strong>Problem:</strong> Pyramid of Doom / Callback Hell &#x2013; when too many callbacks are nested in one another, it becomes difficult to understand and predict the code.</li></ol><p><em>example of simple callback</em></p><pre><code>function One(a, cb){
	cb(a+5);
}

One(4, (val)=&gt; { //callback function
	console.log(val);
});</code></pre><h3 id="promises">Promises</h3><ol><li>Use promises whenever you are using asynchronous or blocking code.</li><li>Each promise is immutable</li><li>Came as part of <strong>ES6</strong></li><li>Promises are used to avoid callback doom</li><li>Promises are more powerful than callback as they are compose-able</li><li>To run promises in parallel create an array of promises and then use <code>Promise.all(promisesArray)</code></li><li>Promise methods: <code>Promise.prototype.catch(onRejected)</code> <code>Promise.prototype.then(onFulfilled, onRejected)</code> <code>Promise.prototype.finally(onFinally)</code></li><li>Static methods: &#xA0;<code>Promise.reject(reason)</code> <code>Promise.resolve(value)</code> <code>Promise.all(iterable)</code> <code>Promise.race(iterable)</code></li></ol><pre><code>const myFirstPromise = new Promise((resolve, reject) =&gt; {
  // do something asynchronous which eventually calls either:
  //
  //   resolve(someValue); // fulfilled
  // or
  //   reject(&quot;failure reason&quot;); // rejected
});</code></pre><h3 id="generators">Generators</h3><ol><li>Came as part of <strong>ES6</strong></li><li>Generators are functions that you can use to control the iterator. They can be suspended and later resumed at any time.</li><li><em>Yield</em> returns a value only once, and the next time you call the same function it will move on to the next <em>yield</em> statement.</li><li>Generators achieve yield delegation using chaining</li><li>Generators return iterators, and it means we can actually iterate over it synchronously. </li></ol><pre><code>//ways of declaring generators

function * generator () {}
function* generator () {}
function *generator () {}

let generator = function * () {}
let generator = function* () {}
let generator = function *() {}

let generator = *() =&gt; {} // SyntaxError
let generator = ()* =&gt; {} // SyntaxError
let generator = (*) =&gt; {} // SyntaxError


class MyClass {
  *generator() {}
  * generator() {}
}

const obj = {
  *generator() {}
  * generator() {}
}</code></pre><pre><code>function * generator() {
  yield 5;
}

const gen = generator();

gen.next(); // {value: 5, done: false}
gen.next(); // {value: undefined, done: true}
gen.next(); // {value: undefined, done: true}
</code></pre><p><strong><em>For React Devs: </em></strong>Redux saga makes use of generators in sagas</p><pre><code>function* ourSaga() {
  yield take(&apos;START_REGISTRATION&apos;);
  yield put(showLoginPopup());
}

sagaMiddleware.run(ourSaga);</code></pre><p></p><h3 id="async-await">Async/Await</h3><ol><li>async function returns promise implicitly</li><li>Came as part of <strong>ES7</strong></li><li>The async function automatically knows what to do if you await a Promise&#x2014;it will pause the function (just like with generators) until the Promise resolves</li><li><code>async await</code> makes it much more easier to use promises. Developers from synchronous programming background will feel at home while using <code>async</code>and <code>await</code></li><li><code>await</code> blocks the execution of the code within the <code>async</code> function in which it is located.</li><li>If the output of <code>function2</code> is dependent on output of <code>function1</code> then I use <code>await</code>.</li><li>If two functions can be run in parallel create two different <code>async functions</code> and then run them in parallel.</li><li>Promise creation starts the execution of asynchronous functionality.</li><li>An asynchronous function is a function which operates asynchronously via the event loop, using an implicit <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"><code>Promise</code></a> to return its result. </li><li>Every time you use <code>await</code> remember that you are writing blocking code. Over the time we tend to neglect this.</li><li>If your code contains blocking code it is better to make it an <code>async</code>function. By doing this you are making sure that somebody else can use your function asynchronously.</li></ol><pre><code>function resolveAfter2Seconds() {
  return new Promise(resolve =&gt; {
    setTimeout(() =&gt; {
      resolve(&apos;resolved&apos;);
    }, 2000);
  });
}

async function asyncCall() {
  console.log(&apos;calling&apos;);
  var result = await resolveAfter2Seconds();
  console.log(result);
  // expected output: &apos;resolved&apos;
}

asyncCall();</code></pre>]]></content:encoded></item><item><title><![CDATA[Impression of Typography]]></title><description><![CDATA[When you choose a font, you not only make yourself aware of how you effect communication, but you also put yourself in reader’s shoes. ]]></description><link>https://superpower.dynamicsingh.com/impression-of-typography/</link><guid isPermaLink="false">5e1b5dda7888da00017cf878</guid><category><![CDATA[Typography]]></category><category><![CDATA[UX]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Sun, 20 May 2018 00:18:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1471890701797-59336a877de4?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1471890701797-59336a877de4?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Impression of Typography"><p>Before users start reading a single word of text on a web- site, they are already judging the typography. More than any other design element, type sends instant messages about a site&#x2019;s content and purpose. Typography&#x200A;&#x2014;&#x200A;its size, style, and system help to tell people what all this content is actually for. The quality and tone of a website&#x2019;s typography also send instant messages about the people who made the site. Good type makes you look good. Bad type makes you look bad. We&#x2019;ve all landed on a website that we immediately know is a dumping ground for stolen content and crappy ads. Without even reading that come-on for pimple cream or the latest work-at-home scheme, we&#x2019;re already hitting the back button in search of a more savoury place to invest our time. Type is design&#x2019;s smallest atomic unit&#x200A;&#x2014;&#x200A;the framework for everything we try to communicate with our boxes, grids, CSS properties, and the other elements that go into making a website. A typeface&#x2019;s contrast influences how small you can set that typeface so it&#x2019;s still legible on your phone. The tools we use and the choices we make affect a design up and down the supply chain. Typography is a design&#x2019;s voice.</p><p>When you choose a font, you not only make yourself aware of how you affect communication, but you also put yourself in reader&#x2019;s shoes. Don&#x2019;t just throw up your hands and use Helvetica (or, gasp!, Arial). You can do better than that, and I&#x2019;ll show you how. Let&apos;s move on and nail each and every aspect related to typography</p><p><strong>HOW WE READ</strong><br>Type and typography wouldn&#x2019;t exist without our need to express and record information. This is what makes typography not only an art of communication but one of nuance and craft because, like all communication, its value falls somewhere on a spectrum between success and failure. Reading is so intrinsic to every other thing about typography, it&#x2019;s the best place for us to begin. Wait wait what? Did I use the two words Type and Typography? But you might be thinking they are same! Let&apos;s make your concepts clear :</p><p><strong>Type:</strong> Characters or letters that are printed or shown on a screen.</p><p><strong>Typography: </strong> <em>Typography</em> is the art and technique of arranging type to make written language legible, readable, and appealing when displayed. The arrangement of type involves selecting typefaces, point size, line length, line-spacing (leading), letter-spacing (tracking), and adjusting the space within letters pairs (kerning).</p><p><strong>THE ACT OF READING</strong><br>When I first started designing websites, I assumed everyone read my work the same way I did. It&#x2019;s appealing to think that&#x2019;s the case, but reading is a much more nuanced experience. Reading is not only informed by what&#x2019;s going on with us at that moment but also governed by how our eyes and brains work to process information. What you see and what you&#x2019;re experiencing as you read these words is quite different. As our eyes move across the text, our minds gobble up the type&#x2019;s texture&#x200A;&#x2014;&#x200A;the sum of the positive and negative spaces inside and around letters and words. instead, our brains do the heavy lifting of parsing the text and assembling a mental picture of what we&#x2019;re reading. Without getting too scientific, let&#x2019;s look at the physical process of reading isn&#x2019;t linear. Instead, our eyes perform a series of back and forth movements called saccades, or lightning-fast hops across a line of text. A saccade&#x2019;s length depends on our proficiency as readers and our familiarity with the text&#x2019;s topic. If I&#x2019;m a scientist and reading, uh, science stuff, I may read it more quickly than a non-scientist, because I&#x2019;m familiar with all those science words.</p><figure class="kg-card kg-image-card"><img src="https://superpower.dynamicsingh.com/content/images/2019/07/1_wPczUDtKiMmC9YgsW8FmeA.gif" class="kg-image" alt="Impression of Typography" loading="lazy"></figure><p>Thank you, folks, for reading, this article was on special request of my friend Kushal Shah! I hope you guys like it!</p>]]></content:encoded></item><item><title><![CDATA[Some web typography rules for awesome readability !]]></title><description><![CDATA[Some awesome typographical rules which will help you ace the game of web development like a ninja. Follow these rules and make your user comfortable and happy.]]></description><link>https://superpower.dynamicsingh.com/some-web-typography-rules-for-awesome-readability/</link><guid isPermaLink="false">5e1b5dda7888da00017cf877</guid><category><![CDATA[UX]]></category><category><![CDATA[Typography]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Wed, 01 Nov 2017 14:03:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1534859108275-a3a6f52f0d46?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_qqR8mh605809r9jQF37MCw--1-.png" class="kg-image" alt="Some web typography rules for awesome readability !" loading="lazy"><figcaption>Type terminology, image credits: fontshop</figcaption></figure><img src="https://images.unsplash.com/photo-1534859108275-a3a6f52f0d46?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Some web typography rules for awesome readability !"><p>Some awesome typographical rules which will help you ace the game of web development like a ninja. Follow these rules and make your user comfortable and happy.</p><p><strong>1. Line height(in pixels) &#xF7; body copy font size(in pixels) = 1.48</strong><br>1.5 is commonly used in classic books or novels, we follow this thumb rule. There are very few websites using anything less than this. But all across the web 1.48 is the standard value which makes your content look stable and readable.</p><p><strong>2. Line length(pixels) &#xF7; line height(pixels)=27.8</strong><br>The average line length is 538.64 pixels(excluding padding and margin), which is quite large considering that many websites still have body which 12 to 13 pixels of font-size.</p><p><strong>3. Space between paragraph(pixels) &#xF7; line height (pixels) = 0.754</strong><br>The paragraph spacing i.e space between the last line of one paragraph and the first line of the next paragraph rarely equals the leading(which is the main characteristic of perfect vertical rhythm). More often, paragraph spacing is 75% of paragraph leading because leading usually includes the space taken up by descenders and because most characters do not have descenders, additional white space is created under the line to create a perfect design for readers. White space improves comprehension i.e it de-clutters a page by giving items room to breath.</p><p><strong>4. Optimal number of character per line is 55 to 75</strong><br>If we look at classical typographical books, the optimal number of characters per line is between 55 to 75, but between 75 and 85 characters per line is more popular in practice. The appropriate number of characters in a line helps user to read more without loosing focus as well as it is comfortable for eyes to read with least possible movement of eye ball.</p>]]></content:encoded></item><item><title><![CDATA[Deep Dive into React Lifecycle Methods]]></title><description><![CDATA[We'll look at all the available lifecycle methods, the order in which they are called and what kind of operations you can perform within a particular life cycle hook.]]></description><link>https://superpower.dynamicsingh.com/deep-dive-into-react-life-cycle-methods/</link><guid isPermaLink="false">5e1b5dda7888da00017cf8a5</guid><category><![CDATA[React]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Sun, 01 Oct 2017 15:17:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1484839013845-518865fbb906?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1484839013845-518865fbb906?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Deep Dive into React Lifecycle Methods"><p>React lifecycle hooks are methods where you can do appropriate things</p><p>We&apos;ll look at all the available lifecycle methods, the order in which they are called and what kind of operations you can perform within a particular life cycle hook.</p><p><em><strong>React version in discussion:</strong> v16</em></p><h3 id="constructor-">constructor()</h3><p>can be used to set initial state of the component</p><h3 id="componentwillmount-">componentWillMount()</h3><ul><li>You can initialize state and initial props here</li><li>Only hook that run on server rendering</li><li>Don&apos;t make a ajax call here</li><li>Sometimes based on props you can change the state here</li><li>You can set global events like eg : </li></ul><pre><code>componentWillMount() {
		if(window.innerWidth &gt; 500) {
           this.setState({innerWidth: window.innerWidth})                    
        }                         
}</code></pre><h3 id="render-">render()</h3><ul><li>Don&apos;t set state here, will lead to re-render</li><li>DOM element can be removed once this is called</li></ul><h3 id="componentdidmount-">componentDidMount()</h3><ul><li>This runs after the component has rendered</li><li>This doesn&apos;t run until the child components have completed their hooks</li><li>Only runs during initial life cycle</li><li>Can make a ajax call here</li><li>Can do subscriptions here and unsubscribe in <strong>componentWillUnmount</strong> method</li><li>Don&apos;t run setState here</li></ul><h3 id="componentwillrecieveprops-nextprops-">componentWillRecieveProps(nextProps)</h3><ul><li>Not called on initial render</li><li>Runs when you re-render by updating the state or prop</li><li>We can setState here</li></ul><h3 id="shouldcomponentupdate-nextprops-nextstate-">ShouldComponentUpdate(nextProps, nextState) </h3><ul><li>Runs when there is change in state or props</li><li>Used for controlling the re-rendering of the component</li><li>Can check the change in state</li><li>returning false will will stop re-rendering of this component. This return true by default.</li><li>Don&apos;t run setState here</li></ul><h3 id="componentwillupdate-">componentWillUpdate()</h3><ul><li>Runs after shouldComponentUpdate</li><li>This is similar to ComponentWillMount</li><li>Can do all set some variables based on states and props</li><li>Don&apos;t run the setState here to avoid infinite loop</li></ul><h3 id="componentdidupdate-">componentDidUpdate()</h3><ul><li>Runs after updating render()</li><li>Can setup third party UI elements here</li><li>Can call setState here</li></ul><h3 id="componentwillunmount-">ComponentWillUnmount()</h3><ul><li>Runs when component dies</li><li>Can cancel any outgoing network requests</li><li>Can remove all event listeners associated with the component</li><li>You can unsubscribe the subscriptions here.</li><li>Don&apos;t run setState here</li></ul><hr><p><em><strong>Sample Component will all lifecyle methods</strong></em></p><pre><code>class App extends Component {
    constructor() {
        super();
        this.state = {
            name: &apos;John&apos;;
    }
    }

    componentWillMount() {

    }

    componentDidMount() {

    }

    componentWillRecieveProps(nextProps) {

    }

    shouldComponentUpdate(nextProps, nextState) {
        return true;
    }

    componentWillUpdate() {

    }

    componentDidUpdate(prevProps, prevState) {

    }

    componentWillUnmount() {

    }

    render() {
        return &lt;div&gt;Hi&lt;/div&gt;;
    }
}</code></pre><hr><p></p><h3 id="simple-example-showcasing-lifecycle-methods-triggering-order-when-a-parentcomponent-renders-a-childcomponent">Simple example showcasing lifecycle methods triggering order when a ParentComponent renders a ChildComponent</h3><figure class="kg-card kg-image-card kg-width-wide kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/react-life-cycle.jpg" class="kg-image" alt="Deep Dive into React Lifecycle Methods" loading="lazy"><figcaption>`-</figcaption></figure><figure class="kg-card kg-embed-card kg-card-hascaption"><iframe id="cp_embed_BvvXaB" src="https://codepen.io/DynamicSingh/embed/preview/BvvXaB?height=300&amp;slug-hash=BvvXaB&amp;default-tabs=js,result&amp;host=https://codepen.io" title="React Life Cycle Methods" scrolling="no" frameborder="0" height="300" allowtransparency="true" class="cp_embed_iframe" style="width: 100%; overflow: hidden;"></iframe><figcaption>This pen can be used to verify the order of execution of React lifecyle methods, open console in dev tools</figcaption></figure><p></p><h3 id="update-to-this-article">Update to this Article</h3><p>These life cycle method are valid for React version before V.1.63</p><p>Methods deprecated in <strong>React V16.4</strong> are:</p><ul><li><strong><strong>componentWillMount</strong> </strong>and can be used as <em>UNSAFE_componentWillMount</em></li><li><strong><strong>componentWillReceiveProps</strong> </strong>and can be used as <em>UNSAFE_componentWillReceiveProps </em>and replaced by <strong>getDerivedStateFromProps </strong>in<strong> </strong>V16.4</li><li><strong><strong>componentWillUpdate</strong> </strong>and can be used as <em>UNSAFE_componentWillUpdate</em> and replaced by <strong>getSnapshotBeforeUpdate </strong>in<strong> </strong>V16.4</li></ul><p><em>New article for lifecycle methods coming soon...</em></p>]]></content:encoded></item><item><title><![CDATA[Psychological impact of colors on web users — Part-2 Cool colors]]></title><description><![CDATA[Cool colors include green, blue and purple are often more soft than warm colors. They are colors of night, water and are usually calming, relaxing, and somewhat reserved.]]></description><link>https://superpower.dynamicsingh.com/psychological-impact-of-colors-on-web-users-cool-colors/</link><guid isPermaLink="false">5e1b5dda7888da00017cf89e</guid><category><![CDATA[UI]]></category><category><![CDATA[UX]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Tue, 31 Jan 2017 19:17:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1496024840928-4c417adf211d?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<figure class="kg-card kg-image-card"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_wl2dDdEI8bFA6kjMFn2MFg--1-.jpeg" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-2 Cool colors" loading="lazy"></figure><img src="https://images.unsplash.com/photo-1496024840928-4c417adf211d?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-2 Cool colors"><p>Cool colors include green, blue and purple are often more soft than warm colors. They are colors of night, water and are usually calming, relaxing, and somewhat reserved.</p><h3 id="blue-primary-color-">Blue (primary color)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_TgFlpbfFvcaRfSIqjzJbmA.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-2 Cool colors" loading="lazy"><figcaption>Blue pallet, Image credits : materialcss</figcaption></figure><p>Blue is the only primarily color within the cool spectrum, which means the other colors are created by combining blue with other warm colors i.e blue + yellow = green and blue + red = purple. Use cool colors in your designs to give a sense of professionalism or calmness.</p><p>Blue is often associated with sadness in the English language. Blue is also used extensively used to represent calmness and responsibility. Light blues can be refreshing, friendly and gives young feeling to design. Dark blues are more strong and reliable. Blue sometimes is also associated with peace and has spiritual and religious connotations in many</p><h3 id="green-secondary-color-">Green(secondary color)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_Yxn7xo_SX6rxkXQmLDU9bg.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-2 Cool colors" loading="lazy"><figcaption>Green pallet, Image credits : materialcss</figcaption></figure><p>Green is a very down-to-earth color. It can represent new beginnings and growth. It also signifies renewal and abundance. Alternatively, green can also represent envy or jealousy and lack of experience.</p><p>In design, green can have a balancing and <strong>harpooning</strong> effect and is very stable. It can be used designs related to wealth, stability, renewal and nature. <strong>Brighter greens </strong>are more energizing and vibrant which gives a fresh look to design, while olive greens are more representative of the natural world. Darker greens are most stable and representative of affluence.</p><h3 id="purple-secondary-color-">Purple (secondary color)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_ra8NdqPx1PEO674Tt2J4AA.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-2 Cool colors" loading="lazy"><figcaption>Purple pallet, Image credits : materialcss</figcaption></figure><p>Purple is associated with royalty. It is a fusion of red and blue and takes on some attributes of both. It&#x2019;s associated with creativity and imagination. In Thailand, Purple is color of mourning for widows. Dark purples are traditionally associated with royalty and wealth. while lighter purples like lavender are associated with romance. In design, dark purples can give a sense of wealth and luxury while light purples are softer and are associated with spring and romance. Brighter purples more reddish gives both rich and energetic look.</p><p></p><p><strong>I hope you enjoyed learning about cool color. In the next part, we will learn about Neutral colors.</strong></p>]]></content:encoded></item><item><title><![CDATA[Psychological impact of colors on web users — Part-1 Warm colors]]></title><description><![CDATA[We see colors everywhere flowers, sky, rocks, birds and what not. But within our brain colors are processed much more faster than a supercomputer which attach us to different feeling, emotion. Some colors may make you happy, some make you excited and some may calm or relax you.]]></description><link>https://superpower.dynamicsingh.com/psychological-impact-of-colors-on-web-users-warm-colors/</link><guid isPermaLink="false">5e1b5dda7888da00017cf89d</guid><category><![CDATA[UX]]></category><category><![CDATA[UI]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Sun, 01 Jan 2017 19:11:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1464820453369-31d2c0b651af?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<h3 id="meaning-of-color">Meaning of color</h3><img src="https://images.unsplash.com/photo-1464820453369-31d2c0b651af?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-1 Warm colors"><p>Color in design is very subjective. What evokes one reaction in one person may evoke a very different reaction in someone else. Sometimes this is due to personality or sometimes due to cultural background. Color theory is science in itself. Sometimes changing the exact hue or saturation can evoke a completely different feeling or even can change the mood. We see colors everywhere flowers, sky, rocks, birds and what not. But within our brain colors are processed much faster than a supercomputer which attaches us to a different feeling, emotion. Some colors may make you happy, some make you excited and some may calm or relax you.</p><p>Warm colors include red, orange and yellow and variations of those three colors. These are the colors of fire, of fall leaves and of sunsets and sunrises and are generally energizing, passionate, and positive.You may use warm colors in your design reflect passion, happiness, enthusiasm and energy.</p><h3 id="red-primary-color-">Red(Primary color)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_PT-8nHDRawgOgfWWu2JJew.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-1 Warm colors" loading="lazy"><figcaption>Red color pallet, image credits: materializecss</figcaption></figure><p>Red is a very hot color. It&#x2019;s associated with fire, violence and warfare. It&#x2019;s also associated with love and passion. Red can actually have an effect on people raising their blood pressure and respiration rates.</p><p>Red can be associated with anger but also associated with importance, now you may figure out why the carpet is red at award shows.</p><p>Outside the western world, Red has different associations. For example, China, red is the color of prosperity. It can also be used to attract good luck. In South Africa, however, red is worn for mourning. In India, Red is worn by brides on their wedding days.</p><p>In design, red can be a powerful accent color. It can be having overwhelming effect if it&#x2019;s used too much is designs, especially in purest form. It&#x2019;s a great color to use when power or passion want to be portrayed in the design. Red can be very versatile, though, with brighter versions being more energetic and darker shades being more powerful and elegant. Red accents stand out against the black background and give a powerful high-end feeling to the site whereas darker shades of red give a powerful and elegant feel to the site and the very bright accents on the site give a sense of energy and movement. It is observed that Dark red, when combined with white and grey, gives a very elegant and professional impression.</p><h3 id="orange-falls-between-red-and-yellow-">Orange(falls between red and yellow)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_cWwSz-MWWuapwOuuOB7UMQ.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-1 Warm colors" loading="lazy"><figcaption>Orange color pallet, image credits: materializecss</figcaption></figure><p>Orange is a very vibrant and energetic color. It can be associated with the earth and with autumn. Because of its association with the changing seasons, orange can represent change and movement in general. In India Orange is used to represent spirituality. Because orange is also associated with the fruit of the same name, it can also be associated with health and vitality. In designs, orange commands attention without being as overpowering as red. It&#x2019;s is considered more friendly and inviting and less in-your-face color. Orange accents can add visual interest and bring attention to design.</p><h3 id="yellow-primary-color-">Yellow(Primary color)</h3><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/1_aIEMNt6V1JHcgNoT58QIqQ.png" class="kg-image" alt="Psychological impact of colors on web users&#x200A;&#x2014;&#x200A;Part-1 Warm colors" loading="lazy"><figcaption>Yellow color pallet, image credits: materializecss</figcaption></figure><p>Yellow is considered the brightest and most energising of the warm colors. it&#x2019;s associated with happiness and sunshine. Yellow can also be associated with hope, as can be seen in some countries yellow ribbons are displayed by families who have loved ones at war. Yellow is also associated with danger not as strong as red. In countries like Egypt, yellow is for mourning. In Japan, it represents courage and in India, it&#x2019;s a color of merchants.</p><p>In designs, bright yellow can lend a sense of happiness and cheerfulness. Softer yellows are used as a gender-neutral color for babies(rather blue or pink) and young children. Light yellows also give a more calm feeling of happiness than bright yellows. Dark yellows and gold-hued yellows can sometimes look antique and be used in designs where a sense of permanence is desired. Bright yellow is also used as a highlighter in physical as well as design world and is capable of attracting attention to the content or design. Background with yellow color can be showcase summer on the site to the visitors.</p><p><strong>Hey, friends, next article would be related to Cool colors so stay tuned!</strong></p>]]></content:encoded></item><item><title><![CDATA[Unborn Colors of Life]]></title><description><![CDATA[The life, meaning of which no dictionary contains
living or died, life forever sustains
Though the growth never stops, thy is the time]]></description><link>https://superpower.dynamicsingh.com/unborn-colors-of-life/</link><guid isPermaLink="false">5e1b5dda7888da00017cf8a3</guid><category><![CDATA[Poetry]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Fri, 03 Jul 2015 12:23:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1508341421810-36b8fc06075b?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="https://images.unsplash.com/photo-1508341421810-36b8fc06075b?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Unborn Colors of Life"><p>The life, meaning of which no dictionary contains<br>
living or died, life forever sustains<br>
Though the growth never stops, thy is the time<br>
Life keeps changing its colors with the changing seasons and time<br>
People called it a future, but they are the unborn colors<br>
dark or shallow, smooth or rough<br>
life is never easy never tough</p>
<p>With the growing age, these colors might change your choice<br>
but loving the shallow beauty of cold colors never dies<br>
Live as you want because GOD has not written any book<br>
But a reference we called Gita, Bibble or Kuraan on which we are somehow hooked</p>
<p>There always lives a Power which changes these colors<br>
Sometimes for dollars or for White Collars<br>
The life, meaning of which no dictionary contains<br>
living or dead, life forever sustains<br>
Colors are the only beauty which every morning change!</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://superpower.dynamicsingh.com/content/images/2019/01/unborn_colors-2.jpg" class="kg-image" alt="Unborn Colors of Life" loading="lazy"></figure><p><strong>By - Bhupinder Singh</strong><br></p>]]></content:encoded></item><item><title><![CDATA[Days That No One Can Forget]]></title><description><![CDATA[School a word which is too small,
But stands for the life of students as a wall.
I don’t remember I cried or smiled on my first day at school,
But have tried to make people remember me as a cool.
All mischiefs and mess I created in my primary days,
I won’t forget them in my sorrow ways.]]></description><link>https://superpower.dynamicsingh.com/days-that-no-one-can-forget/</link><guid isPermaLink="false">5e1b5dda7888da00017cf8a4</guid><category><![CDATA[Poetry]]></category><dc:creator><![CDATA[Bhupinder Singh]]></dc:creator><pubDate>Tue, 10 Jul 2012 12:26:00 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><img src="https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?ixlib=rb-1.2.1&amp;q=80&amp;fm=jpg&amp;crop=entropy&amp;cs=tinysrgb&amp;w=1080&amp;fit=max&amp;ixid=eyJhcHBfaWQiOjExNzczfQ" alt="Days That No One Can Forget"><p>School a word which is too small,<br>
But stands for the life of students as a wall.<br>
I don&#x2019;t remember I cried or smiled on my first day at school,<br>
But have tried to make people remember me as a cool.<br>
All mischiefs and mess I created in my primary days,<br>
I won&#x2019;t forget them in my sorrow ways.<br>
I was nothing but a seed,<br>
But teachers have made me a wild breed (Lion)<br>
This is the place where I stood in queue,<br>
And made myself to stand out of the queue to prove myself true.</p>
<p>These fast forward days are hard to compete with,<br>
But these days have taught me that only competition around is me.<br>
Summer passed, winters arrived and shoulders strive,<br>
But coming to school is the same path drive.<br>
Every semester exam is like a hammer on the brain,<br>
But only GODS (teachers) know who can handle this strain.<br>
This is that sacred place where I have experienced my thoughts changing,</p>
<p>With the years changing and so people experienced me changing.<br>
These days will never come back,<br>
Though teachers always know, I am on the right track<br>
I can&#x2019;t express my inner feeling,<br>
And there is no secret for revealing.</p>
<!--kg-card-end: markdown--><p></p><p><strong>By - Bhupinder Singh</strong></p>]]></content:encoded></item></channel></rss>