4 ms·
My stack today is kinda nice but perhaps a bit odd: - Go - backend + CLIs - TypeScript - fronted, occasionally zx for more complex scripts - Nushell as my sc
by suralind 5mo ago
My stack today is kinda nice but perhaps a bit odd:
- Go - backend + CLIs
- TypeScript - fronted, occasionally zx for more complex scripts
- Nushell as my scripting language (I’ve been relentlessly using it everywhere I can instead of bash/zsh and man it is such an improvement)
I heard so much good stuff about both Zig and Rust and would love to eventually get to know one of them.
- hootz 5mo agoNushell, from their website, looks a lot like PowerShell's idea of a shell, but less verbose.
- suralind 5mo agoYup. Which is kinda funny, because back when I was a young dev using Windows I never liked nor understood PS.
- stingraycharles 5mo ago> when I was a young dev … never understood PowerShell This makes me feel old.
- IdiotSavage 5mo agoPowerShell is not really that much more verbose. This is the equivalent of the nushell command by crabsand. dir | ? LastWriteTime -lt (Get-Date).AddDays(-21) | del
- metaltyphoon 5mo agoToo much casing changes, IMO
- IdiotSavage 5mo agoSorry. Fixed it for you. dir | ? lastwritetime -lt (get-date).adddays(-21) | del PowerShell is not case sensitive (but nushell and bash are).
- crabsand 5mo agonushell + 1. After ~20 years of bash+zsh, I'm translating all my scripts to nu. Yesterday I noticed I still don't know how to write ls | where modified < ((date now) - 3wk) | each { |fn| rm $fn.name } in zsh after all years.
- psychoslave 5mo agoI use fish as daily shell, and for this kind of script I would rather jump to ruby. But it looks rather readable.
- i_think_so 5mo agoWhoa. You people freak me out with your fancy new toys.
- metaltyphoon 5mo agofind . -type f -mtime +21 -delete Or if you have fd fd -t f --changed-before 3w -X rm
- deleted 5mo ago[deleted]