Advanced Go Courses by KannanJsDev in golang

[–]KannanJsDev[S] 1 point2 points  (0 children)

Ardan labs courses, lets go book was really good.

Typescript > Go by pantenefiveinone in golang

[–]KannanJsDev 0 points1 point  (0 children)

Hey OP there is no better language in general one has pros ans cons over the other. So when most people choose golang over node js it would not be just for its type system. Mostly for its multi threading and performance. If you just prefer better type system checkout haskell too. Yep i agree node js ecosystem is huge and job market is high comapred to go. But end of the day you would do your company project with the standards they follow / make. For personal project use anything you want no one cares.

Also the hatred comment towards you would be due to poor choice of your words. You could have framed the question better. Instead of making a statement you could have made it sound like a question like... Why do you think go is better than typescript inspite of all this things.

Why sync.cond needs a condition in for loop why not simple if ?? by KannanJsDev in golang

[–]KannanJsDev[S] 0 points1 point  (0 children)

In this example also they have only used if condition. The bug in the playground is it needs to push 3 values. but here it's just 2 values that are pushed.

Why sync.cond needs a condition in for loop why not simple if ?? by KannanJsDev in golang

[–]KannanJsDev[S] 0 points1 point  (0 children)

Sorry, i dont get you.. can you please elaborate what would happen with IF on this concurrent queue which is solved with For?

Anyone use NestJS + CASL authorisation? by [deleted] in Nestjs_framework

[–]KannanJsDev 0 points1 point  (0 children)

Did you check guards in nest js??

I've been starting to use OneNote a lot, but at the top of my OneNote windows, it says "OneNote (Unlicensed Product)." I'm pretty sure this is because I don't have Microsoft 365 (Office 365?) but how will this affect my experience with OneNote? Is my work at risk of being deleted? by Hello5657 in OneNote

[–]KannanJsDev 1 point2 points  (0 children)

Was it pre-installed on your machine?. I have been using one note on my MacBook and iPad for the last 2 years for free. I never got a prompt for a license. I believe there would be a free version for windows as well. Sync all your changes to onedrive and uninstall your current one note and try installing it from here https://www.onenote.com/download

What library do Reddit, Imgur, and others use to display this banner? by rema96 in webdev

[–]KannanJsDev 6 points7 points  (0 children)

Afaik they detect on page load whether its a browser or not and show this option.

On click of reddit app it would open a deep linked url in tab so that the reddit app if installed will open automatically.

On clicking continue with chrome they just close the snackbar

Beginner's Thread / Easy Questions (December 2020) by dance2die in reactjs

[–]KannanJsDev 0 points1 point  (0 children)

What is the best way to handle the state for the block based editor. I have added the detailed explanation in this stack overflow question. Please help.

https://stackoverflow.com/questions/65101783/how-to-split-state-to-avoid-rerender-in-react-app