HNHacker News
TopNewBestAskShowJobs

ianschmitz

180 karma · joined October 2, 2018

submissionscomments
ianschmitz··on Why thieves love to steal catalytic converters
Particulate filters for diesels already do this. Not sure why they never did for cats
ianschmitz··on Ask HN: Have tried switching career to a different field as software developer?
I came the other way from the trades as a journeyman welder/ironworker working primarily for structural steel erection companies.
ianschmitz··on Another NPM Package Is Highjacked
I don't usually comment on HN, but I feel inclined for this article. The advice here is very poor and misleading and shows that the author has a weak understanding of the ecosystem.

Their suggestion is to lock your project dependencies in your package.json file, however this completely ignores the rest of the dependency graph that is brought in as a result of installing those packages, locked or not.

In my experience almost every CVE or exploited package was a dependency of a dependency of a dependency that I have no direct control over.

The only way to ensure dependencies of dependencies aren't changing without your knowledge is to use and commit a lock file.

ianschmitz··on The scientists hired by big oil who predicted the climate crisis long ago
Your post history is interesting...
ianschmitz··on Show HN: Transform a CSV into a JSON and vice versa
There's nothing wrong with web-vitals...
ianschmitz··on Parcel 2 Beta 3 – improved build performance
I wouldn't recommend setting it up yourself. Try Vite instead.
ianschmitz··on Backblaze submitting names and sizes of files in B2 buckets to Facebook
I would also love to know as I've leveraged custom events in Google Analytics fairly extensively in the past.
ianschmitz··on Poll: Switching from WhatsApp
First my Oculus Rift, now WhatsApp. Sigh...
ianschmitz··on Microsoft is building a Chromium browser to replace Edge on Windows 10
Have you opened up the dev tools?
ianschmitz··on React v16.6.0: lazy, memo and contextType
One nice feature of react-loadable is that you can specify a threshold (300 ms by default I think) which is used to prevent rendering of the loader until after the threshold is passed so you don't get a flash of the loader. Users can perceive it as being slower if you have a quick flash of a loader then show the component.

I haven't seen anything yet about the Suspense component supporting this. I imagine you could wrap the suspense component with your own to achieve this behavior, but it's nice not to have to reimplement.

ianschmitz··on React v16.6.0: lazy, memo and contextType
With the addition of `React.memo`, is it still the recommendation from the React team that we only use `React.PureComponent` and `React.memo` in places where we profile and identify performance bottlenecks?

I seem to remember reading that adding something like `PureComponent` or implementing `shouldComponentUpdate()` can actually slow things down due to the cost of props/state comparison?

Either way thanks for another great release team! Suspense has me super excited!

ianschmitz··on Create React App 2.0: Babel 7, Sass, and More
Check out https://github.com/strothj/react-app-rewire-typescript-babel... for an example I helped get going. It was fairly straight forward!
← PreviousPage 4 of 4