HNHacker News
TopNewBestAskShowJobs

saranshk

2,158 karma · joined November 10, 2015

submissionscomments
saranshk··on CSS: Has a Parent Selector Now
they have an experimental implementation but it is not stable according to them. You can read more about it here: https://bugzilla.mozilla.org/show_bug.cgi?id=418039
saranshk··on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap()
agreed, though I doubt there's anything we can do about it.
saranshk··on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap()
you are right, I was trying to format it for HN but somehow screwed up copy pasting, though it'd be ["system-admin", "developer", "basic"] and not ['basic', 'system-admin', 'developer']
saranshk··on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap()
there have been a lot of those added to the ES spec lately and a lot more coming soon. So it is always good to check MDN because I usually end up learning something new mostly.
saranshk··on Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap()
added this to the post as well, a place where there is an array inside an array of objects and you want all those. For example, if we want to extract all roles from the array:

[ { name: "Saransh Kataria" , roles: ['system-admin', 'developer'] }, { name: "Wisdom Geek" , roles: ['basic'] }, ].flatMap(x => x.roles);

// Output => ["admin", "system-admin", "developer"]

saranshk··on Using GroupBy on an array of objects in JavaScript
while there is nothing wrong with that, it's always good to have these things built-in as native functions instead.
saranshk··on Using GroupBy on an array of objects in JavaScript
probably would not have been written then, it is a stage 3 proposal but should be merged in hopefully soon.
saranshk··on Using GroupBy on an array of objects in JavaScript
all of lodash features would probably become a native thing soon enough
saranshk··on Using GroupBy on an array of objects in JavaScript
groupByToMap would be useful in that case as pointed out in another comment. Updated the post with that.
saranshk··on Using GroupBy on an array of objects in JavaScript
updated the post with groupByToMap, Thanks for pointing that out.
saranshk··on Error 404 (Not Found)
Our instances started working again, so seems to be fixed
saranshk··on Ask HN: Do Y Combinator startups hire outside US
I don't think there is a generic answer to this. It mostly depends on the startup size, their legal team and the team's. I have seen quite a few hire outside US, and then there obviously are startups outside the US that YC funds too.
saranshk··on Load balancing and its different types
vanilla JS might be too much to maintain. I have already started working on the Gatsby version and will try and accelerate that.
saranshk··on Load balancing and its different types
Ha, I know. It's a single VM instance right now. I have been thinking of migrating to Gatsby for quite some time now. This unexpected traffic and the server limitations give me a reason to get working on it!
saranshk··on Load balancing and its different types
Concepts are definitely transferrable across domains. And then adapted according to desired outputs. Cost of performance is interesting and somewhat similar to the least-time approach but adapted to the supercomputers domain.
saranshk··on Load balancing and its different types
We all learn everyday. I am learning from the comments here as well. The best we can do is accept we were wrong and correct it.
saranshk··on Load balancing and its different types
Added least time to the post as well. Thank you!
saranshk··on Load balancing and its different types
Thank you. I am not sure how to introduce transit and the concept of hops in an introductory post without explaining in depth about the networking side of it. Maybe you could help me out with that?
saranshk··on Load balancing and its different types
I know about the caching issue is a little trivial but it was worth mentioning. Though I should have mentioned the low TTL piece. I will add that to the post. And also will add the health check part too. Reading up a bit about it. Thanks for the information!
saranshk··on Overcoming Procrastination and the Akrasia Effect
Haha, you can treat yourself on becoming a multi-tasking procrastinator for putting off a bunch of shit at the same time!
saranshk··on Overcoming Procrastination and the Akrasia Effect
Thanks for the support.
saranshk··on Overcoming Procrastination and the Akrasia Effect
Sorry about that. Apparently someone was DDOSing as soon as this started getting some traffic. It is back now. Working on putting in better configurations to prevent that from happening in the future.
saranshk··on Recoil – A state management library for React
Here's an awesome video from the library author explaining a bit more about Recoil from today's React Europe live stream if anyone is interested: https://www.youtube.com/watch?v=_ISAA_Jt9kI.
saranshk··on Recoil – A state management library for React
Conceptually, this looks very similar to observables and RxJs. Should be interesting to explore further.
saranshk··on Chrome 75 – What’s New in DevTools
0:10 - Meaningful preset values when autocompleting CSS functions 0:57 - Clear site data from the Command Menu 1:37 - View all IndexedDB databases 2:21 - View a resource’s uncompressed size on hover 3:33 - Inline breakpoints in the breakpoint pane 4:24 - Setting for disabling the detailed inspect tooltip 5:12 - Setting for toggling tab indentation in the Sources panel editor 6:14 - Dark theme bonus tip!
saranshk··on Microsoft has open sourced their Front end Bootcamp training materials
Thanks. Sent out an email.
saranshk··on Microsoft has open sourced their Front end Bootcamp training materials
Not sure how that happened. And I can't resubmit the URL either
saranshk··on AWS, MongoDB, and the Economic Realities of Open Source
Amazon has had a documented past of taking massively successful Open Source projects and adding their own bells and whistles to it and upselling them.

Amazon is the new Microsoft.

saranshk··on Airbnb Is Moving Faster at Scale with GraphQL and Apollo
Thanks for the blog post. I was going to look for a similar thing soon enough.
saranshk··on Microsoft is building a Chromium browser to replace Edge on Windows 10
One less browser for the front-end folks to support in the long run!
Page 1 of 2Next →