use case: have a reference to an object without forcing it to stay in memory. don’t need it now? let the garbage collector wipe it now.
might need it later? you can always recreate the object from the reference to use it now.

Let’s assume we have a giant object in javascript with a reference to it. This object stays in the memory until there is some reference to it. In special scenarios, being very fastidious about the performance of your application, you might want to ensure that an object taking tons of memory space being this giant object, doesn’t…


Suggestions welcome,

For the #javascript 2021 chapter of web-almanac, I’d like to know from the #javascript developers here if you’d be interested to see any special metrics in the report?

Metrics like: I, as an Angular dev, would be very interested to know how many applications use SSR or as a JavaScript dev, what differential loading method is used in majority JS apps.

No clue what I am talking about? Refer to this and share your thoughts:

Do let me know in the comments.


photo credits to annie-spratt

Hey everyone,
I’ll be speaking at the ReliableWebSummit by #ngconf this August.

The conference revolves around Scalable infrastructure and architecture, Maintainable Code, Automated Testing etc.

Would like to be a part?
Use my speaker code “Speaker” to get 50% off of the current ticket prices or simply click this link.

Date: August 26–27, 2021

See you there :)


know what I mean?

nope, not another rant post.
not to do with staying productive working from home.
also not about travel nostalgia.

yeah enough mystery, right? So in this post, I’ll briefly share a tip about the usage of logical operators in Javascript and updated ways to use them in 2021.

quite unrelated to the title, ya? It’s actually not. you’ ll see why.

TLDR;
Using logical operators with assignment :

1) &&=

2) ||=

3) ??=

the blog post title?

=======================================

Basic most way of using logical operators in Javascript


friday night — make an overflowing todo list

saturday morning — waste half a day confused which one to start with, first

saturday evening — anxious having done nothing all day

saturday night — start with one of the items from todo lists, work, realise picking some other item first would have beeen better

saturday late night — read a little to feel better, get some more books (download mostly)

sunday morning — be strict on yourself to start work on time, work a little, finish ONE ITEM off of the ‘overflowing todo list’

sunday afternoon — start worrying about…


This is one of the memory safety bugs in Rust, which we will try to understand through a dialogue in this blog post.

let s1 = String::from("Hello");
let s2 = s1;
let s1 = String::from("Hello");
let s2 = s1;
println!("{}", s1);

Error — use of moved value s1

Do share your understanding.

Thanks!


Pretty sure you know why the blog post has visuals in the first 2–3 paragraphs, and then none! 🤷🏻‍♀️

It wouldn’t have been these many words in this blog post if it was not for the year 2020. Strangest year in my 24 years of living and I believe, the strangest for almost everybody, 2020 had its own way of teaching us stuff the hard way, it be losing our close ones, losing jobs, not having enough opportunity to distract ourselves from the monotonous at-home daily activities etc., city/country unrest, protests and what not! …


I came across a question somewhere regarding adding a custom prompt of “Add to Home Screen” for your progressive web application for the browsers that do not have a built-in support for the same. An example of this is the Safari browser that currently does not prompt the user for adding an app to your home screen as an application.

Now this intrigued me since I am an IOS user and still having never thought to implement one already. Well, it was time to react now that I woke up.

So I implemented a custom add to home screen functionality…


Photo by XPS on Unsplash

Have been exploring redux-saga lately and thought I will put down here a simple counter example using Redux saga with TypeScript to manage the counter state across the application.

We will start with with a simple create-react-app with a Counter Component. In the first part of the article, we will see how to modify the state of the counter without using redux. And in the second part, we’ll maintain the state using redux saga. I am putting it down here, hope this helps some of you too.

Nishu Goel

Engineer @ The DataWorks, Google GDE, Microsoft MVP, @angular ❤️, Author — https://amzn.to/2Zd9ADd

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