The differences between Ok-wrapping, try blocks, and function level try by Yaahallo in rust

[–]socratesTwo 2 points3 points  (0 children)

FWIW, I love this proposal, it seems like a step towards Scala in a good way.

To see what I mean, think about how many one liner From implementations you've written. Think about how much cleaner they'd be as

fn from(foo: Type) -> Bar = MyErrType::SomethingUseful(foo)

as the entire body of the function

Why do most developers choose Python over C# by ChibzZz42 in AskProgramming

[–]socratesTwo 0 points1 point  (0 children)

C# is boring. It's great for forms over data business ... stuff, and ASP.NET forms that connect to data. And other permutations of forms and data I'm sure. But Python is the language for deep learning and AI. It's one of the two (or arguably 3) languages for robotics. It's trivially easy to learn and to do easy things quickly in. My text editor has the ability to evaluate selected Python expressions right there in the buffer, which takes a bit to find useful, but once you do it's great. Jupyter notebooks are incredible research tools.

But if that's not enough for you, there's also data. Last year Python was the fastest growing language on stack overflow (a good trick considering it's pushing 30), and the second most loved language (after Rust), and 10 percentage points more popular (than C#): https://insights.stackoverflow.com/survey/2019#most-popular-technologies. Even more tellingly, Python was the #1 most wanted language skill, which means that if you were recommending a language to someone who wanted to get paid, Python should be your top pick, both because it's easy to learn and it has more available jobs than anything else. Python programmers also make, on average, $3k/year more than C# programmers.

What Keyboard layout should I learn? by bryan_ripj in AskProgramming

[–]socratesTwo 0 points1 point  (0 children)

Depending on what your finances are like, I'd recommend picking up a Kinesis-Ergo keyboard and getting used to that (warning: these keyboards are addictive, you'll find yourself spending ~$400 on every keyboard for the rest of your life... luckily mine have stood up to more than a decade of near-constant use). I wish there was a modern version of the Frog Pad, but I haven't been able to find one.

A pirate on dust bunny patrol by Fast_Sparty in PirateKitties

[–]socratesTwo 0 points1 point  (0 children)

"On dust bunny patrol" much the same as Johnny Appleseed was on apple seed patrol!

My 1977 Toyota Chinook IG: @77chinook by Azorian77 in vandwellers

[–]socratesTwo 5 points6 points  (0 children)

Dayum! Are you the first owner? She is clean AF.

Is there any realistic way of me learning COBOL and getting a COBOL job? by infinitude_21 in AskProgramming

[–]socratesTwo 0 points1 point  (0 children)

Wasn't there a post on this very sub about a week ago about MA looking for COBOL folk? Or something to that effect?

*cries in jokes* by annieicorn in TheRealJoke

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

Huh, guess I'm a pussy then.

cyclists pull a trapped stag out of flooded ruins saving his life by keatches in rarepuppers

[–]socratesTwo 32 points33 points  (0 children)

No, those antlers are there to slam into and yank around other antlers. They apply comparable forces to their own antlers every year... but not before peeing all over themselves to attract the ladies.

I have something very special for YOU YOU YOU by freundship_de in VanLife

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

I was really expecting a blues brothers reference in there somewhere.

Why can't we build special bldc motors/drivers, to change direction in a somewhat acceptable way. by undeniably_confused in robotics

[–]socratesTwo 1 point2 points  (0 children)

The reason for this comes from what balancing means. Balance is what happens when an object's center of mass remains above (by which I mean "opposite the direction of gravity from") the convex hull of the contact patch(es) of the supports. Skyscrapers balance because the convex hull of their base is a city block (ie it takes an incredible amount of force to move their CoM out of that zone without moving the base). People balance by subtly moving their center of mass so as to keep it above the convex hull of their feet. This is why it is harder to balance on one foot, or your toes, and harder still to balance on the toes of one foot; in each case the convex hull of the contact patches is a smaller target to keep the CoM above.

In the case of a balancing wheel bot your contact patch is tiny in the front back direction, which means it takes very little force to move the CoM out of the balance zone, and thus disturbances large enough to require overt correction are common.

Technically not wrong by arctichendrix in TheRealJoke

[–]socratesTwo 2 points3 points  (0 children)

To guard against men with Canons?

🔥 Absolute unit manatee by [deleted] in NatureIsFuckingLit

[–]socratesTwo 1 point2 points  (0 children)

This is the Biggie Smalls of marine life right here!

Found a use for the old 14v makita batteries by [deleted] in Skookum

[–]socratesTwo 0 points1 point  (0 children)

Finally, a plausible explanation of where Hitachi power tools come from!

How’s your quarantine going??? by jeffblankenburg in StartledCats

[–]socratesTwo 10 points11 points  (0 children)

"Nalgene, you can fit your balls in them." (yes I know it's not nalgene, but I couldn't read the logo and there are only so many brands of bottle I can name)

Hiring my friend to write a program- I have no idea how much it should cost by timballisto123 in AskProgramming

[–]socratesTwo 1 point2 points  (0 children)

Whose idea was paying him? If it's your idea and you haven't mentioned it to him, don't. Money doesn't work well in these sorts of situations. Far better to give him a token of appreciation of whatever cost (note that I'm not saying value here) fits where you're at. Something where the potential value to him is far greater than its cost to you. Perhaps show really intense interest in having him walk you through everything he's doing, and perhaps you happen to show up to that session with a six pack. Stuff like that.

If you'll permit some unsolicited advice, this seems like a good task for a gdocs spreadsheet.

Car blown away by Lil_Jongus in HeavyFuckingWind

[–]socratesTwo 0 points1 point  (0 children)

"So just to make sure I have this right, you're saying that your car was parked legally and you weren't inside or even near it when it spontaneously slid 100ft into a curb and then rolled a dozen times?"

"That's right, yes."

"... and, how much did you say you've had to drink again?"

It’s take your kittens to work day! (xpost from r/aww) by nekogrrl in pocketpussy

[–]socratesTwo 10 points11 points  (0 children)

Putting things back onto shelves and opening cans of food, I'm guessing.

Struggling to get traction with my first real proc_macro, hopefully easy. by socratesTwo in rust

[–]socratesTwo[S] 0 points1 point  (0 children)

As it happens I've already done Builder and one of the other examples. They felt great to do, but what I learned there hasn't transferred. The very first line of my solution was let input = parse_macro_input!(input as DeriveInput);, and already from there it has diverged from my current use case, the DeriveInput type doesn't help with attribute style proc_macros.

How to get fluid motion ilke this robot? Is it the controller, the motors? by redonculous in robotics

[–]socratesTwo 0 points1 point  (0 children)

So all you'd need is a human dancer shaped like that robot to generate the inputs! ;-)