RustySharp

joined 1 year ago
[–] RustySharp@programming.dev 1 points 2 months ago

Desktop FF here, been getting kicked off roughly once a day on default.

Not happening on Mlmym (old.), which I found to be better anyway. Wish I'd know about it before. Please keep it maintained!

[–] RustySharp@programming.dev 5 points 2 months ago

Heh. A couple decades ago in the early days of WoW, I was dual booting. It legit performed better under Wine than it did on Windows. Busy cities in WoW were well known to be fps killers. On Windows I was getting below 10fps, and almost double that on Wine (with the same quality settings).

Glad to see them continuing the tradition. I never did figure out (nor cared) how Wine managed to do it back then. Mostly cause I was too busy being addicted to that stupid time sink of a game...

[–] RustySharp@programming.dev 3 points 11 months ago

based on curiosity, which was short lived, because Linux (Mandrake) at the time was too challenging.

Story of my life back in high school. Except it was Slackware, from the back of a magazine.

Wasn't until I took Operating System Design in university that the whole linux/unix philosophy clicked.

[–] RustySharp@programming.dev 2 points 1 year ago

Or, someone donated 2.5-12, Apple matched it and filed the whole thing under their corporate account.

[–] RustySharp@programming.dev 4 points 1 year ago (1 children)

grep is your very best friend.

This. And also, in many cases, an 'adjacent' grep may help. Say you want to move the "OK" button on one screen. Searching for the string "OK" would be overwhelming as that would be all over the shop.

But you notice there's a "Setup..." button next to it. Searching for that could potentially cut down your search results by orders of magnitude. The more obscure the text, the better.

[–] RustySharp@programming.dev 4 points 1 year ago* (last edited 1 year ago) (1 children)

Tbh it starts to look better to just define a constant and comment it.

Well.. if (waterPressure > MAX_PRESSURE_BEFORE_YOU_FLOOD_THE_WHOLE_TOWN_OF_IPSWICH_AND_CALNE) is pretty self-documenting. No comments needed.

[–] RustySharp@programming.dev 7 points 1 year ago (4 children)

...what the code does, not why it does it

This is my issue with "it's self documenting code!". I'm a maintenance coder. I deal with people's code long after they're dead (or ragequit). Some are for control systems.

if (waterPressure_psi > 500) raise PipeMayBurstException. Okay, we're dealing with water pressure, in psi unit, and if it's too high, it may break the piping. Self documenting!!

Except that our pipes are rated for 1000psi. SO WHY THE 500?! Do we have one or two sites - out of hundreds - with lower rated pipes? I can double performance if we raise the threshold to 700, well within the safety tolerance, but AM I GONNA KILL SOMEONE when they upgrade to our latest controller??

[–] RustySharp@programming.dev 17 points 1 year ago (1 children)

The meme refers to the old adage "C lets you shoot yourself on the foot. C++ lets you shoot both feet and gives you a shotgun to do it" - referring to the how C allows you to perform memory-unsafe operations (causing corruption, or worse, security vulnerabilities), and C++'s complexity, potentially obscuring such unsafetyness.

Rust's memory safety tries to save you from doing (un)intentional bad stuff, by giving you compile-time errors. It's also the bane of everyone so used to C/++'s ability to just pass around and modify whatever memory they want.

[–] RustySharp@programming.dev 9 points 1 year ago (1 children)

"Mark works for MS" is a massive understatement. He's CTO of Azure now.

And speaking of Sysinternals, arguably the most exciting update was when ProcessExplorer got a dark mode late last year :)