In JavaScript, we do have the freedom to get the same result in different ways. We can create strings, numbers, objects, arrays, etc. values using both constructors and literals approach. You can get the same values using any of those approaches. However, there are still some differences to know which might be useful to avoid runtime bugs.

For those who is only reading this quote, long story short, creating values with
literals are better than built-in constructors.

First, if you are wondering what these are.

Image for post
Image for post

You can just go on and use literals without knowing the differences and no one is going to say anything to you. I know, if you have a curious mind you will continue reading. But especially, for those who have come from class-based programming languages, you might be tempted to use the constructor approach. …

The prototype is often associated with inheritance when comparing to Object-Oriented programming. But why? And what even prototype means in JavaScript. In this blog, I will explain what the prototype is and how it is designed and structured in JavaScript. And of course, the why part.

In JavaScript, all functions are objects, the only difference is that functions can be called.

// Here is a simple function
function Superman() {
// ...
// Since function Superman is also an object we can add properties and methods like in objects.
Superman.isHero = true;
Superman.test = function() {
console.log('test ok')
console.log(Superman.isHero) // true
console.log(Superman.test()) …

Here are a few tips on optimizing big and complex components by controlling re-renders. Or you can use it for small and simple components too. In fact, these tips are my notes. These notes have helped me a lot when writing complex react components. I am sharing these so that it might help you too. While everyone has their own opinion, these are few things I keep in mind as good practices.

1. Use hooks effectively

If you are using React version of at least 16.8.0, use hooks such as useEffect, useMemo, and useCallback to wrap any complex data processing like filtering or sorting an array to avoid unnecessary re-calculation on every re-render. Hooks are similar to life-cycles from class components.

Image for post
Image for post

Hello everyone.

It has been 5 days since YoungInnovations commenced ‘Work From Home’ due to the pandemic Corona Virus — COVID19. I hope everyone is doing well and are in good health and staying in their homes safely. The number of COVID19 confirmed cases have crossed 532,000 and still increasing exponentially. The more shocking news is that now confirmed cases of the US have surpassed China with more than 85,000 cases and are now at the top. I guess the US wants gold medals pretty badly 😄. I thought the US could do better. China is now at second place with about 81,000 confirmed cases followed by Italy with about 80,000 confirmed cases. On the other hand, there are some good news too. Due to the shutdown of many industries and vehicles, there has been a dramatic drop-off in Carbon dioxide and Nitrogen dioxide emission on large scale. This has made our air and environment a lot cleaner. Finally, nature can breathe in peace even it’s for a short period of time 🍏. …

Everest Hackathon 2019, Congratulation Sonika, Akita’s birthday

Image for post
Image for post

You don’t learn to walk by following rules. You learn by doing, and by falling over. — Richard Branson

It’s been a while since I last wrote my last weekly.

Everest Hackathon 2019

Everest hackathon happened from 19th to 21st of July; it was a focused 24-hour event where entrepreneurs, programmers, designers, students and problem solvers came together in small teams to share ideas and build something new and exciting, alongside a whole bunch of like-minded people.
The theme of the hackathon was based on either sponsor challenge or open theme. …

Image for post
Image for post

Hello everyone, welcome to this week’s blog, hope you enjoy reading it.

The master has failed more times than the beginner has even tried.
- Stephen McCranie

Tender Alert

On Thursday, Saurav (xaurav sharma) and Saroj Bista gave a demo of Tender Alert, among key officials of the FCAN. Tender Alert is an app developed for the use of contractors.

Image for post
Image for post

The more you think and talk about your goals, the more positive and enthusiastic you become.
- Billy Cox

Launch of NWC Helpline — Khabar Garaun 1145

National Women Comission’s helpline ‘Khabar Garaun 1145’ was launched on December 10, 2017 during the closing ceremony of 16 days of activism against Gender based Violence (GBV) in Kathmandu. The ceremony was jointly organized by Minstry of Women, Children and Social Welfare (MoWCSW) and National Women Commission (NWC). The event was filled with representatives of government, civil society organizations, media and individuals. …

Image for post
Image for post

This week, bibhusan was invited by Nepal Administrative Staff College (NASC) to conduct classes on e-governance to newly recruited section officers of Government of Nepal. During the sessions, he delivered theoretical as well as practical in-sights of e-governance and the role that they as future leaders of Nepalese bureaucracy can play in making government system effective and efficient in Nepal. …

Raj Maharjan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store