Code Room
Code reviewMedium
Question
Review this Java method that masks card-like numbers in each log line. It runs on millions of lines per export.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
String maskLine(String line) { Pattern p = Pattern.compile("\\b\\d{13,16}\\b"); return p.matcher(line).replaceAll("[REDACTED]");}Run or narrate your approach, then ask the coach.