HN user

jashkenas

26,570 karma
Posts683
Comments1,159
View on HN
www.nytimes.com 2y ago

Why the pandemic probably started in a lab, in 5 key points

jashkenas
26pts30
www.nytimes.com 2y ago

Has Dog Breeding Gone Too Far?

jashkenas
1pts0
www.nytimes.com 2y ago

How A.I. chatbots become political

jashkenas
40pts72
web.archive.org 2y ago

Sam Bankman-Fried Has a Savior Complex–and Maybe You Should Too

jashkenas
1pts0
www.nytimes.com 2y ago

The Story of the Student Journalist and the Stanford President

jashkenas
1pts0
www.nytimes.com 3y ago

We spoke with 5 people who work with AI about what keeps them up at night

jashkenas
21pts5
www.curbed.com 3y ago

The Cost of Living in NYC Calculator

jashkenas
4pts0
observablehq.com 3y ago

Observable Plot: The JavaScript Library for Exploratory Data Visualization

jashkenas
2pts0
www.nytimes.com 3y ago

Build Your Own College Rankings

jashkenas
1pts0
www.nytimes.com 3y ago

Over 1,000 Trains Derail Every Year in America. Let’s Bring That Number Down

jashkenas
5pts0
www.nytimes.com 3y ago

This Film Does Not Exist

jashkenas
7pts1
www.nytimes.com 3y ago

Quiz: You Can’t Say That (Or Can You?)

jashkenas
2pts0
www.nytimes.com 3y ago

If You Want to Give Something Back to Nature, Give Your Body

jashkenas
1pts0
www.nytimes.com 3y ago

Science Has a Photoshopping Problem

jashkenas
5pts0
www.nytimes.com 3y ago

Mr. Biden, Tear Down This Highway

jashkenas
3pts0
www.nytimes.com 4y ago

The Coin That Could Wreck Crypto

jashkenas
6pts1
psychopolitica.substack.com 4y ago

Fear and Power in the Russian Dreamscape

jashkenas
2pts0
www.vanityfair.com 4y ago

“This shouldn’t happen”: Inside the virus-hunting nonprofit EcoHealth Alliance

jashkenas
323pts238
chrishedges.substack.com 4y ago

The Marriage of Julian Assange

jashkenas
47pts17
on.substack.com 4y ago

The Substack App

jashkenas
13pts0
gist.github.com 4y ago

Maps4HTML

jashkenas
2pts0
inference-review.com 4y ago

Thunder Out of China

jashkenas
13pts0
acko.net 4y ago

React – The Missing Parts

jashkenas
13pts2
on.substack.com 4y ago

Society has a trust problem. More censorship will only make it worse

jashkenas
413pts576
observablehq.com 4y ago

Eases on Edge: Visualizing Easing Functions

jashkenas
1pts0
observablehq.com 4y ago

D3 Charts

jashkenas
3pts0
benlesh.com 4y ago

TC39 Pipeline Operator – Hack vs. F#

jashkenas
50pts75
imba.io 4y ago

Imba CSS Scoped Styles

jashkenas
1pts0
observablehq.com 4y ago

Classic Research in Data Visualization

jashkenas
1pts0
twitter.com 4y ago

1. create a component standard 2. oops, it doesn't work without JS...

jashkenas
1pts0

Here’s a gift link you can use to read the full article, if the paywall is giving you any trouble: https://nyti.ms/3IXGobM

... and if the side-by-side examples aren’t working for you, try turning off your ad blocker and refreshing. (We’ll try to fix that now, but I’m not 100% sure we’ll be able to.)

Here’s a gift link you can use to read the full article, if the paywall is giving you any trouble: https://nyti.ms/3IXGobM

... and if the side-by-side examples aren’t working for you, try turning off your ad blocker and refreshing. (We’ll try to fix that now, but I’m not 100% sure we’ll be able to.)

Working at a still-feels-new-to-me job as Graphics Director for Opinion at The New York Times. Our small team publishes arguments and guest essays supported by visual evidence, like these:

- https://www.nytimes.com/interactive/2022/10/29/opinion/scien...

- https://www.nytimes.com/interactive/2022/09/08/opinion/urban...

- https://www.nytimes.com/interactive/2022/07/20/opinion/ancie...

But I'm a believer in asking for help in order to cast a wider net. If you happen to stumble across an obscure-yet-newsworthy dataset, or have a strong feeling about a particular guest essayist that we should be approaching, or can't stop thinking about an argument that's itching you — pitches and tips are always welcome: [my hn username]@nytimes.com

