News for hackers. Stuff that matters.
Re:You probably don’t need AWS and are better off without it by lopatin on Wednesday April 20, 2022 @04:24PM (#31102502)
Reminds me of these YouTube videos filled with bad advice for newbies. For example, "Why I never code with ELSE statements, and YOU shouldn't either". It sounds profound to a newbie, but it's all just disingenuous dogmatic click bait.
Re:You probably don’t need AWS and are better off without it by ehutch79 on Wednesday April 20, 2022 @04:34PM (#31102624)
I know you're kidding, but there are legit videos saying you should never use If statements
Re:You probably don’t need AWS and are better off without it by lopatin on Wednesday April 20, 2022 @04:39PM (#31102684)
Re:You probably don’t need AWS and are better off without it by deanCommie on Saturday April 23, 2022 @12:49AM (#31131505)
Except...these are right. Minimizing nesting, and setting up validation failures as exit-early conditions from functions to have the main function body focused on the happy path are absolutely valid principles of clean code.

Obviously there are always exceptions, but as a principle you could do a lot worse.

Re:You probably don’t need AWS and are better off without it by LAC-Tech on Wednesday April 20, 2022 @05:23PM (#31103187)
FWIW I rarely use else statements and prefer early returns. Might be trauma from dealing with legacy code where you'd need an ultra wide monitor to get the end of the indentation.