memesearch
Reinventing String Length

Reinventing String Length

Download Find similar pictures
Text on the meme
public int StringLength(string str) { int length = 0; for (int i = 0; i < str.Length; i++) { length++; } return length; }
What it means

A screenshot of C# code that manually counts the characters in a string by looping through it, despite already using `str.Length` in the loop condition. The joke is that it redundantly reimplements string length in an unnecessarily complicated way, often shared as a reaction to overengineering or inefficient code.

Objects
Tags
Sources
Type
image
Size
339×158 · 8.7 KiB
Mood
sarcastic
Language
en
Added

Similar memes