Overcomplicated String Reversal
public static string ReverseStr(string str) { if (str == null) { return null; } return new string(new StringBuilder(str).ToString().Reverse().ToArray()); }
A screenshot shows a C# method that reverses a string using StringBuilder and LINQ, while also handling a null input. The joke is that a simple task is solved with unnecessarily elaborate code, making it relatable to programmers. EN: A screenshot shows a C# method that reverses a string using StringBuilder and LINQ, while also handling a null input. The joke is that a simple task is solved with unnecessarily elaborate code, making it relatable to programmers.
- @gentoomemes / 8372 2023-12-31
- Type
- image
- Size
- 577×189 · 11.7 KiB
- Mood
- sarcastic, relatable
- Language
- en
- Added