Lurker News

Comments (229) 38 threads

Earlier comments
mehrdadn1 reply#
'Go' question that came up when I tried to build this: How do you build a Go .EXE on Windows that doesn't have any file paths embedded in it?
mehrdadn1 reply#
Did you try this yourself? Because I already tried it and it didn't work. Remember I said I'm on Windows.
mappu3 replies#
Yes, we do this for our release builds, including Windows. It does only remove the leading prefix (GOPATH) from panics, not the full file path.

I don't think there's a way to remove the whole file paths other than replacing strings in the compiled binary. In our case GOPATH was the only sensitive part (since function names can't be removed either, for reflection to work).
We also couple it with a defer handler to obfuscate panic traces.

Continue this thread — 3 replies

kchoudhu5 replies#
How much time do people spend messing with their source control that extreme tools like this become necessary?

I commit like, once a day. What am I doing wrong?

jolmg1 reply#
To each his own, but I'd say committing once a day. That's unless I'm wrong in thinking that doing so means your commits are quite big and could be broken up into smaller, more manageable changes.

Personally, I like it when `git diff` displays only one or at most three screenfuls of changes that haven't been committed.

kchoudhu#
Maybe I'm one of those low productivity types that interview processes are trying to permanently weed out, but I rarely write more than 40-50 good lines of code per day. Commits any smaller than that would just look like code Hemingway.
yyx#
Not fixing several tickets a day.
nickbarnwell#
I commit dozens of times a day, make half a dozen branches, pick commits between them, and generally (ab)use git as a normal part of my workflow. I will generally push one or two of those commits in the end, typically a Frankenstein creation comprised of all that has come before.

There are so many ways to approach a problem in any given codebase, and I rarely know which will be the best without experimenting. Having tools that reduce the burden of experimentation and branching is incredibly powerful.

kissgyorgy#
You should commit waaaay, waaaay more often than once a day. Every small piece of logically fitting together change should go into one commit, so the git history tells a story, it's easy to revert and easy to understand how the code get to the current state and why. you also should write elaborate commit messages to all commit.
drb91#
I commit dozens of times a day with zero aliases, and it never really gets in my way. If you’re comfortable with git, leveraging it can almost certainly improve your productivity—if you can rebase, splitting a branch into two branches is a fairly trivial task. Even if all you do is commit often, you can do things like aggressively refactor without worrying that merging will be a costly endeavor—just rewind to the last manageable commit if you stick your neck out too far.

On the day to day work, git use is simple; it’s with large major version upgrades, refactors, merging many branches together, and spiking/research where the more advanced features really shine.

tootie#
IntelliJ now and forever. We still have some crap on SVN and the version control menus are nearly identical switching between that and git.
nvahalik1 reply#
This looks super neat. Will try it out. Although I’m a sourcetree user... lately `git add -i` has changed how I use got massively.
grimgrin2 replies#
got add -p is pretty nice too

then got commit -v to verify the hunks

nvahalik1 reply#
Dang. So git add -p basically just skips straight to the patch portion and then -v adds a diff to the bottom of the commit message file so you can review it. Nice!
greenhatman2 replies#
It doesn't seem to pick up new files.

Continue this thread — 2 replies

grimgrin#
it should be clear i was too out of it to not notice s/got/git

Load more comments