HNHacker News
TopNewBestAskShowJobs

sorahn

683 karma · joined October 23, 2013

submissionscomments
sorahn··on Please stop disabling zoom
> I'd like to be able to tell mobile Safari to just ignore that setting

Mobile Safari does ignore this setting. You have to go out of your way with stopping touch events on mobile safari to prevent zooming.

Sometimes this is problematic for sites using "small" (< 16px) fonts for input fields because that will cause mobile safari to zoom in to show the input field whether you want it to or not.

sorahn··on Postman Now Supports gRPC
I’ve been using BloomRPC for the past year, but it’s definitely got a few rough spots.

Very excited to try this out.

sorahn··on AirPods don't “just work”
I have slightly the opposite problem. My AirPods are too eager to reconnect to my Mac.

If I’m in a phone call with someone, on my phone, using my AirPods, and my Mac decided to play a single alert for whatever reason (slack, mail, text, whatever) the AirPods IMMEDIATELY connect to the Mac to play that one single notification, and leave me trying to shout across my house to my phone to tell the other person to hold on.

Super frustrating.

sorahn··on Two lines of CSS that will improve HN on mobile (IMO)
Hacker news provides its own api, but it's not as easy to use as you would like.

https://github.com/HackerNews/API#design

sorahn··on Two lines of CSS that will improve HN on mobile (IMO)
I have this exact sentiment. I wished for the same thing with Alien Blue when it was the king of 3rd party reddit apps.

I'm also using HACK (same as one of the other commenters in this thread), but it's not quite as nice as Apollo.

sorahn··on Apple Introduces AirTag
My motorcycle keys had a tile on them, and my dad was driving it around for an extended trip. I got 1 (singular) tile ping, his entire 6 week trip.

The fact that any iPhone (> 11) will ping home with the location of one of these is the croudsourced killer feature in the making for 2 years before release.

I'm in for a 4 pack.

sorahn··on Factorio Future Plans
After I got all the achievements I started playing some mod packs. About a year ago I found a nice discord group that does a new map roughly every month. It’s full of mods and different things. Yes it’s still factorio but we have a pretty small group of dedicated players who enjoy hanging out online with each other and factorio is how we choose to do it.

The overhaul mod packs can pretty drastically change the game experience. It scratches the programming itch while being a break from actual programming.

I’m sure the pandemic added a multiplier to those hours that I wouldn’t have seen otherwise. But I’m quite enjoying it.

sorahn··on Factorio Future Plans
The number of hours I have in this game is measured in thousands. And the first digit is not a 1. $30 was a steal.
sorahn··on Bad TypeScript Habits
Which also means the suggestion to use ?? has a different result then using a default param. ?? will catch both null and undefined, where as a default parameter will only trigger on undefined.
sorahn··on MindGeek: The owner of Pornhub and RedTube
> It's a lot more "normal" inside the company than people expect.

It was, just a tech company doing tech things.

> or are there "tame" videos used for dev+test so as to not be so distracting?

We had some public domain videos playing on a loop for internal testing environments, or some "screensaver" type videos.

> Do people become totally desensitized to it?

Yes, and relatively quickly too. The regular content was more looked at as a curiosity. "You found someone doing _what_?" "Let me see."

sorahn··on Minecraft@Home
Dinnerbone has also commented on reddit threads saying they support the project, but they don't think there's anything else mojang can do to help.
sorahn··on Minecraft@Home
I'm curious about what the implications of some of these projects will be for 2b2t. Given that the seed is known, couldn't people start finding bases from screenshots using some of these clusters of 'rotations of textures 'tricks?
sorahn··on GitHub Super Linter: one linter to rule them all
This is what we use. Husky runs linters on pre-commit to ensure everything is linted going into the repo.
sorahn··on Gadgets That Refuse to Die
I have so many hours in smash bros for the gamecube, I just can't play it on a different controller. My fingers get lost in the buttons.

That doesn't happen for any other game, but there is just so much muscle memory for that specific game.

Also I still have a wavebird that is alive and kicking, shame it lacks rumble.

sorahn··on Little known features of iTerm2
Depending on your workflow, you might even want the advanced configuration version of this.

I want new windows (which I rarely use) and new tabs to be my home directory, but split panes to be the directory I was in when I split. Works wonders.

sorahn··on GitHub Package Registry
If you can just point at the github registry, and run `npm publish`, does that really solve the problem?

NPM's major problem is there's no official link between the package and the repo, any code/branch can be published, and unless I'm missing something, this doesn't really solve that issue.

