News for hackers. Stuff that matters.
Re:Well-Commented If Statements Make Software Robust by tylerhou on Saturday January 08, 2022 @09:34PM (#29859346)
Re:Well-Commented If Statements Make Software Robust by Noumenon72 on Saturday January 08, 2022 @11:34PM (#29860143)
Thank you. I didn't really understand the argument of the article until I saw a production usage. I thought he was arguing that arrow code is okay if you add comments, but he's really saying that sometimes a single code path can't handle all the complexity of the world and special cases are OK.
Re:Well-Commented If Statements Make Software Robust by tuvan on Sunday January 09, 2022 @09:20AM (#29863420)
As someone from outside the field, this is crazy to me. Why does something as general as WebKit have host specific code?
Re:Well-Commented If Statements Make Software Robust by ck45 on Sunday January 09, 2022 @04:47AM (#29861876)
Is there a missing dot in line 189? Otherwise domains like zhulu.com would match, wouldn’t it?
Re:Well-Commented If Statements Make Software Robust by tylerhou on Sunday January 09, 2022 @06:38PM (#29868644)
Seems like it; I don't work on WebKit, you could submit a patch.
Re:Well-Commented If Statements Make Software Robust by codelikeawolf on Sunday January 09, 2022 @12:16AM (#29860410)
I think this was what I referring to. Thank you!