Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Oof I don't like checking for negatives when there's an Else block anyways. Hanging this up on my wall would trigger me every time I'd see it
-
C0D4681455ySomeone needs a peer review before merging that to production.
God help the poor user that finds the null stomach branch. -
Fakerlol865yI'm pretty sure that these cringy programmer-speak-merchandise-thingies are either made by non-programmers or just god-aweful ones, the likes you'd immediately fire after their first code-review.
-
Parzi88335yif self.stomach == missing_entirely:
orderPizza()
else:
dont()
Traceback (most recent call last):
<main>, at line 1:
if self.stomach == missing_entirely:
<main>, at line 2:
orderPizza()
orderPizza(), at line 237:
raise RuntimeError("stomach must be present before orderPizza() is called")
RuntimeError: stomach must be present before orderPizza() is called -
All of you complaining about the null stomach: Just be glad it isn't functional programming. As then eating would entail creating a clone of you with pizza already in it.
-
@k0pernikus
@highlight
val me: Person = _
me.stomach
.filter(_==pizza)
.getOrElse(0)
.zipWith
(delivery)
(_.2.order(_.1 * phoneNumber))
Just foodie things :
repeat: {{ Keep code and have food }}
devrant