4 ms·
Kudos on making Bash readable. (https://github.com/AnandChowdhary/continuous-claude/blob/main/continuous_claude.sh https://github.com/AnandChowdhary/continuous
by janaagaard 1y ago
Kudos on making Bash readable.
(https://github.com/AnandChowdhary/continuous-claude/blob/main/continuous_claude.sh https://github.com/AnandChowdhary/continuous-claude/blob/mai...)
- jdc0589 1y agoim not saying OP did this, but I've actually had AI spit out some pretty stellar bash scripts, surprisingly
- anandchowdhary 1y agoNo, you're right. It was a pretty collaborative effort with me and Claude!
- svieira 1y agoFYI, you're missing two patterns that allow the `--key=value` admirers and the `-alltheshortopsinasinglestring` spacebar savers among us to be happy (for the otherwise excellent options parsing code). shopt -s extglob case "$1" # Flag support - allow -xyz z-takes-params -@(a|b|c)*) _flag=${1:1:1}; _rest=${1:2}; shift; set -- "-$_flag" "-$_rest" "$@";; # Param=Value support -?(-)*=*) _key=${1%%=*}; _value=${1#*=}; shift; set -- "${_key}" "$_value" "$@";; esac
- anandchowdhary 1y agoFor letting me know! Would you like to create a PR? Otherwise I'll add you as a Co-Authored-By!
- svieira 1y agoCo-authored is fine, thanks for asking!
- insin 1y agoGesundheit
- cortesoft 1y agoThe emojis give it away
- anandchowdhary 1y agoNah - as you'll see from my work from a pre-coding agents age, I like emoji :) Here are receipts some from 2020: - https://github.com/AnandChowdhary/bsc-thesis https://github.com/AnandChowdhary/bsc-thesis - https://github.com/AnandChowdhary/slack-netlify-trigger https://github.com/AnandChowdhary/slack-netlify-trigger - https://github.com/AnandChowdhary/analytics-icons https://github.com/AnandChowdhary/analytics-icons
- johntash 1y agoLLMs had to learn where to use emoji from somewhere, now we know who to blame ;)
- jdc0589 1y agoI got a couple bug reports years ago on https://github.com/jdavisclark/jsformat https://github.com/jdavisclark/jsformat for not dealing unicode emojis correctly when used in variable names in javascript. people are weird.
- rkozik1989 1y agoI don't think its that surprising. Bash is old as dirt and scripts by definition are meant to be simple. Where AI struggles is when you add complexity like object-oriented design. That's when the effect of it trying to solve every problem in a way unique to it just takes shit off the rails. LLMs known design patterns exist but they don't know how to use them because that's not how deep learning approaches problem solving.