@Buttons@programming.dev avatar

Buttons

@Buttons@programming.dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Buttons,
@Buttons@programming.dev avatar

As other's have said, please do. I'm not a mod or anything, but I think as long as this instance remains small, pretty much anything posted in good faith should be acceptable. We're at no risk of being swamped with game showcases. 😉

Buttons,
@Buttons@programming.dev avatar

Still easier than understanding JavaScript's equality operator

Nix - An universal package manager (nixos.org)

I think the main pain point of distro hopping is learning a new package manager, I discovered Nix a while ago, it works on every single OS, has the biggest package repo out there. I replaced Homebrew on my mac with it. If this piques your interest, give it a go. Later, you can integrate with Home-manager to manage all of your...

Buttons,
@Buttons@programming.dev avatar

A less theoretical advantage is that it can create the exact same environment on both Mac and Linux, and in neither case does it need to replace your primary package manager.

If the whole team is using nix, then the "setup" section of the readme just says "use nix-shell"[1] and that is more than enough for everyone.

[1]: I can't remember if nix-shell is the right command, or not, but in theory nix can create an exact environment on every machine with one command.

Buttons,
@Buttons@programming.dev avatar

I've actually seen this type of code produced by a human-being who was trying to write good code. It was one of the students in my introduction to programming class in university, we had to write a function that squared a number or something, and he had written hundreds of lines of if-statements. Sometimes you just use what you know to complete an assignment I guess 🤷

Buttons,
@Buttons@programming.dev avatar

Apparently not. It was very strange. Although it was the first few days of class and he might not have realized * is multiplication, because when does a non-programmer ever use * for multiplication?

Buttons,
@Buttons@programming.dev avatar

The auto-formatting story is half baked I think. As far as I know most language have a formatter that goes only one way, which is an improvement over having no formatter at all.

What we're missing is good tools to go from the standard format to a personalized format. For example, I was working on JavaScript recently and the team was using prettier with 2 space indentation. I found that somewhat hard to work with because of some minor vision issues, it was becoming a bit of an accessibility issue for me, but I was already viewed as a bit of a troublemaker at the company and pushing everyone to change their style wasn't going to help me any.

I tried to find a tool that would reformat the code for me without altering the repository but couldn't find an easy solution.

So we have formatters that go from "everyone's personal style" to a standard style. But our tools for going the other direction, from standard style to "my personal style" are lacking. (Hoping to be proved wrong on this point.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines