Logo
Build time: When coffee becomes code.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Setstate Memes

Posts tagged with Setstate

Callback

React Javascript Programming Frontend Webdev
2 months ago 318.3K views 0 shares
Callback
When documentation writers decide to write a 200-word essay about the "second argument of the setState() function" instead of just calling it what it literally is: a callback. You know, that thing developers have been calling callbacks since the dawn of asynchronous programming? The React docs are out here writing thesis statements about "powerful mechanisms for handling state updates and executing code after the state has been updated and the component has re-rendered" when they could've just said "callback function runs after state updates." That's it. Three words. Done. The frustration is real because this verbose documentation style makes you feel like you're reading a legal contract when you just want to know what parameter goes where. Sometimes simplicity beats eloquence, especially when you're debugging at 2 AM.

Today's picks

Too Real

Too Real

Programming
7.6M views 4 days ago
Vilros Raspberry Pi 5 Starter Kit MAX – Official 8GB RAM Pi 5 Board, 128GB Preloaded Micro SD, Case, Power Supply & Cooling – Complete Plug-and-Play Kit for Beginners & Advanced Users

Vilros Raspberry Pi 5 Starter Kit MAX – Official 8GB RAM Pi 5 Board, 128GB Preloaded Micro SD, Case, Power Supply & Cooling – Complete Plug-and-Play Kit for Beginners & Advanced Users

Affiliate
$248.99
Sometimes you really have to make modules yourself

Sometimes you really have to make modules yourself

Programming
72.9K views 3 years ago