News for hackers. Stuff that matters.

sktguha

Re:Super-expressive – Write regex in natural language on Thursday January 21, 2021 @01:23PM (#25862144)
You could perhaps use es6 templates for better readability
Re:Show HN: StrongMap – JavaScript Map Meets Your Hard Disk on Monday November 30, 2020 @01:21PM (#25257034)
How is it different from something like node localstorage ?
Re:DOM recording for web application demos on Tuesday November 24, 2020 @06:33AM (#25197516)
cool stuff!
Re:Why I chose Electron.js for my side business on Friday November 20, 2020 @03:51PM (#25164794)
Yes I am curious to see how it evolves
Re:Electron 11.0 released with support for Apple Silicon on Friday November 20, 2020 @04:16AM (#25158733)
I believe React native is already there for windows 10, not sure how mature it is however.
Re:Git is too hard on Tuesday November 17, 2020 @06:50AM (#25122656)
yes agreed. very well said.
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 ?
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

Re:The Architecture of Open Source Applications on Wednesday September 30, 2020 @06:34AM (#24637251)
Add React and Redux also . Although Redux is a lot simpler
Re:Things I Was Wrong About: Types on Sunday September 27, 2020 @03:55PM (#24609647)
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.
indeed . so the galaxy cluster might have moved by a really massive distance, assuming even if there is some universal coordinate system
interesting thought
Re:New JSX Transform on Wednesday September 23, 2020 @10:54AM (#24567835)
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.
Re:I overslept because iOS 14 disabled my alarm on Thursday September 17, 2020 @06:46AM (#24503046)
That's a great idea!
Re:Why do so many people want us back in the office? on Saturday September 12, 2020 @05:40PM (#24456052)
Mind sharing your company name ? , just curious
Re:Traits of good remote leaders on Thursday September 10, 2020 @02:31PM (#24435172)
How did you work remotely without screen sharing and all ? I mean what if the need to something similiar to screen share arose ?
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.
Re:Ask HN: As a developer what are your aha moments? on Tuesday September 08, 2020 @03:22PM (#24411979)
>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 ?

Re:A word for a value between 0 and 1 (inclusive) on Friday September 04, 2020 @11:27AM (#24375777)
we can put underscore before the 0 so that it is a valid name
Re:A word for a value between 0 and 1 (inclusive) on Friday September 04, 2020 @11:26AM (#24375759)
sorry must have typed by mistake in mobile
Re:A word for a value between 0 and 1 (inclusive) on Thursday September 03, 2020 @04:05PM (#24368265)
How about just oTo1InclusiveVal ? I know very simple, but would get the job done ?
Re:React is becoming a black box on Thursday September 03, 2020 @03:42PM (#24367964)
Funny enough, Dan describes explicitly in his bio that he is not the creator of React
Re:React is becoming a black box on Thursday September 03, 2020 @03:30PM (#24367810)
couldn't you just write the same function to handle the prop in both componentDidMount and componentDidUpdate ?
Re:Ask HN: Captcha Alternatives? on Monday August 31, 2020 @04:29PM (#24335595)
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
Is there an HTML version? PDF version is impossible to read on mobile device

Older »