Programming

I’ll still buy something like a Python cookbook every now and then. It’s nice to just flip through for examples of what you need and not have to open 40 tabs googling and wading through pop-ups and AI-generated clickbait.

2 Likes

In what way is that better than telling ChatGPT “gimme some python code that does x”?

2 Likes

Well I was thinking about before ChatGPT.

I guess the other nice thing about a cookbook is you can flip through it and get ideas that you wouldn’t have thought of.

I finally graduated a few weeks ago with my Bachelor’s in Software Development from WGU. I went the Java path in lieu of C# when i started b/c I flipped a coin basically. I don’t know when I will actually use it or get any sort of development job. My current gig (and I have been a longtime employee) is Tier 3 tech support (WFH) for a tax software company. It pays better than (and they are mostly non existent) any jr software development job I have seen. Any development job with my current company would require me to move as they are all hybrid at best. I will be keeping my eyes peeled for any open positions that seem like a fit but I am not exactly running out the door from my current role.

There’s a lot of $ in Perl books

3 Likes

That’s a shame, I used to stop in Cincinnati when I was working the 2000 Census in Louisville. There was a bookshop there and it was about halfway between Columbus and Louisville and I’d buy a Perl book there most every week when I was driving. Ended up with about 3’ of the damn things. Don’t think I read more than one.

There was a lot of $ in PHP books too.

No $ in Java, everything’s SOLID

5 Likes

It took me a while to remember why this arrived at my house!

I will crack it open the next time I’m forced to use VI!

3 Likes

One time I tried to work through SICP. There’s an interpreter you can download for the dialect of Lisp used in the book. I think it makes you edit the code in VI. Dealing with Lisp and VI at the same time got to be too much.

1 Like

This is the middle setting for mirroring Macs on the Apple Vision Pro, it is bigger than my 49" ultra wide monitor by a little bit, probably equivalent to 2 27" monitors side by side. That’s the top command running which apparently has infinite columns of information it is ready to share with you if you only had a better monitor. The super ultra wide monitor is like 4 27" monitors. Currently, this feature is in beta so I can’t use it with my work Mac.

1 Like

Vim is life.

Truncation fail on Instagram.

2 Likes

found my first million line bash script in the wild. It is a major science org service that used to be a S3 bucket they provided a bash convenience script to grab data files from. Theyve since gone to a backend “API” to serve the files instead of s3 and now to download their files they provide they gave, and I shit you not, a 1 million line downloadable bash script that curls each hard coded file path individually and saves it. At least 300,000 curls in one file. This shatters my previous record of wildest/longest public facing bash scripts and comes close to beating the record for the most ridiculous corporate bash script Ive ever seen too. It crashed my terminal opening vim and I’d never seen that before unless I opened weird binary files.

2 Likes

Since you’re the bash god, can you (or anyone) tell me how to get terminal to remember the history state of each tab on reboot?

All I want is for each tab to remember it’s individual history commands (not all mixed up together) when I close the program to reboot.

I run a lot of commands like this:

npm run e2e -- --pwd AAA --apwd ZZZ --env prod --feature auctions

and this:

npm test -- -t 'Tests marking multiple items as paid'

and this:

npm run cdk deploy -- --context stage=dev AuctionStack-dev

which are specific to each tab, and I don’t want to have to remember each time.

As a consequence, I do anything to avoid rebooting.

Weirdly, if I let the Mac reboot itself as part of installing updates, terminal boots up in the exact same state I left it in. But if I try to reboot myself, I can get the same tabs to reopen, but I get all the history states mixed up together.

I have spent hours on this going down .history and .bash-history and settings in the Terminal app and a bunch of other rabbit holes. Nothing has worked.

not a god but sorry i am one of those weirdos that gets yelled at on HN that does not use my history like at all, so I’m not sure without asking copilot

might be a quirk with the terminal. I use 3 mac terminals with zsh entry command as “bash” because fuck zsh.

So you just free type everything? Do you run long, complicated commands? Do you use terminal or something else?

I don’t have copilot. But ChatGPT is just a regurgitation of the stack overflow rabbit holes I’ve been down. Apparently I’m the only weirdo who uses terminal with multiple tabs and wants each to remember its history.

I use GitHub - cantino/mcfly: Fly through your shell history. Great Scott! maybe it helps?

And no, if you find something that literally has a different history per terminal I’d definitely use it, sounds great!

I don’t have a problem with the history itself, it’s getting Terminal to remember the unique history for each tab (which it does when it’s open, or when the Mac reboots itself). I think it’s a Terminal-specific problem.