code-reviews

jethroksy 2016-04-18T01:25:45.000004Z

Hello! I'm looking for some feedback wrt to how I should refactor my code.

jethroksy 2016-04-18T01:26:54.000006Z

I notice that my code is much like a decision tree: 1. Contains id? -> Some DB Operation -- Success? --> some response

jethroksy 2016-04-18T01:28:13.000007Z

I end up writing a lot of this db handling, and I'm sure there's a way i can reduce the amount of code here, or write in a higher level of abstraction