HNHacker News
TopNewBestAskShowJobs

sktguha

22 karma · joined November 6, 2015

Frontend engineer, working in react and redux and JavaScript ,at Salesforce banglore, India
submissionscomments
sktguha··on Super-expressive – Write regex in natural language
You could perhaps use es6 templates for better readability
sktguha··on Show HN: StrongMap – JavaScript Map Meets Your Hard Disk
How is it different from something like node localstorage ?
sktguha··on DOM recording for web application demos
cool stuff!
sktguha··on Why I chose Electron.js for my side business
Yes I am curious to see how it evolves
sktguha··on Electron 11.0 released with support for Apple Silicon
I believe React native is already there for windows 10, not sure how mature it is however.
sktguha··on Git is too hard
yes agreed. very well said.
sktguha··on Show HN: Syntax Highlighter for VSCode – Tree-Sitter and Semantic Tokens
Hi, I had a related question. I want to make a VSCode extension for highlighting state and props in React in a different colour. How would I do that. Any tips ?
sktguha··on Show HN: For VSCode, code snippets in Node.js instead of static code snippets
The idea is similar to code snippets in vscode, but here the difference is you can specify any arbitrary node.js script to run.

So if you select some text in vscode and press a shortcut key , your script is given the selected text as first argument(and other options in second argument like absolutePath etc) and whatever is returned from your script , the selected text will be changed to that value

sktguha··on The Architecture of Open Source Applications
Add React and Redux also . Although Redux is a lot simpler
sktguha··on Things I Was Wrong About: Types
you could possible write an IDE plugin that hides the types information and only show them on hover etc. I don't think this reason is that strong of a point IMHO.
sktguha··on A Physicist Has Discovered Math That Makes 'Paradox-Free' Time Travel Plausible
indeed . so the galaxy cluster might have moved by a really massive distance, assuming even if there is some universal coordinate system
sktguha··on A Physicist Has Discovered Math That Makes 'Paradox-Free' Time Travel Plausible
interesting thought
sktguha··on New JSX Transform
I mean of course, that would be nice. But the thing is modern editors like vscode will automatically convert class statements to className if you copy paste plain html from elsewhere. Don't know about other attributes though.
sktguha··on I overslept because iOS 14 disabled my alarm
That's a great idea!
sktguha··on Why do so many people want us back in the office?
Mind sharing your company name ? , just curious
sktguha··on Traits of good remote leaders
How did you work remotely without screen sharing and all ? I mean what if the need to something similiar to screen share arose ?
sktguha··on Why is there a normal galaxy sitting at the edge of the Universe?
I wonder if any intelligent civilisation was there on that galaxy,how incredibly advanced it must be by now , assuming it has survived till now.
sktguha··on Ask HN: As a developer what are your aha moments?
>event sourcing is almost never a good idea

Wait isn't event sourcing the fundamental principle of redux ? And redux is the most popular UI state manager library out there. and why you feel event sourcing is not a good idea ?

sktguha··on A word for a value between 0 and 1 (inclusive)
we can put underscore before the 0 so that it is a valid name
sktguha··on A word for a value between 0 and 1 (inclusive)
sorry must have typed by mistake in mobile
sktguha··on A word for a value between 0 and 1 (inclusive)
How about just oTo1InclusiveVal ? I know very simple, but would get the job done ?
sktguha··on React is becoming a black box
Funny enough, Dan describes explicitly in his bio that he is not the creator of React
sktguha··on React is becoming a black box
couldn't you just write the same function to handle the prop in both componentDidMount and componentDidUpdate ?
sktguha··on Ask HN: Captcha Alternatives?
you could try google recaptcha v3 which does not require any user input and runs in background. not 100% sure however if it helps in your case but i think it should definitely help
sktguha··on The Node Is Nonsense: Better ways to measure progress than Moore's law [pdf]
Is there an HTML version? PDF version is impossible to read on mobile device
sktguha··on Safari adopts the Chrome/Firefox extension model
Regd the webext I wonder how it passes the props from client to background pages ? It is a real problem if the props are not serialisable. Note that this kind of problem would not be there in a single page client and redux store on same window context
sktguha··on Ask HN: GPT-3 AI powered eslint for JavaScript coding?
Hi everyone , what is your opinion on gpt3 powered eslint in JavaScript coding , i.e enhanced potential issues detecting using gpt3. For example , in react redux connect if a person has passed ownprops in their mapstate to props however are not using it in returned values ,then it still causes a calling of the function on every render. Example:

connect(mapstateToProps, (dispatch,ownProps) => { console.log(ownProps) return {} }

// normal eslint check for unused variable will fail here

But with gpt3 it can detect that ownProps is not used in the returned object hence can flag it as potential issue

What other eslint rules can gpt3 enhance ?

sktguha··on Being OK with not being extraordinary
can you post link to your lifestyle business ?
sktguha··on Ask HN: How to tell if a JavaScript/front end candidate is mid-level or senior?
How about asking them to design and build a basic version of react/ redux/ react-redux/ react-router etc
sktguha··on Beating Google ReCaptcha and the funCaptcha using AWS Rekognition
Did you beat recaptcha v3 also ?
Page 1 of 2Next →