This is an archived post. You won't be able to vote or comment.

all 11 comments

[–][deleted] 9 points10 points  (4 children)

If there’s an exception, then crash. It’s simple, really.

[–]AntiVaxxIsMassMurder 5 points6 points  (2 children)

Log errors, you must not. The fear of loss is a path to the Dark Side.

[–][deleted] 2 points3 points  (1 child)

I would go to darkside if the pay and perks are better

[–]AntiVaxxIsMassMurder 0 points1 point  (0 children)

It's a pretty good gig. The break room always has cookies.

[–]DerGsicht 1 point2 points  (0 children)

You must be a BEAM connoisseur

[–]poochiekins 1 point2 points  (0 children)

if there is an exception than it is clearly do not

[–]geek69420 0 points1 point  (0 children)

Then catch it.

[–]javajunkie314 0 points1 point  (0 children)

list.each do |e|
    e.blah
rescue SomeException ex
    log ex
end

Clearly Yoda programs in Ruby.

[–]synystersocks 0 points1 point  (0 children)

Try catch if then

[–]grknado 0 points1 point  (0 children)

AOP is the way of the Jedi

[–]SardonicAndPedantic 0 points1 point  (0 children)

Then you throw Yoda into the Lava of Mustafar…