I started reading through these comments expecting a tall wave of negativity, and was surprised to see such a warm wash of mixed and fond memories from the "bad old days" when ES3 and IE ruled the roost.

Full disclosure: I haven’t used it myself much since ~2012 or so, and modern JavaScript now contains many of the most important features that CoffeeScript offered at the time .... Although they did screw some things up (IMHO): null-vs-undefined in default arguments, super as a parent reference instead of a direct function call, optional parens for single-arguments arrow functions (Prettier agrees!), no shared semantics between arrow and normal functions, that class syntax only supports methods and not data as properties, and so on...

When all is done and dusted, I hope that CoffeeScript can be looked back on with affection as a little experiment that showed surprising vigor, one that — with no corporate backing and zero financial support — spread by word of mouth through the web community of the early 2010s, and helped fuel the fire to get JavaScript moving and evolving as a language again.

As a side note — and I write this without bitterness — I do find it a bit strange that extremely well-resourced companies like Dropbox, GitHub, CircleCI, Trello, Airbnb (and many, many more) would write so many hundreds and hundreds of thousands of lines of CoffeeScript without ever attempting to contribute changes or fix the issues that they wanted to fix. It’s open source! They probably would have been able to quickly and cheaply make most of the changes they wanted.

Anyhow, cheers for the blast from the past!

Marey’s Trains 6 years ago

Is it possible to add a function to output this as PDF or save the result as PNG?

Fortunately, in Observable, every cell that contains SVG or canvas graphics has image export built in. Just click the dotted menu to the left of the cell, and it will offer you downloads in either SVG or PNG flavors.

Twitter thread about the mislabeling/misattribution/removal, for context: https://twitter.com/maxwelltani/status/1214957104206876672

Mashable story tracking the takedown and statements by Teen Vogue: https://mashable.com/article/facebook-teen-vogue-sponsored-c...

Update: Sadly, it looks like the Internet Archive copy has now turned into a 404. Mods should probably replace this link with the Mashable writeup above instead.

Not too easily, and no.

With Observable notebooks we're trying to expand the boundaries of how live, networked and interactive a notebook can be. So, to that end, the notebook is the editor, visualizations update reactively with your changes to the code just as they would update to changes in the data, you can inspect and autocomplete actual values flowing through your program, and you can fork someone else's notebook or merge their changes with a single click.

There's built-in history too (live, every version reproducible), as seen in 15 seconds with an animated gif here: https://observablehq.com/@observablehq/history

In the future, we're thinking about working on APIs for better git and generic text editor integration; but for the reasons listed above, the primary focus for now is on making working directly in a notebook on the web the best experience possible.

Great question!

On Observable, each cell is a unit that can be evaluated independently, with two sides to it — you have the source code editor, and you have the rendered display (either a chunk of DOM or canvas that you’ve drawn, or an interactive inspector for JS values).

Now, the important thing is that the code half of the cell is often collapsed. You navigate around the notebook, toggling open and closed the code editors, and typing into them. If the code is on top, the entire cell jumps when it opens and closes, pushing the rendered display up and down. If the code is on the bottom, it emerges from the half of the cell that is always there, and the display is stable.

Ultimately, that’s why each cell has content before source code — the content is always there, and the code may or may not be visible, so working with the notebook as a whole feels much more stable and less jumpy with the rendered value as primary and the source code as secondary.

Your comment made me curious about our current SEO rankings, so I used a VPN and fresh incognito windows in a browser I never use (Safari) to Google for "observable" from Silicon Valley, New York City and Madrid.

ObservableHQ.com is in the top spot in Silicon Valley and NYC, and a few spots down the first page in Madrid, after Angular Observables and RXJS Observables. So it looks like we’re doing pretty alright so far.

In that case, you may be interested in checking out some of the fancy explorable explanations folks have been publishing: https://observablehq.com/collection/@observablehq/explorable...

Here’s a sequence of sound wave primers by Dylan Freedman: https://observablehq.com/@freedmand/sounds

Mike wrote an exploration of the Lotka-Volterra equations for simulating the dynamics of populations of predators and prey: https://observablehq.com/@mbostock/predator-and-prey

Or something physical, like Jacob Rus figuring out how a chunk of metal from a machinist’s workshop can scribe out a perfect sine curve: https://observablehq.com/@jrus/sinebar

Or something fun, with Krist Wongsuphasawat’s tapioca pearl to tea level Boba Calculator: https://observablehq.com/@kristw/boba-science

Or my personal favorite (although I can't view it in Chrome), Toph Tucker’s poignant reverie on correlation, eugenics, and the morality of applying statistics to human affairs: https://observablehq.com/@tophtucker/inferring-chart-type-fr...