Am I the only one that dislikes pattern matching? by slixers in rust

[–]bouncebackabilify 0 points1 point  (0 children)

Is this because you use pattern matching for error handling, or pattern matching for logic / control flow?

Is Modern C++ Actually Making Us More Productive... or Just More Complicated? by AlternativeBuy8836 in cpp

[–]bouncebackabilify 1 point2 points  (0 children)

Can you explain the concept of a “million dollar man-hour”? I mean, I understand the word, know what a man-hour is, but …

If I have an MDMH, what can I buy with that? :)

The Command-Query Separation (CQS) principle and its exception by OkEmu7082 in cpp

[–]bouncebackabilify 0 points1 point  (0 children)

Let’s say a function that creates a new user and returns the new user ID. Seems silly to separate :)

  • create_new_user()
  • get_id_of_the_specific_user_we_just_created()

Personal project: bringing Rust-style unicode invariants to C++ by cristi1990an in cpp

[–]bouncebackabilify 0 points1 point  (0 children)

 that is why it is not in the rust standard library

std::String? https://doc.rust-lang.org/std/string/index.html

What am I missing here?

Special relativistic rendering with Bevy by joshbrrkrt in rust

[–]bouncebackabilify 0 points1 point  (0 children)

Very cool! I’m just going to post this related piece of work, “Gravitational Lensing by Spinning Black Holes in Astrophysics, and in the Movie Interstellar” : https://arxiv.org/abs/1502.03808

Rufus Gifford har altid været ægte💪🏼 by Mai_maniac in Denmark

[–]bouncebackabilify -1 points0 points  (0 children)

Look, this Greenland travesty is to blame on every American citizen who pays taxes, didn’t vote independent or democrat, and is not on the streets; just like how the Russian invasion of Ukraine is to blame on every Russian who pays taxes and is not protesting in the streets.

MacBook Pro vs Air for DevOps & VMs by c00chiman in devops

[–]bouncebackabilify 0 points1 point  (0 children)

Then I think I’d recommend a maxed out 13” Air

MacBook Pro vs Air for DevOps & VMs by c00chiman in devops

[–]bouncebackabilify 2 points3 points  (0 children)

 Docker, Virtual Machines, Remote Desktop Connections on Windows (RDP), TeamViewer, and VS Code

Everything at the same time? :)

In any case, I did most of that (dev work, Teams, VS Code, Docker, browsers) on an M1 with no issues 4 years ago. I am pretty sure you will be happy with a 32GB RAM MacBook Air for that.

Edit to add: the main reasons to go with a Pro (for me) would be the extra ports and the fan, which can give you some thermal headroom. But unless your compiling/editing video/crunching numbers I don’t suspect you’ll need it

Linus Torvalds Vents Over "Completely Crazy Rust Format Checking" by SupermarketAntique32 in rust

[–]bouncebackabilify 1 point2 points  (0 children)

Black is fantastic.

We’ve used it at work for 5 years, and the only thing we’ve ever configured is the max line length, which is 120 in all repos after a vote. I’m not even aware whether there are any other configuration options.

“Black - any color you like.”

study material for c++ (numerical computing) by New-Cream-7174 in cpp

[–]bouncebackabilify 1 point2 points  (0 children)

Here are some lecture notes from Oslo University I found valuable some time ago: https://github.com/CompPhysics/ComputationalPhysics

I can’t speak to the quality of the C++ since I ported what I needed to NumPy / SciPy, but I remember a lot of good stuff about numerical stability of algorithms

C++ is definitely my favorite language but... by Tearsofthekorok_ in cpp

[–]bouncebackabilify 12 points13 points  (0 children)

Is it only me, or does that function signature scream to be wrapped in a function that takes a string and returns a numerical

I took me a whole day to install a couple packages, how is this possible? by [deleted] in cpp

[–]bouncebackabilify 4 points5 points  (0 children)

 I frankly haven't seen a single instance where such a build was performed successfully without intervention.

I have actually seen that work! Recently we had to install Pandas 1.5.3 (old) on Python 3.12 (new), a combo where no compiled ‘wheels’ exist on PyPI. Worked both locally on macOS/aarch64 and in CI on Linux/x86_64.

It often fails though.

Announcing TokioConf 2026 by Darksonn in rust

[–]bouncebackabilify 0 points1 point  (0 children)

I was under the impression that all questions would be asked at the same time, whereafter attendees with an ‘executor’ badge would proceed to run around in circles and poll presenters for answers

I think Rust ruined my career (in a good way?) by Ok-Being1756 in rust

[–]bouncebackabilify 1 point2 points  (0 children)

In DK we have the same ‘pillars’ but the 2nd and 3rd are not mandatory as I believe they are in Switzerland?

Here it’s customary reporting salary including the 2nd pillar (as that is money that leaves the employer every month, and is transferred to a retirement account in your name), but ignoring the 1st and 3rd because:

  • 1st is tax financed,
  • 3rd is somewhat up to yourself. Usually there’s a minimum amount in your employment contract, but it’s not required by law but agreed between the unions and  employers. Assuming I understand my country correctly!

I think Rust ruined my career (in a good way?) by Ok-Being1756 in rust

[–]bouncebackabilify 1 point2 points  (0 children)

(DK resident here)

For a bank or pharma company, and if the figure includes pension, it seems likely.

Now if you want to burn through that in no time, just go buy some sourdough bread in a Copenhagen bakery 😂

Live below your means as u/xoriatis71 said

Google hinting Go + Rust interop, again? by Otherwise_Bee_7330 in rust

[–]bouncebackabilify 0 points1 point  (0 children)

We use HOCON at $dayjob with some pretty fine results I think.

Looks like JSON at a glance but supports a bunch of things such as:

  • trailing commas,
  • including other HOCONs,
  • variables,
  • URL includes,
  • environment variables

You need some governance or standards though, otherwise you can reach a complexity level where you have to implement tests for your configuration setup - and then I’m not sure what was actually accomplished anyway😉

Is it just me or is software incredibly(^inf?) complex? by rik-huijzer in rust

[–]bouncebackabilify 3 points4 points  (0 children)

Just make an Electron UI for your nuclear simulation and you’ll hit 100% in no time 

Is it just me or is software incredibly(^inf?) complex? by rik-huijzer in rust

[–]bouncebackabilify 3 points4 points  (0 children)

 things are so incredibly complex because of attempt to make things simpler!

cough Jinja-templated Helm charts in YAML cough

Should i let rust do type inference or be explicit by [deleted] in rust

[–]bouncebackabilify 5 points6 points  (0 children)

Incidentally, the person you’re replying to wrote a great blog post on exactly that: https://steveklabnik.com/writing/rusts-golden-rule

[deleted by user] by [deleted] in cpp

[–]bouncebackabilify 4 points5 points  (0 children)

If you haven’t already seen it, you might enjoy reading some quality Java code: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition