Luke John
1.1K posts

Luke John
@luke__john
Principal software engineer at Atlassian working on our Cloud Editor.
Perth, Western Australia Katılım Ağustos 2012
357 Takip Edilen320 Takipçiler
Luke John retweetledi

@eskimojo @threepointone @RhysSullivan This was true up until React Compiler. I'm not actually sure what I'd expect compiler to do in this scenario though.
English

@luke__john @threepointone @RhysSullivan you can technically do this
the linter will complain, but as long as the hook call order is always the same for the lifetime of the component, it'll work fine
English

@threepointone @RhysSullivan An use case I assume/hope is fairly common is for gate checks that will either always return true or false for a session
ie.
```
if (feature gate which can never change) {
use potentially expensive/risky hook
}
```
English

@RhysSullivan got an example? use() solved a bunch of issues I had with this
English
Luke John retweetledi

Stop donating to Wokepedia until they restore balance to their editing authority
Libs of TikTok@libsoftiktok
Wikipedia’s annual budget report from 2023—2024 reveals that they spent over $50 million of their total $177 million budget on Diversity, Equity, and Inclusion Stop donating to Wokepedia
English
Luke John retweetledi
Luke John retweetledi
Luke John retweetledi
Luke John retweetledi

unpopular science: dark mode actually lowers your productivity, reading speed, and proofreading abilities.
it make sense to only have light mode in productivity software where you're doing a lot of reading & writing.
🤷
Android Police@AndroidPolice
My eyes hurt just writing this in Google Docs #Echobox=1713564955" target="_blank" rel="nofollow noopener">androidpolice.com/5-google-apps-…
English
Luke John retweetledi

Anyone @github want to help us? Even if it is just deleting all the spam PRs from the closed listing would be helpful.
Feross@feross
🚨 The Express.js repo got swamped with spam PRs thanks to a YouTube tutorial gone wrong. Hundreds of low-effort contributions flooded in, creating chaos for maintainers. Some called it an "attack on open source", as pages of "UTTER GARBAGE" piled up in the Express.js project.
English
Luke John retweetledi
Luke John retweetledi
Luke John retweetledi

🎉 Promise.withResolvers() made it to stage 4! One of the features on the promises that was missing.
Use it now 👉 npmjs.com/package/promis…
Full spec 👉 github.com/tc39/proposal-…

English
Luke John retweetledi

The @deno_land kernel keeps advancing!
display.js will now be part of Deno in the next release
🔜
const { display, md } = Deno.jupyter;
display(md`**We did it!**`);
github.com/denoland/deno/…
English

@KyleRayKelley nice work on the imports feature you've added to the deno anywidgets.
I've been playing about with it and come up with what feels like a pragmatic way to get intellisense + typesafety on them.
Example code is at github.com/luke-john/exam…
GIF
English

Was fairly quick to get the promptfoo node api running inside the notebook, with a custom jsx renderer for the output.
promptfoo.dev/docs/usage/nod…

English

The new Jupyter Deno kernel is great fun to play about with. Was super quick to set up a demo jsx renderer with it github.com/luke-john/ljdj 💯.
blog.jupyter.org/bringing-moder…

English

@kolibril13 There is a Jupyter dev channel on the deno discord discord.com/servers/deno-6….
I haven't come across something consumer focused yet.
It's still in early stages with improvements underway such as the jsx support and updates to anywidget to improve support github.com/manzt/anywidge…
English

@luke__john thanks for sharing, I'll give it a try! Is there yet a discord server or another place where the community meets to chat about deno notebooks?
English

@kolibril13 I'm not familiar with that project. From a quick look though - it's an anywidget - so it's very fairly limited in what you can do with the js/jsx.
With the Deno kernel your full notebook is running deno flavoured JS/TS - you can read more at blog.jupyter.org/bringing-moder….
English

@luke__john that's great to see! Do you know the project ipyreact? github.com/widgetti/ipyre…
It comes with a %%react cell magic that allows to write react code as well.
How does that compare to the Jupyter Deno kernel?

English
Luke John retweetledi
Luke John retweetledi








