Better HN
topnewbestaskshowjobs
Log inSign up

sktguha

22 karma · joined Nov 6, 2015 (11y ago) · 61 submissions

Frontend engineer, working in react and redux and JavaScript ,at Salesforce banglore, India
Submissions

1.

Why I’m against merging pull requests in squash mode or rebase mode? · dg(myst729.github.io ↗)

3 points · by sktguha · 5y ago · discuss

comment 5y ago · link · parent

You could perhaps use es6 templates for better readability

comment 5y ago · link · parent

How is it different from something like node localstorage ?

comment 6y ago · link · parent

cool stuff!

comment 6y ago · link · parent

Yes I am curious to see how it evolves

comment 6y ago · link · parent

I believe React native is already there for windows 10, not sure how mature it is however.

comment 6y ago · link · parent

yes agreed. very well said.

comment 6y ago · link · parent

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 ?

comment 6y ago · link · parent

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

10.

Show HN: For VSCode, code snippets in Node.js instead of static code snippets(github.com ↗)

1 points · by sktguha · 6y ago · 1 comment

11.

Let's make the worst React ever(zserge.com ↗)

2 points · by sktguha · 6y ago · discuss

comment 6y ago · link · parent

Add React and Redux also . Although Redux is a lot simpler

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

indeed . so the galaxy cluster might have moved by a really massive distance, assuming even if there is some universal coordinate system

comment 6y ago · link · parent

interesting thought

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

That's a great idea!

comment 6y ago · link · parent

Mind sharing your company name ? , just curious

comment 6y ago · link · parent

How did you work remotely without screen sharing and all ? I mean what if the need to something similiar to screen share arose ?

comment 6y ago · link · parent

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.

21.

Show HN: For Hacker News,simple bookmarklet: toggle show/hide of child comments

1 points · by sktguha · 6y ago · discuss

comment 6y ago · link · parent

>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 ?

comment 6y ago · link · parent

we can put underscore before the 0 so that it is a valid name

comment 6y ago · link · parent

sorry must have typed by mistake in mobile

comment 6y ago · link · parent

How about just oTo1InclusiveVal ? I know very simple, but would get the job done ?

comment 6y ago · link · parent

Funny enough, Dan describes explicitly in his bio that he is not the creator of React

comment 6y ago · link · parent

couldn't you just write the same function to handle the prop in both componentDidMount and componentDidUpdate ?
123