6 ms·
Kudos on making Bash readable. (https://github.com/AnandChowdhary/continuous-claude/blob/main/continuous_claude.sh https://github.com/AnandChowdhary/continuous
by janaagaard 10mo 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 10mo agoim not saying OP did this, but I've actually had AI spit out some pretty stellar bash scripts, surprisingly
- anandchowdhary 10mo agoNo, you're right. It was a pretty collaborative effort with me and Claude!
- svieira 10mo 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 10mo agoFor letting me know! Would you like to create a PR? Otherwise I'll add you as a Co-Authored-By!
- svieira 10mo agoCo-authored is fine, thanks for asking!
- insin 10mo agoGesundheit
- cortesoft 10mo agoThe emojis give it away
- anandchowdhary 10mo 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 10mo agoLLMs had to learn where to use emoji from somewhere, now we know who to blame ;)
- jdc0589 10mo 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 10mo 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.