Well, it’s not exactly impossible because of that, it’s just unlikely they’ll use a discriminator for the task because great part of generated content is effectively indistinguishable from human-written content - either because the model was prompted to avoid “LLM speak”, or because the text was heavily edited. Thus they’d risk a high false positive rate.
True. I wanted to replace it with OSM or similar, but my main use of Maps after navigation is exploring places, reading reviews, and browsing pictures. They have a database that is tough to replace.
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...
the thing is - there’s a lot of variables that shift the balance towards renting when looking within a time frame, even from a financial perspective.
how long you can stay in one place and whether that fits your needs both today and in a few decades
% of down payment and missed earnings if this money went towards another investment
interest rates
property taxes
HOA fees, if any
likely higher insurance rates over renting
maintenance costs
In the end of the day, since many variables have a large uncertainty, that’s a bit of a gamble. Home ownership tends to win over time, but the longer one looks into the future, the higher this uncertainty also is.
I don’t think so. A half-measure using docstrings would likely take more processing power and require an ad-hoc implementation because comments are not broken down into ast components afaik. It would also be more costly in the long run if they decide to convert it into a proper syntax, as a result of docstrings not having a single standard way of being written.
Python has introduced several syntactic changes for type annotations, this is not unreasonable.
You can say any execution flow controls are like gotos - continue, break, exceptions, switch, even ifs are not much more than special cases of gotos.
This is true regardless of the size of the function which shows that the size of the function isn’t the determinant
Logical clarity does tend to worsen as the function grows. In general, it is easier to make sense of a shorter function than a longer one. I don’t know how you could even say otherwise.
Early returns are still great for argument validation. The alternative means letting the function execute to the end when it shouldn’t, just guarded by if conditions - and these conditions any reader would have to keep in mind.
When a reader comes across an early return, that’s a state they can free from their reader memory, as any code below that would be unreachable if that condition was met.
Any validation you can write with a few early returns you can write with an equivalent conditional/s followed by a single nested block under it, followed by a single return. The reader is free to leave the validation behind just the same.
And that conditional indents your entire function one level - if you have more validation checks, that’s one level of indentation per check (or a complicated condition, depends whether you can validate it all in one place). It’s pretty much the case the other user illustrated above.
Returns inside business logic past validation is where the problematic bugs of this class show up
That much we agree. But again, this is not an early return issue, putting too much logic in a function is the issue. Rewriting it without early returns won’t make it much clearer. Creating other functions to handle different scenarios will.
Just getting into JS (feddit.uk)
Why is zoom so insane when you double tap on images?
When you click on an image and double tap to zoom, it zooms to the microscopic level or is it just me?
my reaction to day 1 of Google i/o (youtube.com)
Google is redesigning its search engine — and it’s AI all the way down (www.theverge.com)
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...
Comcast Unveils Peacock, Netflix, Apple TV+ Streaming Bundle (www.hollywoodreporter.com)
Cable is dead. Long live the cable bundle. Curious to see the pricing and if the bundle only includes ad tiered options.
Congrats to all 2024 college graduates! (kbin.run)
You are now entering your spicy years. 🌶️
Is there any way to change this order in the Application Launcher? (lemmy.world)
Have you tipped your landlord for Mother's Day? (lemmy.world)
Always follow 3-2-1 backup rule (sh.itjust.works)
Certified in AI (sh.itjust.works)
Mind of a synesthete (lemmy.ca)
got him (lemy.lol)
Hey Daddy ( Daddy's Home ) - Usher ( Speed up + Reverb + Underwater ) TikTok Version (lemmy.ml)
Lower your emissions (lemmy.world)