Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bern4444
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
331.
▲
by
bern4444
5y ago
It supports typescript completely
332.
▲
by
bern4444
5y ago
I'm already so impressed by Remix after watching the demo today. Looking forward to Kent Dodd's demo tomorrow and to play around with the framework. It has a great balance between client and server code. Just as React brought the
333.
▲
by
bern4444
5y ago
They just did a demo with a simple form and looking at it seemed so obvious. There was no useState per form element, form data was trivially validated on the server, errors were trivially sent down to the server. If you look at this example
334.
▲
by
bern4444
5y ago
Totally, it's the separation of boundaries. My current company does this a lot better. My previous company the PMs definitely micromanaged the engineering teams
335.
▲
by
bern4444
5y ago
I also would love for a paper like digital experience. Remarkable and Supernote both look great. I've known about Remarkable for a while, and supernote from your comment just now. I want the experience of paper, most importantly of whi
336.
▲
by
bern4444
5y ago
What makes this work is the PM stopped asking about it and let you do it. They stayed focused on the deliverable work and gave you and the team the freedom to work on these tasks as you saw fit. It wasn't squeezed in only when there wa
337.
▲
by
bern4444
5y ago
For authentication I believe passportJS is still the go to library for integrating with oauth providers like twitter, LinkedIn, Facebook etc (or setting up your own username and pwd system). I’m sure there are several other libraries as wel
338.
▲
by
bern4444
5y ago
It’s very possible and easy to get everything working the same way on the client and server but I agree the whole import vs require support is frustrating. I set my stuff up to always use import syntax over require now which is what typescr
339.
▲
by
bern4444
5y ago
Yes, to me at least. The parent comment maybe just knows flask very well and is more comfortable with it and less comfortable with JS. An equivalently proficient JS engineer would be able to do just as much in just as little time (and likel
340.
▲
by
bern4444
5y ago
Templating engines are far less powerful and extensible than client side frameworks. FWIW, there are many JS templating engines as well that work with NodeJS too. There are pretty obvious downsides to templating engines that libraries like
341.
▲
by
bern4444
5y ago
I really like https://jrsinclair.com/web-development/ . The author writes in a very easy to understand way. The subjects are always interesting and more unique. The author isn't writing, like everyone else, about t
342.
▲
by
bern4444
5y ago
Somewhat related, the authors of react router are launching a react framework on Monday called Remix which looks really promising. Their site is remix.run
343.
▲
by
bern4444
5y ago
Typescript continues to be incredibly impressive. The release cadence is solid, breaking changes are minimal, and the power of the type system is massively impressive. I couldn't imagine writing JS without TS today. The TS team does a
344.
▲
by
bern4444
5y ago
> Whereas, in a REST architecture, the client makes an HTTP request and data is sent as HTTP response, in GraphQL, the client request data with queries. Already this isn't quite right. Both (often) operate on HTTP (though of course
345.
▲
Effection: For When Async/Await Is Not Enough
(frontside.com)
3 points
by
bern4444
5y ago
|
2 comments
346.
▲
by
bern4444
5y ago
I understand, and the browsers don't understand JSX is a fair point. I'm only illustrating that the difference between JSX and JS for React is about syntax and not the core distinction of why React feels easier to work with compar
347.
▲
by
bern4444
5y ago
Gotcha. I bet you could throw a script together that would use the package.json to auto generate script tags to inject in an HTML file. It's not ideal but I don't think it'd be too hard. This would require though a build step
348.
▲
by
bern4444
5y ago
It does work well for smaller focused applications. As soon as you need an escape hatch though to do something it doesn't have an expression for, and you will always find a situation where you do, you run into the barrier between the f
349.
▲
by
bern4444
5y ago
JSX allows for dynamically generating HTML elements that have access to values from JS without any work in binding the two together. That's pretty convenient. JSX is valid JS. It is converted down to the same thing as what you descri
350.
▲
by
bern4444
5y ago
I've never really understood the hooks are complicated line. Maybe it's the understanding that they integrate with React's event system (which I think is powered by something like rxjs/observables), but hooks make the mo
351.
▲
by
bern4444
5y ago
I don't like frameworks for web when they start creating their own syntaxes. As soon as I see something like ngIf or svelte's {#if x > 10} <p>{x} is greater than 10</p> {:else} or
352.
▲
by
bern4444
5y ago
Why can't you use npm modules via a CDN like https://unpkg.com/ ? Add a JS file that downloads whatever package you need and then use them in that JS file? Have your HTML page load that file via a script tag (you can al
353.
▲
by
bern4444
5y ago
The authors of React Router are developing a framework for React called remix[0]. It's not available yet, but it will be soon and it will be open source. Remix will certainly use react-router and I expect it to be similar to NextJS but
354.
▲
by
bern4444
5y ago
Even better, our fund is indexed against the positions of members of congress. Members can paper trade and we index against their decisions.
355.
▲
by
bern4444
5y ago
Domain registration is one of the first things you have to do when creating a website. If you want to register a domain and see you can do so on cloudflare, I'm sure it will bring people who otherwise would have registered on godaddy o
356.
▲
by
bern4444
5y ago
I recently wrote an article[0] about implementing a new Monad. It starts off with a simple premise and solution that slowly builds up the use case to the point where something more complex is needed to satisfy additional capabilities but al
357.
▲
by
bern4444
5y ago
One benefit to keeping your value wrapped in a Maybe is that as you transform and manipulate the value and pass it around in your system, you leave it up to the last place in your system that uses the value to define the fallback value in t
358.
▲
by
bern4444
5y ago
One tool that helped me a lot was learning about :h usr_01.txt. There are 45 or so of these pages. Reading through some of them was one of the most useful ways to learn vim. What's weird is very few blogs or articles mention these even
359.
▲
by
bern4444
5y ago
The same place that money goes when you lose money in the market :) [0] More seriously I think the key lots of people miss is that when you buy shares of a company, you don't have dollars anymore. You have shares. Shares are a currency
360.
▲
by
bern4444
5y ago
Just like idrios said, the difference is the creation of value. Companies especially public ones, must produce value. If they don't, no one will invest and if they continue not producing value long enough, they go broke and declare ban
More ›