Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
skn0tt
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
skn0tt
5y ago
awesome to see a Blitz.js-built app on the front page :)
2.
▲
Fire-and-forget HTTP Requests using Node.js
(simonknott.de)
1 points
by
skn0tt
6y ago
|
0 comments
3.
▲
SuperJSON – JSON on Steroids
(simonknott.de)
4 points
by
skn0tt
6y ago
|
1 comments
4.
▲
Integrating NextJS with NestJS (Simonknott.de)
(simonknott.de)
2 points
by
skn0tt
6y ago
|
0 comments
5.
▲
Selfhosted Nextcloud with regional redundancy (carbon neutral)
(simonknott.de)
1 points
by
skn0tt
7y ago
|
0 comments
6.
▲
by
skn0tt
7y ago
Then what do you do about the old version of the mutated object? There will still be references to it in other parts of your object model, which will now be out of date. I think that the concept of objects preserving identity is central to
7.
▲
by
skn0tt
7y ago
Similar to the other commenters, I find this comparison to be a bit unfair since TS is not a completely new programming language. Apart from that, Elm is a great language! I've been dabbling around with it in the past and I especially
8.
▲
by
skn0tt
7y ago
When it comes to API responses you don't control, I recommend taking a look at user-defined type guards: https://basarat.gitbooks.io/typescript/content/docs/types/ty... Also, +1 on tslint and pretti
9.
▲
by
skn0tt
7y ago
I see why you're missing an explanation on why classes should be avoided. In fact, your opinion is very similar to mine - I also think that, especially in the context of the FP-influenced React, data should be separated from behaviour
10.
▲
by
skn0tt
7y ago
Correct me if I'm mistaken: I think you can indeed cast from HashMap to Animal and it will happily compile: ```java import java.util.HashMap; class Main { class Animal { String sound = "roar"; } public static voi
11.
▲
by
skn0tt
7y ago
That's a very good point! Although I find the example to be rather exaggerated, I see how these types of errors can happen when you're dealing with very complex types. In the post, I also talk about how wrongly-typed dependencies
12.
▲
by
skn0tt
7y ago
I'm with you on this. In my opinion, TypeScript can really get in your way when you develop in a way that's not TypeScript-friendly, but you'll benefit heavily once you start developing with types in mind.
13.
▲
Using TypeScript with React
(simonknott.de)
225 points
by
skn0tt
7y ago
|
192 comments
14.
▲
An Introduction to the V Language
(simonknott.de)
1 points
by
skn0tt
7y ago
|
1 comments