HNHacker News
TopNewBestAskShowJobs

goodoldneon

918 karma · joined July 23, 2018

submissionscomments
goodoldneon··on I don't want to do front-end anymore
I think it's more likely that faster CPUs will make CPU hog pages less noticeable. Companies keep making bloated pages but users will decreasingly care.
goodoldneon··on I don't want to do front-end anymore
FB's terrible back functionality is their own fault since libraries like React Router give you a ton of control over back/forward behavior.

As for FB's slowness, SPAs are hard to do well when you have a lot of live data all over the page. You can get clever with optimistic backend calls and caching, but in the end you still have frequent state changes.

Users want infinite scroll to be fast, so you need over-eager loading _in case_ they scroll. Add over-eager loading all over the page (in case they click on a user profile, in case they click on FB Marketplace, etc.) and you have a recipe for a CPU hog.

goodoldneon··on I don't want to do front-end anymore
IMO, phone apps changed users’ expectations for websites. They want the same interactivity on Facebook.com that they get on the Facebook app. Same with Kayak (or whatever travel site people use these days). Same with Google Maps. However, the vast majority of sites are totally fine as static pages, as long as the user has a fast connection that makes loading between pages imperceptible.
goodoldneon··on Buildpacks vs. Dockerfiles
Buildpacks has some nice features, at the expense of deviating from an industry standard (Dockerfiles). The speaker implies that Dockerfiles are fine if they're fine, but Buildpacks is attractive if you want more control over your Docker image build process.

Composite images. Don't need a Dockerfile for each app. Rebase layers when OS layer changes (Dockerfiles would require rebuilding the whole image).

goodoldneon··on Learn Go in five minutes
Someone make "Learn Haskell in 50 seconds"
goodoldneon··on Equity guide for employees at fast-growing companies
How does that happen? If you own a stake in a company, how can it disappear like that?
goodoldneon··on No-kill, lab-grown meat to go on sale for first time
That isn't a valid comparison. There's a huge difference between a meat substitute and lab grown meat.
goodoldneon··on Ask HN: Who is hiring? (November 2020)
Duo Security | Software Engineer | Ann Arbor, MI; Austin, TX; Remote

I can't imagine a better company culture; I love it here.

https://jobs.cisco.com/jobs/SearchJobs/Duo%20Security

goodoldneon··on Vue.js 3
Why can't React do the same?
goodoldneon··on An Update on MDN Web Docs
> Is it valuable enough that you'd consider paying for access?

Yes

goodoldneon··on Unit Testing Is Overrated
You're absolutely right: functional code is the source of the readability. But writing unit tests incentivizes engineers to keep things functional.

What's a better term than "dependency injection"? What should I call an argument whose default is always used in production code, but is there to make passing a mock easy? I'm not trying to be snide -- I'm genuinely curious.

goodoldneon··on Unit Testing Is Overrated
We initially only had integration tests, because many people think they're better. I get it: itests use the real plumbing, so they're more representative of your runtime. But they're slooooow -- especially the tests that involve the DB (which is most of our itests).

So we started adding unit tests. Utesting code that wasn't written for utests is painful: you often need to choose between refactoring or just patching the hell out of it. The latter is highly undesirable, since it leads to verbose tests, failures when you move a module, and the inability to do blackbox testing.

But utests encourage our new code to be clean and readable. We've found that functional programming is much easier to test than object-oriented, and is easier for engineers to grok. We just sprinkle a little dependency injection and the whole thing works nicely.

Itests have their place, but utests lead to faster feedback and more readable code.

goodoldneon··on Ask HN: How does your company manage its encryption keys?
Store them in a separate instance of Vault.
goodoldneon··on I am mesmerized by our new robotic vacuum (2019)
Be wary about running your Roomba unattended if you have a dog. Our pup dropped a load in our bedroom and the Roomba smeared it 5 feet across the carpet. Some bits were stuck to the front bumper, so the Roomba left little poo polka dots on our baseboards.
goodoldneon··on What So Many People Don’t Get About the U.S. Working Class
Wow. That should be required reading.
goodoldneon··on Django 3
> Django is now aware of asynchronous event loops and will block you calling code marked as “async unsafe” - such as ORM operations - from an asynchronous context.

So DB calls aren't async?

goodoldneon··on YouTube demonetizing videos where LGBTQ keywords are said
That sounds good in theory, but I'd bet a free speech alternative to YouTube would become a hotbed for hate.
goodoldneon··on Electron 6.0
When a team is short on developer time and code readability is paramount, premature optimization can be a hindrance. But like most things in life, the truth is in the middle: teams should strike a balance between competing priorities rather than throwing around the premature optimization argument.
goodoldneon··on Ask HN: Where should I start as a 34-year-old switching to software as a career?
Sure. What would you like to ask?
goodoldneon··on Ask HN: Where should I start as a 34-year-old switching to software as a career?
Couldn't agree more. I made the switch about a year ago at age 31. Previously, I was a manufacturing process engineer. I created some tools for me and my team, and my current employer hired me specifically because I "created real apps".

Companies want employees who are self-starting autodidacts.

goodoldneon··on Meta Programming in JavaScript with Proxies
Yea, Proxy performance can be an issue, especially if you use them recursively. I tried using them to create a "protected" clone (https://github.com/goodoldneon/alhambra). The initial "clone" is much more performant than actually deep cloning, and doesn't get more expensive as the size of the original increases. However, get/set/delete/etc. is far less performant.
goodoldneon··on Ditching the MacBook Pro for a MacBook Air
That sounds like a nightmare
goodoldneon··on Ditching the MacBook Pro for a MacBook Air
It comes down to preference. Personally, I love thinner and lighter. I like using a machine that feels premium.
goodoldneon··on Wooden bikes
Hopefully they never have a fire sale.
goodoldneon··on Ask HN: Cheap places to live with a good intellectual atmosphere?
I've lived in Ann Arbor for the last 4 years, and rent is shockingly expensive for a college town. The food scene also kinda sucks. There a couple great restaurants, but most are overpriced and mediocre.
goodoldneon··on Napoleon Was the Best General Ever
Calling MJ "clearly the best" is insane. MJ had a much better supporting cast, one of the greatest coaches of all time, and didn't have to play the most dominant team ever (Warriors) for 4 consecutive Finals.

The Bulls won 55 games during the first year of MJ's hiatus. The Cavs won 19 games the year LeBron went to Miami.

← PreviousPage 10 of 10