Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
insin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
421.
▲
by
insin
11y ago
Every function in Lodash is also available as a dedicated module, for the same reason left-pad existed: https://www.npmjs.com/package/lodash.padstart
422.
▲
by
insin
11y ago
I use this userscript: https://greasyfork.org/en/scripts/18066-hn-comment-trees It also highlights new comments and collapses threads without new comments on repeat visits. HN now feels unusable without it in scen
423.
▲
by
insin
11y ago
It works pretty well, but there are still some "issues" you need to deal with: - Items for users with a delay configured get posted to the API before their content is made available (if you go to the story id on HN proper, there&#
424.
▲
by
insin
11y ago
It clearly isn't, but it starts to feel like it once you get used to JSX syntax as sugar for nested function calls with attribute object arguments.
425.
▲
Welcome to Future of Web Application Delivery
(medium.com)
4 points
by
insin
11y ago
|
0 comments
426.
▲
Angular 2 versus React: There Will Be Blood
(medium.com)
7 points
by
insin
11y ago
|
0 comments
427.
▲
by
insin
11y ago
I don't undestand this expectation, there's nothing magic about 1.0. They thought they had the API figured out for various use cases beyond the core routing functionality, but it turns out they didn't. In addition, 2.0 is sup
428.
▲
by
insin
11y ago
Is the issue with functional components that they blow away the state of any stateful components they contain with HMR? If you install and run this Gist mini-project, you still get the HMR experience with the functional component: https:&#
429.
▲
by
insin
11y ago
Weird, I actually posted this yesterday morning - the Firebase API shows the correct time: https://hacker-news.firebaseio.com/v0/item/10730047.json?pri... >> new Date(1450084080 * 1000) Date 2015-1
430.
▲
Rediscovering MVC
(github.com)
92 points
by
insin
11y ago
|
18 comments
431.
▲
Using React Is a Business Decision, Not a Technology Choice
(medium.com)
11 points
by
insin
11y ago
|
4 comments
432.
▲
by
insin
11y ago
POWDER is very a accessible way into the genre if you want to learn some of the skills you need for NetHack, such as item identification. It gives you that same feeling that the author really has thought of how every verb in the game can be
433.
▲
by
insin
11y ago
They both look neat to me. let SimpleComponent = () => <div> <p>I am a component!</p> <p className="someClass"> I have <strong>bold</strong> <span style
434.
▲
Show HN: Nwb – a development tool for React and web modules
(github.com)
3 points
by
insin
11y ago
|
0 comments
435.
▲
Replacing duplicated ESLint config with a single npm package
(medium.com)
1 points
by
insin
11y ago
|
0 comments
436.
▲
by
insin
11y ago
I've used a structure similar to the one suggested by Ryan Florence in this Gist [1] with some success. The gist of it is: > The file structure maps directly to the route hierarchy, which maps directly to the UI hierarchy. > It&#
437.
▲
by
insin
11y ago
Dan Abramov wrote a blog post a while back with a bunch of "You might need Flux if..." use cases, which might be handy: https://medium.com/swlh/the-case-for-flux-379b7d1982c6
438.
▲
by
insin
11y ago
I'd be interested in exploring the heuristics and techniques involved in finding that out. e.g. this identifies the popup wrappers on nautilus and yesmagazine: [].filter.call(document.body.childNodes, node => node.nodeT
439.
▲
by
insin
11y ago
It looks like Fanboy's Annoyance List [1] would have blocked it with this rule: nautil.us###adpayload There's a checkbox in uBlock Origin's settings dashboard to enable this list. https://easylist.adblockp
440.
▲
by
insin
11y ago
DOM is a tree of hodes, HTML is used to define the tree. Each DOM node generates a box. Different node types generate different types of boxes by default. CSS controls visual formatting of the boxes, including changing the box type. The CSS
441.
▲
by
insin
11y ago
Start with an HTML boilerplate which takes care of the details of transpiling (which are initially irrelevant to you in learning mode). My first react app started out in a file like this [1] and I didn't go and figure out how to set up
442.
▲
by
insin
11y ago
The link you provided to demonstrate the problem also gives you the solution: > Moral of the story: > > Always use 3 equals unless you have a good reason to use 2. Tools like ESLint make it easy to enforce this (and to only allow
443.
▲
by
insin
11y ago
I use this user script to show how many new comments there are, highlight new comments and auto-collapse threads without new comments since the last visit to a story: https://github.com/insin/greasemonkey/blob/
444.
▲
by
insin
11y ago
And a Redux version because why the hell not: https://gist.github.com/insin/2f9a4cf810eeed88da89
445.
▲
by
insin
11y ago
This is more like what I'd expect a 20 minute React version to look like: http://bl.ocks.org/insin/raw/b2f4901d4173677908a8/
446.
▲
How to Use Classes and Sleep at Night
(medium.com)
6 points
by
insin
11y ago
|
0 comments
447.
▲
by
insin
11y ago
I found this example in the dataloader README useful, as it deals with loading from a SQL-based database, with relationships, which is similar to the first project I'm planning on trying it with: https://github.com/face
448.
▲
by
insin
11y ago
> Is it reasonable to consider react when you just want to add some interactions and dynamism to a page that was rendered server side? Not if you want to reuse the server-generated markup. You can use it for little pieces in an otherwise
449.
▲
by
insin
11y ago
The nice thing about Django is the combo of its model layer and forms library handle the most boring bits of CRUD without generating a bunch of code or being tied into a particular templating library. I'd be tempted to go with this ans
450.
▲
Criticisms of Angular
(leanpanda.com)
4 points
by
insin
11y ago
|
0 comments
More ›