1 comment

sorted by: hot top controversial new old
[–] 3 points 7 months ago

Why are there posts for how to open a tab in vim

  • source
  • 9 comments in c/technology@lemmy.world view that post
    [–] 31 points 6 months ago (6 children)

    People like this author stress me out. But that’s a me thing. Nothing against them.

  • source
  • hideshow 6 child comments
  • [–] 19 points 6 months ago*

    I get what you're saying. To me, this reads like someone who takes pride in forming assumptions (and biases) about a team before speaking to any of its members. A fun game for them, perhaps, but less fun for the folks they are trying to pigeonhole.

    I guess there's a fine line between collecting information to have a productive, data-driven conversation, and doing it to avoid having a conversation entirely.

    Also seems like they're more interested in connecting with the boss than the developers themselves, which is probably something you need to do as a contractor, but yeah, it does alienate other developers.

  • source
  • parent
  • [–] 18 points 6 months ago

    Not sure why, seems just like useful advice. It sounds like the author does contracting of some sort, so having tools to quickly orient around a new codebase makes a lot of sense.

  • source
  • parent
  • [–] 2 points 6 months ago

    for a hot second I thought this is programmerhumor

  • source
  • [+] -7 points 6 months ago

    I just use "Claude 'explain this code like I'm an idiot use git to do it. Make no mistakes'"

  • source
  • 6 comments in c/programming@programming.dev view that post
    [–] 26 points 7 months ago (1 child)

    Gonna have to try that out. I think it would have told interesting stories on some past repos.

    I wish ''co-authored by AI' was easy to flag in vcs.

  • source
  • hideshow 1 child comment
  • [–] 10 points 7 months ago

    This would have no effect in my team where everyone does whatever they want in git lol

  • source
  • [–] 8 points 7 months ago
    [–] 3 points 7 months ago* (last edited 7 months ago)

    They're bash/shell- and bin-dependent commands rather than Git commands. I use Nushell.
    Transformed to Nushell commands:

    • The 20 most-changed files in the last year:
      git log --format=format: --name-only --since="1 year ago" | lines | str trim | where (is-not-empty) | uniq --count | sort-by count --reverse | take 20
    • Who Built This:
      git shortlog -sn --no-merges
      git shortlog -sn --no-merges --since="6 months ago"
    • Where Do Bugs Cluster:
      git log -i -E --grep="fix|bug|broken" --name-only --format='' | lines | str trim | where (is-not-empty) | uniq --count | sort-by count --reverse | take 20
    • Is This Project Accelerating or Dying:
      git log --format='%ad' --date=format:'%Y-%m' | lines | str trim | where (is-not-empty) | uniq --count
    • How Often Is the Team Firefighting:
      git log --oneline --since="1 year ago" | find --ignore-case --regex 'revert|hotfix|emergency|rollback'

    /edit: Looks like the lines have whitespace or sth. Replaced lines --skip-empty with lines | str trim | where (is-not-empty).

    command aliases

    def "gits most-changed-files" [] { git log --format=format: --name-only --since="1 year ago" | lines | str trim | where (is-not-empty) | uniq --count | sort-by count --reverse | take 20 }
    def "gits who" [] { git shortlog -sn --no-merges }
    def "gits who6m" [] { git shortlog -sn --no-merges --since="6 months ago" }
    def "gits fixes" [] { git log -i -E --grep="fix|bug|broken" --name-only --format='' | lines | str trim | where (is-not-empty) | uniq --count | sort-by count --reverse | take 20 }
    def "gits aliveness" [] { git log --format='%ad' --date=format:'%Y-%m' | lines | str trim | where (is-not-empty) | uniq --count }
    def "gits firefighting" [] { git log --oneline --since="1 year ago" | find --ignore-case --regex 'revert|hotfix|emergency|rollback' }
    

  • source
  • [–] 1 point 7 months ago

    Ahh the famous git commands such as sort, uniq, head, and grep.

  • source
  • 2 comments in c/hackernews@lemmy.bestiver.se view that post
    [+] 6 points 7 months ago* (last edited 7 months ago) (1 child)
  • 1 comment in c/git@programming.dev view that post
    [–] 4 points 7 months ago

    The codebase audit link at the bottom is also a really good read!

  • source