Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ricksharp
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
ricksharp
5y ago
I love my overengineered web site / playground. Yes, I hid a text adventure in the site header. Yes, it is full of stuff that no-one will care about. It's my art and my passion. I put all my cool code there and I over engineer it
2.
▲
by
ricksharp
6y ago
Everyone calm down: It was just a kid trying to hack into a video game company. He accidentally started a war simulation. The US had recently turned over control of its entire nuclear arsenal to an AI because humans resisted launching weapo
3.
▲
by
ricksharp
6y ago
I use vscode with Git Graph. It gives me a clear understanding of everything, allows me to manage branches easily, gives me access to every command I need, and even allows a great diff view between any commits. Merge conflicts are easy to s
4.
▲
by
ricksharp
6y ago
Everybody makes state management hard. All you need is a simple layer to make your typed api calls. export const ApiService = { return { getSomeStuff: async () => ..., postSomething: ..., etc, }; }
5.
▲
by
ricksharp
6y ago
I’ve been using hooks for a year, and they are awesome (once you get used to it). I can write the same component in 1/3 of the code in a functional style. The debugging story isn’t great if you expect to be able to use breakpoints. It’
6.
▲
by
ricksharp
6y ago
Wow, you’re right! That’s faster than I can remember it loading in real windows xp on a desktop (and that was installed versus downloading additional code for that module). Impressive!
7.
▲
by
ricksharp
6y ago
No, I was specifically talking about load time which is instant (compared to the majority of the internet which is not). Also, as far as hardware is concerned, I am comparing a 14 year gap between a desktop computer of 2001 to a 2015 iPhone
8.
▲
by
ricksharp
6y ago
Yeah, this is amazing. Works great even on iPhone. Going to save this one for the next time someone says React is slow. This worked instantly for me (just like my website, I wonder if they are using Gatsby or something else for static pre-r
9.
▲
by
ricksharp
6y ago
I hope someone pays attention, because this was fun!
10.
▲
Show HN: TypeScript Hack – Type System Text Adventure
(ricklove.me)
7 points
by
ricksharp
6y ago
|
2 comments
11.
▲
by
ricksharp
6y ago
This is a hack to play a text adventure in the typescript type system (no runtime at all). Typescript is awesome!
12.
▲
Show HN: TypeScript Hack – Type System Adventure
(ricklove.me)
2 points
by
ricksharp
6y ago
|
1 comments
13.
▲
by
ricksharp
6y ago
I built my desktop about 3 months ago after 16 years of using a laptop. It’s great! I also had fun researching how to get the best deal ~$2,000.
14.
▲
by
ricksharp
6y ago
Nice! I’m teaching my children to write their school papers in markdown for similar reasons. I use a github PR to provide feedback.
15.
▲
by
ricksharp
6y ago
No, but it's a great ideal for a blog post! When I have a chance, I'll let you know.
16.
▲
by
ricksharp
6y ago
I’ve been doing web since 1990s and I‘ve always thought spreading a UI element across 3 separate files (often in different locations) was an anti-pattern (or 5+ files In 5 different folders if you want MVC). React is awesome because it allo
17.
▲
by
ricksharp
6y ago
I agree, I think crime fighting requires tools that operate at the user level. So an infiltration bot: We have the technology today (gpt-3 level dialog) that could infiltrate criminal social networks, gather evidence, build credibility and
18.
▲
by
ricksharp
6y ago
Awesome work! That makes sense. I imagine with some experience you have a decent idea about what you can make fit.
19.
▲
by
ricksharp
6y ago
Thanks for the expansion and comments! On your project, I noticed the comments were about 5 times longer than the source code :) - so that makes sense how to work with it.
20.
▲
by
ricksharp
6y ago
I can see the benefits of monitoring progress like this for a good project manager (who isn't micro-controlling or forcing a schedule, but who can keep the stake-holders at bay with good progress reports and early warnings about a sche
21.
▲
by
ricksharp
6y ago
Amazing! Very impressive how you got all the details in. I'd be interested in hearing what the development process is like. Do you work directly in the minified code, or do you create the demo in normal code first then look for ways to
22.
▲
by
ricksharp
6y ago
Author here - hopefully this post will help you eradicate “any” form all typescript code bases. I explain a few good strategies to deal with types and hopefully add enough humor to make it entertaining.
23.
▲
TypeScript Any Is Evil
(ricklove.me)
2 points
by
ricksharp
6y ago
|
1 comments
24.
▲
by
ricksharp
6y ago
Are you sure it was the production database that was affected? If you are not sure how a hard coded script that was targeting localhost affected a production database, how do you know you were even viewing the production database as the one
25.
▲
by
ricksharp
6y ago
I agree completely. I started building websites in 1997 with FrontPage as a teenager. It was horrible - mostly because I was teenager and didn’t have anything interesting to say. It also wasn’t easy and took forever to get anything done. (S
26.
▲
by
ricksharp
6y ago
The Game of Life doesn't produce complex behavior from simple rules. The complex behavior comes from a large enough random starting state combined with a very low minimal required complexity to see something interesting. Also, even for
27.
▲
by
ricksharp
6y ago
Interesting discussion. I’d like to ask a sincere question: Wouldn’t a system A that is capable of encoding another complex system B, need to be as complex in order to encode all the information in the result? It’s like a compression algori
28.
▲
by
ricksharp
6y ago
Amazing. This is really impressive that it worked in my iPhone even. Since the quality is so high, I’ll add this bug report. Bug report: - iPhone - Zoom in to change brush - Can’t zoom page afterwords
29.
▲
by
ricksharp
6y ago
Give equally among all apps used in a time period sounds like the best metric. In fact, I would argue that some of the most useful apps might be ones that we use less - because they accomplished the required goal.
30.
▲
by
ricksharp
6y ago
I’ve been using C# since 2003, but I’m still 5 times faster in typescript & react. Besides that the typescript type system is insane. It’s cool to hear about discriminated unions though.
More ›