Cleanup #2
No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#2
Loading…
Reference in New Issue
No description provided.
Delete Branch ":cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is purely a cleanup PR - no functionality was changed and no code was refactored. My plan is make subsequent, smaller PRs for other kinds of refactors.
While I still prefer snake case to camel (snake is just so much more readable), this all looks good. I have generally hesitated to use Go's web link style imports... the web, particularly small servers like tildegit, seems so impermanent... it feels unwise to tie module imports to it rather than using local file structure. That said, if that is the way things have gone then I guess that is the way that the code should be.
Thanks so much for getting this set up :)
r.e. variable names - it seems like each language community has come up with their own style they stick to. I'm not sure I personally prefer one way over the other but it is nice the language has picked one style and stuck with it I think. Same thing with gofmt - it just short circuits any disagreement about it!
r.e. the imports - the move to Go modules actually helps your concern here. There's actually no need for that url to exist for the code to compile. You can check out the repo anywhere on your system and compile and it works. As long as the module path in the go.mod file and the import statements match, you're good.
@jboverf
On balance, I agree that code being consistent mostly trumps individual preferences and I am for that with projects that other people will be seeing. :)
I think I must just be really confused about the module system. I am glad to hear that it is not tied to the web location, but I am confused about how it would know where on a hard drive the cloned version of the repo would be.
Thanks for being patient with my confusion! I really appreciate the help!