Better HN
topnewbestaskshowjobs
Log inSign up

jack_hanford

369 karma · joined Dec 5, 2013 (12y ago) · 43 submissions

I am Jack Hanford, moved to the bay area alone 7 days after HS graduation. Now working as a software engineer

Website: http://jackhanford.com

Submissions

1.

Sam Altman's response to Molotov cocktail incident(blog.samaltman.com ↗)

364 points · by jack_hanford · 7mo ago · 997 comments

2.

Meta Urges California Attorney General to Stop OpenAI from Becoming For-Profit(wsj.com ↗)

12 points · by jack_hanford · 1y ago · 2 comments

3.

Moving on from Ink(vadimdemedes.com ↗)

1 points · by jack_hanford · 2y ago · discuss

4.

Bun v1.1.8(bun.sh ↗)

5 points · by jack_hanford · 2y ago · 1 comment

comment 4y ago · link · parent

Depending on how far along you are, I'd recommend checking out: https://lexical.dev/

I'm in the process of migrating my companies RTE from Slate to Lexical.

I've been able to remove thousands of lines of custom code and increase the performance and reliability

6.

Node.js 17 Is Here(medium.com ↗)

2 points · by jack_hanford · 5y ago · discuss

7.

React v17.0 Release Candidate: No New Features(reactjs.org ↗)

227 points · by jack_hanford · 6y ago · 118 comments

comment 8y ago · link · parent

Looks like IE mobile doesn't support CSS Grid!

comment 8y ago · link · parent

yeah I added a hard limit based on a relatively arbitrary max-width of 1400px.

I got all of the responsiveness for free using CSS grid! Definitely recommend checking it out if you haven't yet

Figured something like this would be a little overwhelming https://imgur.com/nx3hISb

comment 8y ago · link · parent

just rolled out a fix for this on firefox for mac, i don't have a windows computer to test the fix on...

if you do a hard refresh this issue may be resolved! ¯\_(ツ)_/¯

comment 8y ago · link · parent

May need to do a hard refresh because of the aggressive caching, but this should be fixed now!

comment 8y ago · link · parent

I'm using the search API, so unlikely anything different than Github's trending stuff that is already there.

The UI is a little better though ;)

comment 8y ago · link · parent

hmm, thanks for mentioning the select options .. should be an easy fix.

As for the page reloading I agree, but this exercise was specifically to make an application with the absolute minimum amount of client side code.

HTMl5 Forms do the job pretty well! :)

comment 8y ago · link · parent

Correct!

The way that is achieved is pretty neat, Next.js has a <Document />[1] component that you can extend. This Document is essentially your application shell that is used when server side rendering.

Here is the trends Document component[2] where you can see I'm simply omitting `NextScripts` which ends up being the frontend bundle with react + application code

[1] https://github.com/zeit/next.js#custom-document

[2] https://github.com/hanford/trends/blob/master/pages/_documen...

comment 8y ago · link · parent

It's certainly interesting. This kind of development has gone full circle where the methodologies are back to where it was years ago.

The issues that really large JS bundles can cause are really hard to solve (bloated sizes, but also parse time of the bundles). There are a lot of tools to help mitigate those like code splitting, but it's really challenging once things get big.

When I wanted to achieve a 100 in my chrome performance audit, I simply couldn't include React.

I think React adds a tremendous amount of value from the ecosystem, the constant improvements and updates .. and the mindset that developers have when building out react applications. (component model, etc)

I think for any really large application with lots of client side interactions or async data / data management, my solution would become unwieldy.

But for smaller applications that maybe don't need to do as much, (in the above case we're simply registering some event listeners to submit a form) or landing pages or the like .. the above solution would work very well.

comment 8y ago · link · parent

If I understand correctly you could build something like that but I'm not currently persisting any data from github which is something I'd need to add first.

I'm simply getting this data from Github and then caching the rendered result on the cloudflare CDN layer, the rendered page data in memory in node, and additionally the GraphQL query in memory

17.

Show HN: Trends – A GitHub trending PWA

95 points · by jack_hanford · 8y ago · 33 comments

18.

Eaze, cannabis delivery company, raises 27M(eaze.com ↗)

37 points · by jack_hanford · 9y ago · 48 comments

19.

Managing Tomorrow’s Infrastructure(segment.com ↗)

5 points · by jack_hanford · 9y ago · discuss

20.

Niffy: Perceptual Diffing to Catch Invisible Bugs(segment.com ↗)

84 points · by jack_hanford · 9y ago · 21 comments

comment 10y ago · link · parent

I use this chrome extension ->

https://chrome.google.com/webstore/detail/hn-special-an-addi...

You have to disable their hideous theme, but it adds collapsible comments and infinite scroll on the home page which is pretty neat.

22.

Delta bans shipment of lion, leopard, elephant, rhino, buffalo trophies(news.delta.com ↗)

10 points · by jack_hanford · 11y ago · discuss

23.

Show HN: Veneer, a Tool to modify the CSS of any webpage(jackhanford.com ↗)

6 points · by jack_hanford · 11y ago · discuss

24.

iOS 8.1.3 is out(9to5mac.com ↗)

1 points · by jack_hanford · 11y ago · discuss

25.

Angular 1.4 Beta 0 released(github.com ↗)

2 points · by jack_hanford · 11y ago · discuss

12