Code RoomFeature flag null handling
MediumPrep Room Coding #1681

Feature flag null handling

Code reviewCode quality & reviewMid–Senior~20 min

Review this Java helper that returns whether a feature flag is enabled for a user.

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.

0:00 of about 20 min
Mark a line and say what kind of problem it is.0 findings
1Map<String, Boolean> flags;
2 
3boolean isEnabled(String userId) {
4 Boolean v = flags.get(userId);
5 return v;
6}
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.