[-] riskable@programming.dev 2 points 1 hour ago

without type safety your code is no longer predictable or maintainable

This sounds like someone who's never worked on a large Python project with multiple developers. I've been doing this for almost two decades and we never encounter bugs because of mismatched types.

For reference, the most common bugs we encounter are related to exception handling. Either the code captured the exception and didn't do the right thing (whatever that is) in specific situations or it didn't capture the exception in the right place so it bubbles up waaaaay too high up the chain and we end up with super annoying troubleshooting where it's difficult to reproduce or difficult to track down.

Also, testing is completely orthogonal to types.

[-] riskable@programming.dev 1 points 1 hour ago

It'd be ineffective and in fact, decrease the likelihood of obtaining that default assumption of innocence that cuteness provides. It'd be like tying a pink ribbon to the tail of a tiger. The ribbon itself would be cute but the tiger would still be viewed as a dangerous predator.

Might help with getting out of manual labor though 🤔 🤣

[-] riskable@programming.dev 2 points 1 hour ago* (last edited 1 hour ago)

Yeah that's annoying but it's a short-term problem. Python just recently cleaned up some long-standing issues that broke backwards compatibility in packaging (for certain things). Most public modules that broke made trivial changes to fix the problems (once they learned about them) and life went on.

However, for some fucking reason a whole bunch of dependencies related to AI are dragging their feet and taking forever to fix their shit. Insisting that everyone "just use Python 3.10" and it drives me nuts too.

This problem started to become a real thing almost two years ago (so they had plenty of warning and time to fix things) and yet here we are with still a handful of core dependencies that won't install for things like Stable Diffusion, Flux, and various LLM stuff because they're dragging their feet.

I blame corporate culture: Enterprises hate upgrading their shit and they're as slow as glaciers sometimes. There's probably tooling at Nvidia, for example, that needs a ton of work for Torch to work with new versions of Python and since all their documentation already was written for running on Python 3.10 (and Ubuntu 22.04 LTS) they've created a lot of work for themselves.

Any day now they'll finally finish fixing all these little dependencies and then we'll have another two years of ease before the problem rises again with Python 3.14 and it's massive GIL-free improvements that require big changes in code to actually take advantage of them.

[-] riskable@programming.dev 7 points 2 hours ago

Why? The most annoying thing that I remember about it was popular modules that hadn't been ported yet. In essence, a temporary problem; growing pains.

The Unicode/string/bytes changes were welcome (to me). But that might just be because I had actually encountered situations where I had to deal with seemingly endless complexity and ambiguity related to Unicode stuff and encodings. Python 3 made everything much more logical 🤷

[-] riskable@programming.dev 11 points 2 hours ago* (last edited 2 hours ago)

Haha: "A space breaks everything." Fuck YES! Are you kidding me‽ It's one of the best features!

Why? Because it's so easy to see. In other languages you've got semicolons which are surprisingly difficult to notice when they're missing. Depending on the situation (or if you're just new to programming) you could spend a great deal of time troubleshooting your code only to find out that you're missing a semicolon. It's frustrating and it makes you feel stupid which is never a good thing for people who are new programming.

Types are in a different category altogether with seemingly infinite reasons why you'd want a feature-rich, low-level type system and also why you'd want to avoid that.

IMHO, the point of Python is to be a simple language that's quick to write yet also very powerful and speedy when you need it to be (by taking advantage of modules written in C or better, Rust). If it had a complex type system I think it would significantly lower the value of the language. Just like how when I see an entire code repo using Pydantic and type hints everywhere it makes the code unnecessarily complex (just use type hints where it matters 🙄).

I'm not saying using type hints on everything is a terrible thing... I just think it makes the code harder to read which, IMHO defeats the point of using Python and adds a TON of complexity to the language.

The promise of type hints is that they'll enable the interpreter to significantly speed up certain things and reduce memory utilization by orders of magnitude at some point in the future. When that happens I'll definitely be reevaluating the situation but right now there doesn't seem to be much point.

For reference, I've been coding in Python for about 18 years now and I've only ever encountered a bug (in production) that would've been prevented by type hints once. It was a long time ago, before I knew better and didn't write unit tests.

These days when I'm working on code that requires type hints (by policy; not actual necessity) it feels like doing situps. Like, do I really need to add a string type hint to a function called, parse_log()? LOL!

[-] riskable@programming.dev 16 points 1 day ago

Your wish has been granted! You will now keenly remember old photographs 👍

[-] riskable@programming.dev 9 points 1 day ago

To get what I want by just being cute. Like little kids or cute girls. Or to be automatically excluded from manual labor/heavy lifting for the same reason.

If you're a healthy boy, the moment you become a teenager is the moment you're just expected to be performing manual labor or other hot, sweaty activities. At least in the US 🤷

191
474

Electoral College elects The President. No other type of election works like that.

221
Incident Postmortem (programming.dev)
58
submitted 3 months ago by riskable@programming.dev to c/asklemmy@lemmy.ml
-5
submitted 3 months ago by riskable@programming.dev to c/asklemmy@lemmy.ml

I've heard this phrase used often by those on the right but every time I hear it I can't help but laugh because of what I picture in my head. But perhaps my image is wrong! I want to read everyone else's depictions.

So as to not influence the responses I will not be sharing what I imagine a "woke mob" looks like.

[-] riskable@programming.dev 111 points 3 months ago

In Texas, a pregnant black woman or immigrant only counts as 1 and 1/5th person though.

[-] riskable@programming.dev 109 points 3 months ago

Next set of headlines: Hacked Trump documents reveal what everyone already knew and his supporters don't care anyway.

[-] riskable@programming.dev 324 points 4 months ago

STOP USING TWITTER. It's a stinking, steaming storm drain with a rich guy's RV speeding away from it.

[-] riskable@programming.dev 110 points 4 months ago* (last edited 4 months ago)

Why would he be embarrassed? He obviously killed it with that cosplay!

In fact, his costume and makeup were so good that even his own daughter (with "good eyes") couldn't tell it was him.

456
Thanks Obama! (programming.dev)
submitted 4 months ago* (last edited 4 months ago) by riskable@programming.dev to c/politicalmemes@lemmy.world

Edit, since folks don't seem to get the joke: Obama's campaign slogan was "Hope"

296

“...this is not a gun problem. This is a mental health problem, this is a social problem, this is a cultural problem, this is a spiritual problem." -Donald J Trump in April 2023

808
657
559

A simple reminder of the incompetence, idiocy, and insanity that was the Trump presidency. Here's the original story, in case you forgot:

https://www.politico.com/story/2019/09/05/hurricane-dorian-sharpie-trump-1482839

84
The remnants of battle (programming.dev)
33
submitted 1 year ago* (last edited 1 year ago) by riskable@programming.dev to c/imageai@sh.itjust.works

It's really hard to get SD to output something like a cat girl hugging a fox girl so I decided to learn how to use the "segment anything" extension for a1111. The first results were great!

Fox girl hugging bunny girl being hugged by cat girl

Got the trifecta: A fox girl hugging a bunny girl who was also being hugged by a cat girl.

But now I wanted to take it further: Can I get five different anime beast people's hugging? No, LOL. Now yet anyway 🤣

That's supposed to be a a fox girl, a bunny girl, a cat girl, a frog girl, and a horse girl (like Pretty Derby).

[-] riskable@programming.dev 165 points 1 year ago

LGBTQ people and drag queens.

view more: next ›

riskable

joined 1 year ago