My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Discussions
Join the conversation: discuss and debate with your favorite writers
Edrick Leong

1 comment

Tirtha Guha
Tirtha Guha
Jul 11, 2024

Npm has system level cache, ~/npm on posix and %LocalAppData%/npm-cache on Windows.

If a dependency+version matches, npm pulls the package from this cache, instead of over the internet.

·
·1 reply
Discuss

·

26 likes

·

3.0K reads

5 comments

Peter Sumskas
Peter Sumskas
Jun 22, 2024

It’s an interesting exploration. I’m not quite in favour of it. I reckon that in a busy codebase the = transaction do will be easy to miss, while the extra block is clearer.

I don’t think the goal should be “less lines” rather it should be “more clarity”.

If I wanted to “wrap” things in transactions then I might lean towards meta-programming 😱 and have a class method that takes a symbol of the method name and wrap that in a transaction by renaming the method. E.g transaction def update_fnargle …

But I’d think long and hard if that is enough of a gain in clarity before I lean on either technique.

2
·
·1 reply
Priya Raimagiya
Priya Raimagiya
Jun 21, 2024

Thank you for sharing!

1
·
·2 replies

4 comments

Sachin Chaurasiya
Sachin Chaurasiya
Jul 3, 2024

Great topic! I would love to know more about this. Thanks for sharing with Victoria Lo.

1
·
·1 reply
Aditya Dhaygude
Aditya Dhaygude
Jul 4, 2024

Pretty informative ☺️

1
·
·1 reply
Discuss

·

19 likes

·

297 reads

10 comments

Abhishek Tyagi
Abhishek Tyagi
Jun 2, 2024

Great content really helped in clearing some of doubts that I had regarding languages and DSA

1
·
Meenakshi Malhotra
Meenakshi Malhotra
Jun 2, 2024

Great start! Keep growing beta

1
·
·1 reply

3 comments

Sahil Kumar
Sahil Kumar
Apr 11, 2024

Nice Blog Jaynil, I keep reading your blogs on front end interview experiences. keep writing. Just wanted to ask For what years of experience they were asking these questions

1
·
·1 reply
Shubham
Shubham
Jul 8, 2024

Hi Bro, Nice blog. Could you let me know what do mean by "I wrote a polyfill for bind method with example"? Did you just wrote a normal function bind() {} or did something else. Could you please paste the polyfill code so I could understand.

·