This is what exceptions as flow control looks like: http://bit.ly/2uoLmd5
-
-
Replying to @nateberkopec
Curious what you think of http://docs.diesel.rs/diesel/prelude/trait.LoadDsl.html#method.get_result … then
4 replies 0 retweets 0 likes -
Replying to @sgrif
I think my point is that writing an explicit rescue for something which has a non-raising equivalent is smelly.
1 reply 0 retweets 1 like -
Replying to @nateberkopec
What is the non-raising equivalent though? (keeping in mind that you usually want a 404 not a 500)
1 reply 0 retweets 0 likes -
-
Replying to @nateberkopec
Oh sorry I thought you meant the issue was Rails not their code
2 replies 0 retweets 0 likes -
Replying to @sgrif
we don't really do maybe-monads in Ruby but I think it's a sensical way to solve the problem too.
1 reply 0 retweets 0 likes
Replying to @nateberkopec
That was my point with Diesel though. It's a bad solution here, because you usually don't want to care about the not found
2:17 PM - 17 Jul 2017
from Ottawa - Gatineau
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.