RustyNova

@RustyNova@lemmy.world

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

RustyNova,

Well it ses that bing is down too, and most independent search engines are a warper arround bing so…

RustyNova,

Yes and no. While you are legally in the clear, in practice no one read those because of the huge amount of legalese.

True consent is only obtainable if the person consenting understands what it means. Or else it’s just legal consent.

Python is great, but stuff like this just drives me up the wall (lemmy.world)

Explanation: Python is a programming language. Numpy is a library for python that makes it possible to run large computations much faster than in native python. In order to make that possible, it needs to keep its own set of data types that are different from python’s native datatypes, which means you now have two different...

RustyNova,

Good meme, bad reasoning. Things like that are why JavaScript is hated. While it looks the same, It should never, and in ANY case be IMPLICITLY turned into another type.

RustyNova,

It’s simple. Like git, you search the command on the internet

RustyNova,

That’s not even funny. Just life advice

RustyNova,

Dang. I didn’t knew that 🧡 was so popular. I thought it would be ♥️ but alright

RustyNova, (edited )

While I totally agree with that philosophy, it heavily depends on the language.

For Rust, my philosophy is more like this:

  • Impl + fn body don’t count, as well as async blocks if they span the whole function
  • do not nest more than one if statement. You probably better using guard clauses or matches
  • do not put loops into an if statement.
  • do not nest loops unless clearly shown to be (X, Y) indexing
  • method chaining is free
  • do not nest closures, unless the nested closure doesn’t have a {} block
  • do not use mod unless it’s test for the current module. No I don’t want to Star Wars scroll your 1000 line file. Split it.
RustyNova,

Those async blocks exist when doing async in traits.

And I never said I respected the 4 level of indentations. That’s exactly the point of those rules. Keep it lowly indented but still readable

RustyNova,

It’s a lot less readable imo. As well than a cargo fmt later and it’s gone (unless there’s a nightly setting for it)

RustyNova,

Use a match? Unless it’s for guard clauses, a match is fine enough

RustyNova,

Oh, then you use and_then() or something similar.

There’s also the possibility to use the guard clauses patern and do let <…> = <…> else {}.

And finally, you can always split into another function.

It’s not straight rules. It depends on what makes it more readable for your case.

RustyNova,

I’d even add that now 99% of the distro have a gui over the package manager. Have an android or iPhone? You already have experience in installing stuff in an easier way than windows

RustyNova,

Uh. Didn’t knew that.

RustyNova,

HOW DARE YOU BAD MOUTH RUST LIKE THAT! Rust is natural, and isn’t anything bad. Let your body rust, and accept it’s warm embrace.

!/s!<

RustyNova,

You can’t get dumber than that

(I want to see them get dumber)

RustyNova,

Fair enough lol

RustyNova,

I don’t know what’s the brand neW meta pick, but at least BTRFS over Ext4. BTRFS is just more stable and less corruptable than Ext4. Heck, fedora changed to it as default

RustyNova,

I hate snaps, but NextCloud snap is way easier to than the other methods, so it gets a pass… Only one

RustyNova,

You still need to install NextCloud next. Then if you are on a home lab you’ll probably need a reverse proxy too

On Ubuntu it’s just install > go to config > whitelist all urls

RustyNova,

Snapshots are definitely a hit or miss with me. I nearly never use them, but when I need to recover a file it’s awesome. The only system related problem I had with Nvidia drivers but it was actually better to reinstall so it does all the install configuration itself

Although the most problems I had with it is backup of data. I tend to hoard too much

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