sorahn··on React Router v5
Yup. My "top level routes" only have 3 paths, and everything goes from there. Thinking about routes just like components is really fantastic for react, and I don't miss having a giant central router even a little bit.
sorahn··on React Router v5
> there's no relative routes https://github.com/ReactTraining/react-router/issues/2172

I've been managing "relative" routes by just using `match.path` and `match.url` from the previous route. Works fine.

    function Parent(props) {
      return (
        <>
          <Link to='/child'>Child</Link>
          <Route path='/child' component={Child}/>
        </>
      );
    }

    function Child({match}) {
      return (
        <>
          <Link to={`${match.url}/grandchild`}>Grandchild</Link>
          <Route path={`${match.path}/grandchild`} component={Grandchild} />
        </>
      )
    }
sorahn··on A guide to useEffect in React
> HOCs/render prop

Both of these inflate the VDOM, and present themselves as a false hierarchy that your app requires. HOCs artificially inflate the props that any component requires, and it's harder to see what props you're actually supposed to pass to the component, vs the ones that should come from a HOC. Hooks remove a lot of these anti-patterns.

sorahn··on A guide to useEffect in React
It only relies on that order between renders. It’s really a non issue.

I just spend the last month building a new chunk of our app in hooks to try them out, and it’s really nice to be able to wrap up shared stateful logic without HoCs.

A bunch of the HoCs in this app take a “propKey” param, because the HoCs are all stacked on top of each other, and prop collisions happened frequently.

Also, it’s a gigantic pain to use TypeScript and “compose”.

sorahn··on Coder (Visual Studio Code in browser) goes open source
The last time I asked about that on here someone suggested codesandbox.io. It has an option in the settings to use VSCode as the editor.
sorahn··on Famous Laws of Software Development (2017)
There is an entire poster of funny 'laws of computing' that was created in 1980 by Kenneth Grooms. It's pretty amazing how many of these are completely relevant 40 years later...

It's hard to find the original piece of art, but my uncle had this hanging in his office for a long time, and now it's hanging in mine.

I transcribed it in a gist so I had access to them for copy/paste.

https://gist.github.com/sorahn/905f67acf00d6f2aa69e74a39de65...

(Those pictures were from an ebay auction before I got the actual piece)

sorahn··on Play.js: The Node.js and React Native IDE for iPhone and iPad
I have used it before, but didn't know about the VSCode option. I'll check that out. Thanks!
sorahn··on Play.js: The Node.js and React Native IDE for iPhone and iPad
I would love to run VSCode and a preview browser window on my iPad Pro.
sorahn··on A Newly-Generated Create-React-App 2.1.5 App Has 1,568 Dependencies
The flip side of this, is I know how it all works, and I don't want to deal with it anymore. I spent 2 quarters at my last job digging through all the webpack/babel stuff just to come up with something that didn't work as well as CRA does out of the box.

And on top of that, it's all different now. I'm not as interested in trying to maintain all of that, on top of maintaining my app. CRA is a fantastic tool for this.

sorahn··on A Newly-Generated Create-React-App 2.1.5 App Has 1,568 Dependencies
I frequently spin up empty repositories for bug reports/playgrounds/one-off ideas. It's an extremely valuable tool when you just want to get down to working on the code.
sorahn··on Show HN: Simple way to share state using React Hooks and Context
Somehow the codebase I recently took over has managed to mess this up. Every time any part of the state tree anywhere changes, the whole app re-renders.

I’m trying to track down why this is an issue, but so far I haven’t had much luck. Do you know of any tools that can assist with this specific kind of debugging?

sorahn··on DuckDuckGo will use Apple Maps
Turn by turn notifications for walking directions. Surprisingly nice in combination with the watch. It just thumps my wrist when I'm supposed to turn.

That being said, I still search for places in google maps, and just plug the address into apple maps.

sorahn··on De-Suckafying Apple’s Butterfly Keyboard
I was just looking at some of the 2015 refurbs on amazon. Not bad. I have a 2018 at work, and I hate the keyboard. I'm either gonna grab the highest spec 2015 when mine dies, or just use my work laptop until the next generation.

I'm not interested in shelling out for a new personal laptop with these keyboards. :(

sorahn··on A Dog Who Took the Witness Stand
I've seen a similar story(video) with Judge Judy pop up on reddit a few times.

https://www.youtube.com/watch?v=IqZKFzFZEqc

← PreviousPage 2 of 5Next →