memesearch
Codewars Solution Code Review

Codewars Solution Code Review

Download Find similar pictures
Text on the meme
When you finished a task on Codewars: public class Printer { public static String printerError(String controlString) { int badCharCounter = 0; StringBuilder builder = new StringBuilder(); for (int i = 0; i < controlString.length(); i++) { if ((int) controlString.charAt(i) >= 110) { badCharCounter++; } } builder.append(badCharCounter).append("/").append(controlString.length()); return new String(builder); } } That's pretty nice, let's see how others did it: public class Printer { public static String printerError(String s) { return s.replaceAll("[a-m]", "").length() + "/" + s.length(); } }
What it means

A programming meme shows an elaborate Java solution to a Codewars task, followed by a much shorter one-line approach and a man staring blankly at the screen. The joke is about discovering that other programmers solved the same problem far more simply, prompting a stunned reaction.

Objects
Tags
Source
Type
image
Size
629×800 · 78.9 KiB
Mood
shocked, self-deprecating
Language
en
Added

Similar memes

Getting TypeError After TypeScript Getting TypeError After TypeScript Firmware Hacking vs Fault Injection VIDEO 0:23 Firmware Hacking vs Fault Injection I Use Arch BTW, Literally VIDEO 0:42 I Use Arch BTW, Literally Developer Tries to Install Neovim VIDEO 0:47 Developer Tries to Install Neovim How to Make a Girl Like You VIDEO 0:32 How to Make a Girl Like You Hey Dad, That’ll Give You Commands VIDEO 0:34 Hey Dad, That’ll Give You Commands Windows Defender Flags SevenZip Windows Defender Flags SevenZip Programmer compiles urmom joke VIDEO 0:23 Programmer compiles urmom joke Clicking Through the Hash Code VIDEO 0:18 Clicking Through the Hash Code Coworker Adds 100% Coverage Coworker Adds 100% Coverage Interviewer Sees the Sorting Solution Interviewer Sees the Sorting Solution Oh No, The Code Broke VIDEO 0:04 Oh No, The Code Broke Когда двухфакторная аутентификация требует двухфакторную аутентификацию Когда двухфакторная аутентификация требует двухфакторную аутентификацию A URL That Secure Do the It VIDEO 1:49 A URL That Secure Do the It Докер про бордель и шлюх VIDEO 1:27 Докер про бордель и шлюх When Physics Gets Too Advanced VIDEO 1:15 When Physics Gets Too Advanced Automate It in Ten Days Automate It in Ten Days Разработчики в 2018 и 2025 VIDEO 0:16 Разработчики в 2018 и 2025 UI Is a Bunch of Declarative Syntax VIDEO 0:21 UI Is a Bunch of Declarative Syntax Never Underestimate Your Opponent VIDEO 0:14 Never Underestimate Your Opponent Perfect Rust Programming Advice VIDEO 0:30 Perfect Rust Programming Advice Streamer Leaves Skyrim in Tears VIDEO 0:25 Streamer Leaves Skyrim in Tears Default Coding Position Facepalm Default Coding Position Facepalm Когда проще написать всё самому Когда проще написать всё самому Windows против Linux VIDEO 1:02 Windows против Linux Smug Gamer Exposed Smug Gamer Exposed Just One More Monitor VIDEO 0:34 Just One More Monitor Looking Back at Old Code VIDEO 0:06 Looking Back at Old Code Do Not Use This Brace Style Do Not Use This Brace Style Following the Senior Dev's Solution Following the Senior Dev's Solution Linux Users and Their Distros VIDEO 0:29 Linux Users and Their Distros Pro Gamer Shoulder Peeks Horror Games VIDEO 1:08 Pro Gamer Shoulder Peeks Horror Games Займусь-ка я Java! Займусь-ка я Java! Programmer Cancels the Meeting Programmer Cancels the Meeting Помоги Доре найти бизнес-логику Помоги Доре найти бизнес-логику League Player Types Himself Into Trouble VIDEO 0:58 League Player Types Himself Into Trouble