Logo
sudo make me a sandwich.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • 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

Greedy parsing Memes

Posts tagged with Greedy parsing

Consequences Of Greedy Parsing

Programming Algorithms Debugging Backend
6 months ago 490.2K views 1 shares
Consequences Of Greedy Parsing
Your parser was supposed to read "#ALBUM" and "COVER" as two separate tokens, but nope—greedy parsing grabbed the whole thing in one go and now you're trending for something... completely different. The dog's side-eye says it all: "Yeah, I parsed that wrong too. That's why we're both here, buddy." Fun fact: Greedy parsing in regex and compilers matches the longest possible string, which is great until it grabs more than you bargained for. Like when .* decides to eat your entire HTML document instead of stopping at the first tag. Classic.

Today's picks

Funny Regex Programming - Using Regex is Two Problems Comfort Colors Adult Heavyweight T-Shirt

Funny Regex Programming - Using Regex is Two Problems Comfort Colors Adult Heavyweight T-Shirt

Affiliate
$21.99
NordVPN

NordVPN

Sponsored
VPN
Complementing the meme made by u/limeelsa

Complementing the meme made by u/limeelsa

Programming
89.9K views 3 years ago