News for hackers. Stuff that matters.
Re:Jane Street – Our software engineering interviews are cha... by wtetzner on Thursday November 12, 2026 @11:02AM (#50469581)
TBH I usually just search my shell history for the last time I added a remote and edit it.
Re:Jane Street – Our software engineering interviews are cha... by saghm on Thursday November 12, 2026 @12:56PM (#50471344)
It's also not particularly hard to write a shell function to avoid needing to care about the syntax, e.g.:

    add_github_remote() {
        git remote add $1 [email protected]:$2/$3.git
    }
Re:Jane Street – Our software engineering interviews are cha... by 8note on Thursday November 12, 2026 @06:36PM (#50475981)
thats just the same problem though, ig you arent using it regularly you are going to forget that part of your shell functions
Re:Jane Street – Our software engineering interviews are cha... by saghm on Thursday November 12, 2026 @09:23PM (#50477289)
I wholeheartedly agree that it's the same, but I fundamentally disagree about it being a "problem", or at least, one worth caring about. I don't honestly believe that typing out the extra 35 characters that are filled in by the helper function I gave here would solve anything that comes close to the convenience of not needing to memorize them.
Re:Jane Street – Our software engineering interviews are cha... by zahlman on Thursday November 12, 2026 @10:28PM (#50477827)
1. Develop the instinct of "I probably have a shell function for that, if it isn't already obvious; and if I don't, I need to fix that"

2. Give your shell functions a common prefix, and/or big-endian naming convention (e.g. things that help you with git start with `@git-`)

3. Tab completion is your friend.

Re:Jane Street – Our software engineering interviews are cha... by zahlman on Thursday November 12, 2026 @10:32PM (#50477872)
Better yet, assign the positional arguments to named variables for documentation purposes; you can see them when you `type` the function. (Comments get stripped, unless you make an actual script.)