ricksharp

Joined 9 years ago

Karma
256
Submissions
164
Member since
Jun 15
https://ricklove.me
View on Hacker News

Recent submissions

Comment · 5 years 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 to death. It's awesome - it's fun - it's what you should do if you love coding. Guess what - I also have a table full of electronic projects, I've made unfinished games, I've done hackathons, it's great and we should embrace that.

Perhaps Kent Dobbs likes experimenting with new technology and trying new stuff. Perhaps his own personal web site is a place where he can do whatever he wants.

If you criticize him for that... well let's just say, I doubt your ability to code - and you are banned from my nerd club. If you don't take joy in an overengineered personal web site - then you are doing it wrong.

Seriously, speed runners spend months trying to save milliseconds on a mario speed run and you want to whine about a software engineer taking joy in his craft...

Ok, that's my rant.

I support freedom, I support the free web, I support the proliferation of code and over-engineered solutions.

Comment · 5 years 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 weapons that would kill millions.

Anyway, the kid accidentally started a war simulation and now the AI wants to nuke everyone. Don’t worry though, as soon as the AI plays itself in tic-tac-toe, it will realize that peace is the only way.

If you aren’t old enough to understand this, you need to catch up on your 80s nerd movies. :)

Comment · 6 years 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 solve now and I never get lost in the complexity.

I use cli tools for almost everything, but Git Graph and vscode solves git for me. The only command I run in git cli is git clone or git unit.

Comment · 6 years 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,
  };
}
Comment · 6 years 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’s all about putting console.log wherever really.

The beauty comes in the speed of coding, I can move so fast that I always build a mock version of my api layer and can have the entire UI done rapidly.

Comment · 6 years 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!

Comment · 6 years 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 6s - a 5 year old phone that still runs on battery for about 6 hours.

But that has nothing to do with load time and why most websites today can’t load in under 1 second (or even 10 seconds).

I’ve heard many complain about React performance, yet I have seen React with ssr or static rendering perform amazingly well.

My site for example loads as fast as hacker news on first page load, and then faster because of static rendering and pre-fetching, yet it has unlimited interaction.

I imagine if I profiled the performance of this demo, it would be similar.

Comment · 6 years 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-rendering).

Comment · 6 years ago
I hope someone pays attention, because this was fun!
Comment · 6 years ago
This is a hack to play a text adventure in the typescript type system (no runtime at all).

Typescript is awesome!

Comment · 6 years 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.

Comment · 6 years 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.

Comment · 6 years ago
No, but it's a great ideal for a blog post! When I have a chance, I'll let you know.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton