Re:Read this post ‘unless’ you’re not a Ruby developer
by TomSwirly on Tuesday December 13, 2022 @08:12AM
(#33968366)
is hardly unreadable spaghetti code.
[ Parent
| on HN ]
Re:Read this post ‘unless’ you’re not a Ruby developer
by gpvos on Tuesday December 13, 2022 @01:34PM
(#33973579)
Okay. Now compare:
die "You may only use port numbers 1024 and higher"
unless $port >= 1024 || is_root(current_uid());
die "Port numbers 1024 are forbidden"
if $port < 1024 && !is_root(current_uid());