News for hackers. Stuff that matters.

FLGMwt

Re:iNaturalist on Saturday April 04, 2026 @06:14PM (#47644062)
oops, sorry, I double posted this from an edited draft, please see my other comment for more helpful links to actual iNat behavior on this.
Re:iNaturalist on Saturday April 04, 2026 @06:10PM (#47644036)
hey, iNat eng here, just want to chime in that this is all great feedback!

here's [1] some extra info on iNat's current geoprivacy treatment and [2] guidance on how to configure this for our different platforms for individual `Observations` (our core domain entity to which geo is attached).

I'll at least share that this is on our radar to look at, but I wouldn't expect changes in the next few months. For now, we still want your observations, but if this is a concern you have, please take a look at the geoprivacy settings!

[1]: iNat's geoprivacy explainer https://help.inaturalist.org/en/support/solutions/articles/1... [2]: platform-specific guidance on configuring geoprivacy for an Observation https://help.inaturalist.org/en/support/solutions/articles/1...

Re:iNaturalist on Saturday April 04, 2026 @12:42AM (#47635820)
iNat eng here, non-authoritative rep

handling this concern is on our radar but I can't speak to delivery timeline. It my involve timed "obscured" windows (obscure things for this hiking weekend) and/or user-configurable geofences (obscure observations around my home but not anywhere else).

we _also_ want to respect the geoprivacy of wildlife: sometimes observations generate _problematic_ attention. For sensitive species, we want people to report them, but we don't want to be complicit in or responsible for interested people flocking to the observation and potentially spooking the observed species.

Re:iNaturalist on Saturday April 04, 2026 @12:23AM (#47635718)
we can all dream
Re:iNaturalist on Saturday April 04, 2026 @12:23AM (#47635717)
that's funny because we _just_ introduced cloudflare.

it's not my wheelhouse, but it would be comedic so let me know if you get the legit cloudflare host connection warning _and then_ land on the how it works that you mentioned looks like cloudflare.

Re:With React 16.8, React Hooks are available in a stable release on Wednesday February 06, 2019 @09:53AM (#19095465)
The component renders any time the setWhatever function is called, similar to this.setState() in class components. The presumption is anything that you're storing in state is depended on by the component. If it's not, it doesn't make sense to have it in state anyway.
Re:John Dvorak: “Yesterday I was fired from PC Magazine” on Friday September 21, 2018 @11:45PM (#18044328)
Are you non-sarcastically defending Alex Jones?
Babel has some crazy throughput going through it to drive a massive percentage of the modern web. Wild to see how low the funding is.
This is terrible.

$25 for 12 minutes from one place in the loop to O'Hare

CTA is $2.50 for 37 minutes (the $5 is if you start from O'Hare)

This is only benefitting people for whom 25 minutes is worth $20/$22.50.

$1bn or whatever absurd cost it comes out to be is much better spent on improving transit for the actual public.

Or you know, to stop shutting down schools.

EDIT: typo

Re:Ask HN: Who is hiring? (March 2018) on Thursday March 01, 2018 @01:04PM (#16494445)
Rally Health | Chicago, SF, DC, Minneapolis | ONSITE

React Native Engineer

We're hiring a React Native dev to help us build out a high profile consumer-facing app for a Fortune 10 company. You'll join a mixed team of React specialists and native mobile specialists. We're a well-disciplined group, with a strong focus on developer responsibility for quality (with the help of Enzyme and Detox). Our team also has dedicated time blocked off for OSS work to contribute back to the libraries we use.

Rally Health makes consumer-focused healthcare products that help people shop for care with doctor and pricing information, get into healthy habits, and learn about their benefits. Obligatory tech list: Scala, JavaScript, AWS, Postgres, Terraform, Docker, ElasticSearch, etc.

https://www.rallyhealth.com/about/careers/1048473

Re:What Happens When Doctors Only Take Cash (2017) on Monday January 15, 2018 @08:19PM (#16155043)
As an American working in healthcare tech: it is absolutely barbaric.

We have the most expensive medicine in the world, but it's all treatment, not prevention and both only for those who can afford it.

Re:Great React style guide by Airbnb on Friday January 12, 2018 @09:18AM (#16132925)
That was roughly my guess. I asked because I ran into a specific edge case where this is finicky.

AFAIK, arrow functions do (and should) have names if they're assigned to a variable.

  const foo = () => {};
  // undefined
  foo.name
  // "foo"
I ran into a specific bug where this doesn't work for the following case when using babel to target modern versions of node:

  export const foo = () => {};
Note that's only when the declaration is part of an export (https://github.com/babel/babel/issues/7194).

The name works fine in the browser, but since jest/enzyme use node to run tests, I had issues with functional components (defined as arrow functions and immediately exported) were missing their names.

FWIW, this isn't an issue in Babel 7.

Re:Great React style guide by Airbnb on Friday January 12, 2018 @08:12AM (#16132542)
Anyone have an idea why it suggests named functions instead of arrow functions for functional components?
Re:The Brutal Lifecycle of JavaScript Frameworks on Thursday January 11, 2018 @07:12PM (#16129316)
Ditto for React. Pretty much every "how do I do this" is covered in the official tutorial and every "how should I do this" is covered by supplemental guides (still official docs).

Some good ones: "thinking in React", "lifting state up", "controlled components", and similar docs in redux: "you might not need redux"

Ask HN: How do you handle composite UIs?

In the situation where you have something like a shared header across multiple SPAs or domains, what strategies do you use?In simpler terms, how do you do an iframe without using an iframe?I'm roughly getting at the ideas described here[1], but wondering how people deal with it tactically as well as the interaction with front-end frameworks.1:...

( Read More... | no comments | on HN )
Re:Apple's new minimalistic iPhone site design on Monday January 08, 2018 @09:06PM (#16102890)
"what to expect with our brave, game-changing webkit security updates"
Re:Apple’s iMac Pro is a love letter to developers on Thursday December 14, 2017 @01:03PM (#15924662)
I mean. I guess not all love letters need to be reciprocated so I'll save my nits on the headline.
Re:Visualizing Realtime Bitcoin Transactions in ReactVR on Wednesday December 13, 2017 @10:41AM (#15914894)
Yup! It shows up by default, IIRC.

It's a layer on top of WebVR, similar to A-Frame.

Re:The State of JavaScript 2017 on Wednesday December 13, 2017 @08:03AM (#15913934)
FWIW, Sacha posted a "sorry for the delay" post a while back: https://medium.com/@sachagreif/the-state-of-js-2017-results-...

Agreed on wanting it earlier, but the results are still super valuable.

Re:The State of JavaScript 2017 on Wednesday December 13, 2017 @07:59AM (#15913908)
It's pretty rough on newcomers as well as devs trying to find docs and blog posts, but in contrast to naming it something else, it was pretty effective at establishing a user base.

It would have been a lot easier on the world if 1.x was the last version of anything called Angular and Google named the new thing FooBarJS.

But Google knows how software teams work. Names and versions are easier to evaluate than trying things out or running comparative analysis.

Teams hire "Angular" developers which usually means "1 or 2" even though it very much shouldn't.

Teams will set aside time to "upgrade to Angular 2" more freely than they would set aside time to "switch to a different framework, FooBar.js", even though with Angular 2, those are the same.

Even if teams would set aside time to "Upgrade to new framework", they're much more likely to do a alternatives analysis if it's not just a version number changing.

That said, I think this hurts developers and teams, and I think it's loosely nefarious, but it was probably necessary for Angular 2 to get the adoption it has today.

Re:The State of JavaScript 2017 on Tuesday December 12, 2017 @11:31PM (#15912042)
Curious: I assumed it had converged around UglifyJS. Do you use something different?
Re:The State of JavaScript 2017 on Tuesday December 12, 2017 @11:29PM (#15912033)
While that's in line with what the Angular team has communicated to differentiate 1.x and 2+, I disagree. Since "Angular" is unnamespaced and "AngularJS" is not disambiguated enough from "that JS library called Angular", I think the numbers are important to outsiders.

My org has been dealing with Angular and AngularJs for the past two years and developers and non-developers alike get confused or unclear all the time when we try to communicate about the two. The only thing that's been successful has been to describe them as "Angular 1.x" and "Angular 2+".

On top of that, when doing searches for documentation and issues, it's still absolutely necessary to add "2" to searches for the right version of the framework.

Re:Cards Against Humanity Redistributes Your Wealth on Saturday December 09, 2017 @10:22PM (#15889677)
Hi.

The "wealth distribution" is entirely at CAH's expense. They only surfaced that language because they made a point of communicating to the non-recipients that they wouldn't be receiving anything on top of their original contract (of getting the game for cash, which they totally got).

Re:Cards Against Humanity Redistributes Your Wealth on Saturday December 09, 2017 @10:19PM (#15889671)
Thanks for the input!

I realize I didn't clarify explicitly. While I'd agree that a one-time $15 gamble would be an irrationally exorbitant expense if it was in place of a family meal, I think we're talking about different things.

Even if "poor people" were <$1000 away from financial ruin, $15 towards a reusable entertainment asset is quite different than $15 towards one-off lottery tickets.

Older »