Me, when my new job forces macos for development

https://lemmy.today/post/35172829

Me, when my new job forces macos for development - Lemmy Today

- ip šŸ’„ uhhhggghhh - awk šŸ’„ uhhhggghhh - sed šŸ’„ uhhhggghhh - grep šŸ’„ uhhhggghhh - journalctl šŸ’„ uhhhggghhh - brew install docker? Nope! šŸ’„ uhhhggghhh Having to maintain TWO build chains and deal with all the extra tooling and complexity šŸ’„šŸ’„šŸ’„šŸ’„šŸ’„šŸ’„ uhhhggghhh

I wish my job would force MacOS instead of Windows. 😭
I guess it can always get worse. 😭
I just run Fedora in a VM and do 99% of my work there.
Tbh I’d rather use Windows than MacOS, I can’t use Mac without getting angry lol

brew install iproute2mac

Also docker is not on homebrew, but there is an installer for it (or you can use Orbstack, which also provides docker). Not everything is on brew, but a very quick google search will help you find all of these.

However, journalctl might be not as helpful on mac - you can install it via brew, but it's not really mac-native.

As an OG bearded UNIX person, my advice is to learn the platform and stop fighting it - do things on the platform with the native tooling where possible as possible. From the text of your post, it seems to ke that you just want to use Linux. I understand how you feel, yet this feeling is signal but not data.

Good luck and safe travels, friend.

Also docker is not on homebrew

Except that it is

formulae.brew.sh/formula/docker

Casks and formulas handle basically anything: non-redistributable binaries, installers, etc

my advice is to learn the platform and stop fighting it

Absolutely it… there’s a load of Mac utilities and norms I miss when I use Linux, and visa versa: it’s just different platforms… neither is better; they’re just different

docker

Homebrew’s package index

Homebrew Formulae
Thanks for the correction, friend. I've personally been using OrbStack.
Maybe you can install wsl :)

i love how much it's changed in just ten years because i remember in the 2010s and late 2000s, every company would make me use windows despite loving the dev environment of mac (especially snow leopard).

now it's almost the opposite with wsl and all

(pls don't come at me - i actually use linux on both my laptop and desktop now i'm just saying anecdotally)

my workaround for awk, sed, and grep has been to create symlinks in my $Path that point to gawk, gsed, and ggrep, which you can install through brew. Nix has also been useful to keep my sanity intact, tho it’s a learning curve too, and when Macos updates happen you will need to fix/reinstall it. Can I ask what terminal you are using?

create symlinks in my $Path that point to gawk, gsed, and ggrep

The problem with this is that scripts assume the BSD versions of those tools. The scripts break if I do that. (I tried doing that.)

All of our scripts are littered with:

if os == linux awk <something> else if os == mac awk <something else>
Why not set an $awk var once for the right platform and then use that instead of if-on-every-call? This seems incredibly error prone and verbose for no reason…
I just started a new job that’s MacOS instead of Windows. I couldn’t be happier.
I used to run linux in a vm on the work mac, which was fine. Then they managed to block it too. I tried a gentoo prefix, but did not work well enough to be usable on arm. It sucks.

The funny thing is that my manager just told me the development workflow is:

  • create a Linux VPS on cloud
  • they have tooling so that local code gets synced to remote Linux
  • SSH into remote Linux
  • code, dev, test, etc

😐 … 🫲 … 🫱 … šŸ™Œ

Still better than being forced to develop on windows.

Eh. Windows has its share of annoyances, but once I have set it up to my liking my desktop workflow is very similar to my KDE setup, and WSL + Windows Terminal gives me a functional Linux shell environment.

And at least on Windows I don’t have to deal with cmd/control/alt switcharoo messing up my muscle memory.

<rant>I just spent an absurd amount of time setting up my local windows environment to use node 10 and gulp with node-sass and node-gyp (complete BS). I also need to do the equivalent for our Ubuntu pipeline.

And guess what, I just need to do the same for the new team member that just joined and messed his installation with recent versions of everything.

Oh, still find that easy? Lets just throw in crowdstrike and netscope firewalls and proxies for added security and block 50% of node environment and break all TLS/SSL connexion because things are not difficult enough.

Want to use git? Sure, it’s jsut 3x to 4x times slower than on Linux.

Did not pay extra carefull attention or do not know the difference between CR, LF and CRLF? let me just make your git life miserable by changing the line endings on all your files. Good luck fixing it.</rant>

You’re supposed to install fish and forget about at least three of these commands
huh, I use fish but also use awk, sed, grep. What should I use with fish? The string commands?
Yeah, I do everything with string at this point, because it can do pretty much anything I usually need and has a quite uniform syntax, along with good regex support (and dialect imo)
Lima

Linux Machines Learn More What is Lima? Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2). Install Lima Get Lima Here Try Lima Get started with Lima Contributions welcome Join the Lima community Adopters Lima is a CNCF incubating project

Lima
how donyou guys manage to cope with the keyboard layout? the ctrl-super-alt is completely different, even if i just remap them, there will be cases they just dont work like on linux (kitty ctrl-keys, firefox ctrl-tab, etc…) even worse that i use hungarian keylayout and now i use 2 different programs (karabiner, ukulele) to have somewhat similar keys like on linux, but still not perfect …

the ctrl-super-alt is completely different

It’s not ā€œcompletely differentā€ … and that’s the problem. Completely different I can handle. I can manage knowing vim keybindings, readline keybindings and standard windows keybindings at the same time. What I can’t handle is: having to use command + C on one Mac and control + C on Windows to copy, but then in some cases you do use ā€œcontrolā€ on both OS-es, and sometimes control and alt are switched … It’s because they are similar but different that it’s such a mess trying to get proficient in both at the same time.

GitHub - nix-darwin/nix-darwin: Manage your macOS using Nix

Manage your macOS using Nix. Contribute to nix-darwin/nix-darwin development by creating an account on GitHub.

GitHub
I’d just stick to Podman
Use UTM and run linux