redbad
Joined 15 years ago
Karma
421
Submissions
126
Member since
Jul 12
Joined 15 years ago
2. There is a difference between being employed by a company and being its CEO.
3. These differences are significant.
Unfortunately, that's not a valid methodology to achieve availability or (especially) consistency.
> Humans use <todo>.
Indeed. > Are you suggesting that it isn't in Emacs?
Yes, of course. Emacs is obviously and inarguably not immediately intuitive.This ludditic reverence for user-hostile text editors is one of the more perplexing and frustrating things about our industry.
import (
"./utils"
This is what's known as a relative import, and it's very bad. You want "github.com/johnnye/short/utils", or (better yet) put your base62 stuff in package main, since it's just one function.Without seeing specific code I can't say for sure, but it's very unlikely that any database interaction code is best modeled with panic/recover for error handling. I'm very curious to see the source, at this point.
> are you saying that you don't need to handle exceptions
> (whether using defer or recover)
Go doesn't have exceptions. You don't need to handle (i.e. explicitly deal with) panics via recover. If you do, especially if you're not making the panics yourself in e.g. a parsing package, that's a bad code smell and you're probably doing something wrong.