@qurios.bsky.social

Whenever someone shares a performance comparison of programming languages, many folks are surprised to see #Java rank up very high. I think by now it's kinda criminal how underrated Java and the JVM are in circles not familiar with it. This misconception is the biggest challenge for this platform.

Why Git Rebase is Powerful (But Dangerous if Used Wrong) Git rebase can clean up your commit history & make merges smoother—but misuse it, and you’ll break everything! Here’s why rebase is powerful, when to use it, and how to avoid disasters 👇

A small one, FastAPI 0.115.6 🐛 This fixes a bug that prevented having the full traceback when a sync dependency with yield raised an exception in Python 3.11. 🤓 Thanks to @marcelotryle.bsky.social for the help with this one! 🙌 github.com/fastapi/fast...

GitHub - fastapi/fastapi: FastAPI framework, high performance, easy to learn, fast to code, ready for production

FastAPI framework, high performance, easy to learn, fast to code, ready for production - fastapi/fastapi

github.com

did you know that you can conditionally exit an effect? this is useful if you want a subscription to only stay active while some condition is true, and to stay removed while that condition is false. a bit mindbending, but so it is with react!

a code block:

  React.useEffect(() => {
    if (!isActive) {
      return
    }
    textInputWebEmitter.addListener('emoji-inserted', onEmojiInserted)
    return () => {
      textInputWebEmitter.removeListener('emoji-inserted', onEmojiInserted)
    }
  }, [onEmojiInserted, isActive])

the if (!isActive) condition is highlighted as newly added code