Readit News logoReadit News
Deradon commented on Near mid-air collision at LAX between American Airlines and ITA [video]   youtube.com/watch?v=-j76c... · Posted by u/goblin89
Deradon · 2 months ago
Question for any aviation expert: Would TCAS be triggered at such a low altitude on departure?

Loading parent story...

Loading comment...

Deradon commented on Ruby on Rails: The Documentary [video]   youtube.com/watch?v=HDKUE... · Posted by u/541
lagniappe · 2 years ago
sad to see _why the lucky stiff left out, but I suppose it is what he'd have wanted.
Deradon · 2 years ago
There was not really a place to put it into the rails doc. But I put a comic strip as a tribute to _why into a related blog post: https://cult.honeypot.io/reads/why-ruby-on-rails-is-not-dead...

Loading parent story...

Loading comment...

Deradon commented on Keeping a project bisectable   andrealmeid.com/post/2022... · Posted by u/pabs3
alkonaut · 3 years ago
Recently git bisect gained got a new capability that was mysteriously missing before: bisect —first-parent. With that, it became possible to bisect also in repos where all commits on feature branches may not be buildable or passing tests, but commits on the development/main/integration branch does.

A feature I’m still missing is to bisect using a new test. That is, I have discovered a bug in the program that there is no test for, so I author a failing test. Now I want to find out when this failure occurred but I can’t bisect because even the previous commit is green as the test didn’t exist. It’s possible to work around by placing the test outside the repo root and bisecting with a script that “authors” the test (e.g copies the file) at each step, but it’s cumbersome and feels like something that could be possible to add to the bisect command, e.g an option to merge a commit (the new test) before testing each step of the bisect.

Deradon · 3 years ago
For ruby projects where I could simply put the "new test" in a new file I do this:

1. Create new test (e.g. "spec/reproduce-bug_spec.rb")

2. Ignore it locally: `echo "spec/reproduce_bug_spec.rb" >> .git/info/exclude`

3. Run bisect (something like: `git bisect run rspec spec/reproduce-bug_spec.rb`)

If running the test gets more complex (e.g. installing dependencies as they might change travelling through history), I usually create a wrapper script (and ignore it) to bisect-run-it.

Deradon commented on Ask HN: What tone to use in code review suggestions?    · Posted by u/zorr
justinram11 · 4 years ago
[Suggestion] Use conventional comments[1] to flag how important the comment is.

Most of my comments end up being "suggestions", but then when I put a [blocking] on it, it clearly communicates that I think this should be fixed before merging in.

1: https://conventionalcomments.org/

Deradon · 3 years ago
Offtopic but related:

Conventional commits: https://www.conventionalcommits.org/en/v1.0.0/

Deradon commented on Git ignores .gitignore with .gitignore in .gitignore   rubenerd.com/git-ignores-... · Posted by u/Tomte
rpigab · 4 years ago
This is my favourite feature of gitignores. Everytime I need "drafts", sample code, etc, in a repo, I create a folder in that repo, but then I have to remember to not add it to commits, and I don't want to add it to the .gitignore that is versioned, so I do "mkdir drafts && echo '*' > ./drafts/.gitignore", and it ignores my drafts without having to add a new ignored dir in the versioned .gitignores.

And obviously, it also "ignores" the .gitignore itself because it matches "*", while still taking it into account, which is what I need.

Deradon · 4 years ago
Another comment already mentioned the `.git/info/exclude` directory. For completeness link to the online docs: https://git-scm.com/docs/gitignore

git will take 3 files into consideration for "ignoring" files:

> $XDG_CONFIG_HOME/git/ignore, $GIT_DIR/info/exclude, .gitignore

How I use them:

* ~/.gitignore: stuff I want to ignore everywhere (`/myNotes`, `.DS_STORE`, ...)

* <project>/.gitignore: stuff that should be ignore for this projects and shared with others

* <project>/.git/info/exclude; stuff for this project that only I want to ignore

** this is also super useful in combination with `git-bisect`

Deradon commented on Kubernetes: The Documentary [Part 1]   youtube.com/watch?v=BE77h... · Posted by u/Deradon
Deradon · 4 years ago
Disclaimer: I'm working at honeypot (but not involved in the documentary at all)

Loading parent story...

Loading comment...

u/Deradon

KarmaCake day63January 20, 2014
About
https://github.com/Deradon
View Original