I'd wager, that well-structured code for humans is pretty close to well-structured code for AI.
In my new well-structured, clean-code, clean architecture code base AI is working much more reliably than in this other old badly structured legacy project that I'm working on.
Unless the AI also documents abbreviations like uab somewhere, it will get equally confused about the purpose of the variable, just like a human.
Humans also don't those nice little comments explaining what a function does, if the function isn't super long and well-named.
5 years down the line, when AIs are self-improving and there are large amounts of AI written code in public repositories, that might all be a different story. But right now it's pretty simple:
These LLMs are trained on human coding patterns and work best when employing human coding patterns.
At the current point in time, you still need to guide Claude Code or at the very least ask it the right questions so it can guide itself.
The better your code is structured, the better will Claude Code work. But it still won't structure code well by itself, because i can't see the big picture.
It's as easy to write an unmaintainable mess as it is to crank out prototypes or performe refactorings in a well-structured code-base.
Example:
Claude Code knows, that handling errors and logging is important. So it will handle errors and add logging everywhere, which is actually a bad thing to do and just bloats up your code and logs.
You need to tell it where it should handle errors and logging or at the very least make it suggest ways to how to add those ia a central way.
If I had the option, I'd switch to Fedora due to more recent packages and fast updates. As a Gnome user, I also like, that they're fast to update to new Gnome versions.
I need to stick to Ubuntu at my workplace and I've had my fair share of issues with developer tools being installed as snap packages instead of natively.
Now, those issues are fixed. But who knows which packages are going to be moved to snaps next? I get why they're doing it, but I don't have to like it.
I personally use Linux, because I don't want to familiarize myself with two different operating systems. I neither need nor want to learn Windows Shell or Power Shell.
Whenever something didn't work on Windows I became frustrated, because I'm just not interested in Windows. When a problem arises on Linux, it's just a learning opportunity for the OS, that I have to know anyway.
Sure, Docker and WSL were game changers wrt. development under Windows and you can have a perfectly fine development setup under Windows.
But still a whole bunch of things can fail and under Linux, I can usually fix it myself and even have fun doing so.
And then we haven't talked about personalization, privacy and open source software, yet.
If my company ever wants to track my activity via a script, I'll look for a different company. So, good riddance for your employer, you'll be better off without them.
There are also legitimate reasons for a centralized IT. And centralized IT is difficult depending on the size of your team. Supporting a variety of OS and distributions is difficult. I'm glad, that I even can use Ubuntu at work. Back then, when Zoom didn't work properly under Wayland, I've just switched back to Xorg too. Complaining about having to use a Xorg is the wrong reason for quitting. Yes, you can deal with using Xorg.
Nowadays, the majority of linux users are using graphical interfaces.
But your observation is still correct: When communicating about linux and trying to solve problems, people will generally tell you bash-commands to run.
And that's for two simple reason:
Telling you to run command --option --output-format path/to/file in your bash is a lot easier, a LOT easer than trying to:
find out which DE or WM you're running
realizing that you use a DE, they're just not very familiar with
find out which sub-menu hides the information or option you need
guide you through the process of finding that
that is, if your DE even has a corresponding GUI
The shell is the means of communication across all kinds of different and individualized linux systems.
Good point. There are no bells and whistles that obfuscate functionality. The whole concept of "you know how to fix your system, because you configured everything in your system" is very appealing.
I meanwhile moved on to NixOS (just for the sake of testing it), but I'm still using one package from the AUR on my SteamDeck, because I've got a 15 year old printer, that I can't be bothered to get running as a nix-package, but there's an AUR package for it.
I also rarely need a printer, otherwise I would just buy a new one.
While the AUR is nice, I think it's neither the unique selling point of Arch, nor should it be.
Minimalism
User-Centrism
Rolling Release Model
cutting edge repositories
That's why I still frequently think I should be going back to Arch.
NixOS is great. It's currently my private daily driver, but it's too niche. Every linux admin is familiar with Alpine, Debian, RedHat and/or Ubuntu. It's super easy to hire for that.
NixOS on the other hand? Even though I would like to use it, when I think about my company, I can't justify the cost of educating me (I'm still a script kiddie wrt. Nix) and my colleagues to the Nix language and afterwards even make it more difficult to hire for NixOS.
And when something fails, all of your linux knowledge is useless, because Nix packages work completely different. You're getting in "applying custom patches to packages"-territory rather quickly.
It also doesn't help, that the NixOS documentation isn't the best.
I've been on Wayland on my personal laptop since years now and I've recently switched on my work machine (ubuntu) and don't intend to go back. Both Intel-CPUs without a dedicated graphics card.
I never noticed and graphics or font issues, everything besides screen sharing just worked. But I'm also not gaming or using fractional scaling.
At work I required functioning screen sharing in Zoom and Slack, both of which didn't work out of the box under Wayland. Zoom generally was problematic for years, Slack was problematic if installed via Snap.
Zoom apparently fixed their Wayland issues and Chromium (Electron supposedly too) have some config flag to enable screen sharing in Snap Packages.
So, at work, now I'm using Slack as Chromium PWA and use Wayland+Pipewire almost everywhere (Steam Deck uses x11, but I'm not messing with that).
It really depends on what you want to configure and how well you know the software you'll be setting up. The plain arch install is pretty straight forward.
On my laptop, my first manual install took me about half a day for setting up disk encryption, desktop environment and figuring out how I need to configure all of the power saving stuff and the software, that I need. The plain arch install was probably half an hour.
On my media center it took me about half a day to give up and move back to OpenELEC, because I've been playing whack-a-mole with features working out of the box in OpenELEC, that I was still missing and didn't want to figure out how to setup.
My experience was the opposite of yours. With Ubuntu and Mint derivatives a major upgrade often broke something without me knowing how to fix it, prompting me to hop on a different distro.
I don't attribute this to the distros themselves, but more to me being inexperienced in the past and having changed those systems in ways that were doomed to break on future upgrades.
With Arch, I've never even once felt overwhelmed with problems, because they come one at a time and it was very likely, that I set up the failing system myself.
I probably spent way more time fixing Arch compared to other distros too, but that's mostly because I've spent way more time reinstalling other distros.
Currently, at work I'm on Ubuntu LTS (due to compliance) and on NixOS privately. Wndering if I should give VanillaOS a try, but whenever a problem arises in either system, I'm always itching to switch back to Arch. :D
Well, that's just the caveat of a rolling release distro. These "veteran Arch warlocks" are having a reliable system, because they never got a "nuke your install"-tier update and fixed minor stuff whenever it occured.
With any "stable" distro, you have to fix all of those things at the same time, when it's time to upgrade your system. The sum of all parts becomes "nuke your install"-tier pretty fast, especially if you made lot of adaptations without really knowing what they're doing.
With a rolling-release distro, you get minor stuff needing to be adapted every now and then. And because it's only minor stuff every now and then, you have the time to learn about it and fix it properly.
The magic of Arch is: You configured everything yourself.
If something breaks, it's very likely that you configured it and know the purpose and some potential fixes.
It's as hard as you make it as long as you do your due diligence and actually learn about whatever packages you're installing, instead of just copy-pasting random commands from stack overflow.
Honestly, there is no specific reason. Nonetheless, I switched from fish to zsh a few months ago, because of POSIX compliance.
Initially, I liked the idea of having a cleaner, streamlined syntax and thought I would simply learn everything on-the-fly. I mean, the differences aren't even that huge, aren't they?
Turns out, that a year later, I learned more about POSIX-compliant syntax than fish-syntax, because I need to use bash and sh nonetheless. Fish was still a hindrance to me, because I kept mixing features up or forgetting about some.
So, I've setup zsh with all of the nice fish features and only have to worry about one syntax.
But I also don't use my shell a lot. Your experience may be completely different and you might benefit a lot from fish.
Every distro has it's pros and cons. They're all just different slightly flavors of linux and you can make all look and feel the same.
Arch-based distros have two key distinctions:
They're rolling-release distros with cutting edge packages. This means, you'll never have to "upgrade or reinstall the next release". You just update your system and get the newest packages, whenever they're released and tested. On the flip side, any update might theoretically contain changes, that require manual intervention or might even break something. But this way you get all of these changes in small steps, instead of all once during the next upgrade.
The package manager "pacman" makes writing and integrating custom packages super easy. So easy, that there's a huge Arch User Repository, where almost everything can be packaged and shared with the community by almost anyone. On the flip-side, you have to be careful and double-check everything installed from the Arch User Repository.
Plain arch linux is great, if you know exactly what you want to build and just want to have a minimal system, that you can build up, configuring everything yourself. Arch linux is super stable, because there's no background configuration magic happening. Everything was configured and installed by you. So, you're more likely able to fix it.
It's a developer focused distro.
I think we can expect developers to read documentation.
I'd wager, that well-structured code for humans is pretty close to well-structured code for AI.
In my new well-structured, clean-code, clean architecture code base AI is working much more reliably than in this other old badly structured legacy project that I'm working on.
Unless the AI also documents abbreviations like
uabsomewhere, it will get equally confused about the purpose of the variable, just like a human.Humans also don't those nice little comments explaining what a function does, if the function isn't super long and well-named.
5 years down the line, when AIs are self-improving and there are large amounts of AI written code in public repositories, that might all be a different story. But right now it's pretty simple:
These LLMs are trained on human coding patterns and work best when employing human coding patterns.
Thank you for sharing. That sounds like a helpful approach
At the current point in time, you still need to guide Claude Code or at the very least ask it the right questions so it can guide itself.
The better your code is structured, the better will Claude Code work. But it still won't structure code well by itself, because i can't see the big picture.
It's as easy to write an unmaintainable mess as it is to crank out prototypes or performe refactorings in a well-structured code-base.
Example:
Claude Code knows, that handling errors and logging is important. So it will handle errors and add logging everywhere, which is actually a bad thing to do and just bloats up your code and logs.
You need to tell it where it should handle errors and logging or at the very least make it suggest ways to how to add those ia a central way.
If I had the option, I'd switch to Fedora due to more recent packages and fast updates. As a Gnome user, I also like, that they're fast to update to new Gnome versions.
I need to stick to Ubuntu at my workplace and I've had my fair share of issues with developer tools being installed as snap packages instead of natively.
Now, those issues are fixed. But who knows which packages are going to be moved to snaps next? I get why they're doing it, but I don't have to like it.
I personally use Linux, because I don't want to familiarize myself with two different operating systems. I neither need nor want to learn Windows Shell or Power Shell.
Whenever something didn't work on Windows I became frustrated, because I'm just not interested in Windows. When a problem arises on Linux, it's just a learning opportunity for the OS, that I have to know anyway.
Sure, Docker and WSL were game changers wrt. development under Windows and you can have a perfectly fine development setup under Windows.
But still a whole bunch of things can fail and under Linux, I can usually fix it myself and even have fun doing so.
And then we haven't talked about personalization, privacy and open source software, yet.
Bear with me: Both, you less than them.
I loved fish, but the different syntax kept bugging me, so I switched to zsh too, when I found out there's a fish-style auto-suggestions plugin.
But bash-customization has come a long way too. Currently thinking about trying out a customized bash again.
Fair point. Playing loosy-goosy with terminology is one of my biggest problems. :D
Oh, that "new" linux generation is about 20-25 years old now.
Nowadays, the majority of linux users are using graphical interfaces.
But your observation is still correct: When communicating about linux and trying to solve problems, people will generally tell you bash-commands to run.
And that's for two simple reason:
Telling you to run
command --option --output-format path/to/filein your bash is a lot easier, a LOT easer than trying to:The shell is the means of communication across all kinds of different and individualized linux systems.
You forgot the sarcasm flag.
Hmm, good points. You're now making me think about which kind of files I'd have to lock down in my home-folder.
Theoretically anyone can use the root-password to use the root-account.
Locking the root password is one layer of security, that allows you to control who is using the root-account.
Remove sudo-rights and from a user and lock the root password and they cannot access the root-account without using exploits.
Good point. There are no bells and whistles that obfuscate functionality. The whole concept of "you know how to fix your system, because you configured everything in your system" is very appealing.
I meanwhile moved on to NixOS (just for the sake of testing it), but I'm still using one package from the AUR on my SteamDeck, because I've got a 15 year old printer, that I can't be bothered to get running as a nix-package, but there's an AUR package for it.
I also rarely need a printer, otherwise I would just buy a new one.
While the AUR is nice, I think it's neither the unique selling point of Arch, nor should it be.
That's why I still frequently think I should be going back to Arch.
NixOS is great. It's currently my private daily driver, but it's too niche. Every linux admin is familiar with Alpine, Debian, RedHat and/or Ubuntu. It's super easy to hire for that.
NixOS on the other hand? Even though I would like to use it, when I think about my company, I can't justify the cost of educating me (I'm still a script kiddie wrt. Nix) and my colleagues to the Nix language and afterwards even make it more difficult to hire for NixOS.
And when something fails, all of your linux knowledge is useless, because Nix packages work completely different. You're getting in "applying custom patches to packages"-territory rather quickly.
It also doesn't help, that the NixOS documentation isn't the best.
I've been on Wayland on my personal laptop since years now and I've recently switched on my work machine (ubuntu) and don't intend to go back. Both Intel-CPUs without a dedicated graphics card.
I never noticed and graphics or font issues, everything besides screen sharing just worked. But I'm also not gaming or using fractional scaling.
At work I required functioning screen sharing in Zoom and Slack, both of which didn't work out of the box under Wayland. Zoom generally was problematic for years, Slack was problematic if installed via Snap.
Zoom apparently fixed their Wayland issues and Chromium (Electron supposedly too) have some config flag to enable screen sharing in Snap Packages.
So, at work, now I'm using Slack as Chromium PWA and use Wayland+Pipewire almost everywhere (Steam Deck uses x11, but I'm not messing with that).
It really depends on what you want to configure and how well you know the software you'll be setting up. The plain arch install is pretty straight forward.
On my laptop, my first manual install took me about half a day for setting up disk encryption, desktop environment and figuring out how I need to configure all of the power saving stuff and the software, that I need. The plain arch install was probably half an hour.
On my media center it took me about half a day to give up and move back to OpenELEC, because I've been playing whack-a-mole with features working out of the box in OpenELEC, that I was still missing and didn't want to figure out how to setup.
My experience was the opposite of yours. With Ubuntu and Mint derivatives a major upgrade often broke something without me knowing how to fix it, prompting me to hop on a different distro.
I don't attribute this to the distros themselves, but more to me being inexperienced in the past and having changed those systems in ways that were doomed to break on future upgrades.
With Arch, I've never even once felt overwhelmed with problems, because they come one at a time and it was very likely, that I set up the failing system myself.
I probably spent way more time fixing Arch compared to other distros too, but that's mostly because I've spent way more time reinstalling other distros.
Currently, at work I'm on Ubuntu LTS (due to compliance) and on NixOS privately. Wndering if I should give VanillaOS a try, but whenever a problem arises in either system, I'm always itching to switch back to Arch. :D
Well, that's just the caveat of a rolling release distro. These "veteran Arch warlocks" are having a reliable system, because they never got a "nuke your install"-tier update and fixed minor stuff whenever it occured.
With any "stable" distro, you have to fix all of those things at the same time, when it's time to upgrade your system. The sum of all parts becomes "nuke your install"-tier pretty fast, especially if you made lot of adaptations without really knowing what they're doing.
With a rolling-release distro, you get minor stuff needing to be adapted every now and then. And because it's only minor stuff every now and then, you have the time to learn about it and fix it properly.
The magic of Arch is: You configured everything yourself.
If something breaks, it's very likely that you configured it and know the purpose and some potential fixes.
It's as hard as you make it as long as you do your due diligence and actually learn about whatever packages you're installing, instead of just copy-pasting random commands from stack overflow.
Honestly, there is no specific reason. Nonetheless, I switched from fish to zsh a few months ago, because of POSIX compliance.
Initially, I liked the idea of having a cleaner, streamlined syntax and thought I would simply learn everything on-the-fly. I mean, the differences aren't even that huge, aren't they?
Turns out, that a year later, I learned more about POSIX-compliant syntax than fish-syntax, because I need to use bash and sh nonetheless. Fish was still a hindrance to me, because I kept mixing features up or forgetting about some.
So, I've setup zsh with all of the nice fish features and only have to worry about one syntax.
But I also don't use my shell a lot. Your experience may be completely different and you might benefit a lot from fish.
Every distro has it's pros and cons. They're all just different slightly flavors of linux and you can make all look and feel the same.
Arch-based distros have two key distinctions:
They're rolling-release distros with cutting edge packages. This means, you'll never have to "upgrade or reinstall the next release". You just update your system and get the newest packages, whenever they're released and tested. On the flip side, any update might theoretically contain changes, that require manual intervention or might even break something. But this way you get all of these changes in small steps, instead of all once during the next upgrade.
The package manager "pacman" makes writing and integrating custom packages super easy. So easy, that there's a huge Arch User Repository, where almost everything can be packaged and shared with the community by almost anyone. On the flip-side, you have to be careful and double-check everything installed from the Arch User Repository.
Plain arch linux is great, if you know exactly what you want to build and just want to have a minimal system, that you can build up, configuring everything yourself. Arch linux is super stable, because there's no background configuration magic happening. Everything was configured and installed by you. So, you're more likely able to fix it.