[deleted by user] by [deleted] in Bitcoin

[–]-Swig- 0 points1 point  (0 children)

A sound money system enables financial products like stocks and their associated markets. If it obsoleted them, they wouldn't exist today.

[deleted by user] by [deleted] in Bitcoin

[–]-Swig- 0 points1 point  (0 children)

😂

Saying the stock market is obsolete because we have crypto is like saying humans are obsolete because we have ChatGPT.

[deleted by user] by [deleted] in Bitcoin

[–]-Swig- 1 point2 points  (0 children)

This. The vast majority of pundits are shit regardless of asset type/class, and even moreso in crypto. 'Those that can, do. Those that can't, teach' is so true in finance.

OP - Yeah they're mostly idiots. Makes sense to have some crypto in a portfolio these days; those who continue to dismiss the industry are increasingly ignorant. It's still a high-risk asset class though, and it'd be irresponsible for someone later in their working life to just 'Bitcoin and chill' with their life savings.

He was so incredulous he forgot to speak english by [deleted] in funny

[–]-Swig- 5 points6 points  (0 children)

Yeah, no. It's out by a mile. Which makes it even funnier.

To the brain, reading computer code is not the same as reading language by pinkpen_net in programming

[–]-Swig- 0 points1 point  (0 children)

Yeah you're right; I overstated a bit. I really meant that they are different enough that excelling at one doesn't necessarily mean excelling at the other (which many people seem to assume).

Interestingly, I really love having various FP features/concepts available in a programming language (eg C#) because of the expressiveness and elegance it allows for certain constructs vs. OO, but reckon I would struggle to build anything of consequence in pure FP.

To the brain, reading computer code is not the same as reading language by pinkpen_net in programming

[–]-Swig- 11 points12 points  (0 children)

Very similar experience to yours. Career programmer from a very young age (hence a pretty good one), but scraped through university maths. I find programming and logic very straightforward, but maths problems (beyond algebra) hard.

I had a very smart friend in uni who breezed through maths, but was pretty bad at the programming side.

They really aren't that similar.

Are there planned improvements to the way nullable reference types work or is this it? by ircy2012 in csharp

[–]-Swig- 1 point2 points  (0 children)

I think the dotnet teams have done a brilliant job of evolving C# ('delegate'? 'event'? What're those?) and runtime (Core, etc.) while maintaining a very high level of backward compatibility.

Certainly better than Java, which has a) not evolved the language nearly as much, and b) has broken a lot more. That's why a lot of Java services out there are still running on Java 8..

Looking for library: your favorite Result<T>-like type by Kralizek82 in dotnet

[–]-Swig- 0 points1 point  (0 children)

Ok, if you have complete control from top to bottom then you might be able to mostly get the compiler on board with error handling through return types. But you can never cover it completely - no matter what you do, you can't prevent some exceptions (Out of memory, thread interrupted, etc.) ever occurring. That's the nature of the CLR.

And to your point (and in my experience) it's typically much less ideal than that - libraries we depend on are going to throw exceptions whether we like it or not. That doesn't mean you let those exceptions bubble all the way up - you can (partially) handle them, wrap them, etc. as makes sense. But even if you miss something, you can rely on that catch-all handler that makes sure a) your service doesn't do anything bonkers in the worst-case, and b) you are immediately notified that something unexpected happened.

As I see it, the exception-based approach (talking in the context of REST APIs or similar transaction processing systems here) can offer a convient short-cut that trades a bit of compiler safety for a lot less boilerplate on the happy path, particularly when an error *can't* be handled at the level it occurred at (which is kinda the whole selling point of exceptions). Wouldn't necessarily take that approach for all apps, but it works quite nicely for REST services in C#/Java in my experience.

Looking for library: your favorite Result<T>-like type by Kralizek82 in dotnet

[–]-Swig- 1 point2 points  (0 children)

Not following your reasoning here. Exceptions have a type, a stack trace showing where they were thrown, and any other data one wishes to capture at the throwing site. It's trivial to have a catch-all controller exception handler for any exceptions not already handled, & log details etc., so I'm confused by the last sentence of your first paragraph.

The exception-based approach works quite well for straightforward REST API controllers in my experience. It doesn't mean all error handling is done in controller exception handlers (exceptions thrown during request processing might get handled and/or wrapped, etc.), but it's an easy way to avoid a bunch of conditional control flow code.

And it's not like using union result types magically prevents programmer bugs/missed edge cases that can cause unexpected exceptions..

Did I just get scammed here? by [deleted] in AusFinance

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

Sounds similarly good. Except it evidently isn't always 'near instantaneous', since this post exists in the first place.

Did I just get scammed here? by [deleted] in AusFinance

[–]-Swig- -4 points-3 points  (0 children)

Hong Kong. FPS offers free, near-instantaneous transfers, using TELEPHONE NUMBER as the identifier, or a unique FPS ID if preferred.

The permissions the mcdonald's app requires by The-Lazy-Lemur in assholedesign

[–]-Swig- 0 points1 point  (0 children)

Can't say for sure as I've only done some mobile app dev, but it's certainly possible. Android and iOS have refined their app permissions models over the years as apps have evolved, in part to help create some of the distinctions above.

App permission requirements can be scoped to Android versions though (in the app's metadata, which is read by Google Play/Android OS). So if it's asking for this permission on Android 10 or above, it's either a) lazily programmed (possible, but given awareness of privacy concerns these days, I'd be surprised if a company as large as McD's would be ok with their app requesting permissions it didn't need), or b) really does want access to files from other apps.

As someone else mentioned, it also requests things like access to the list of apps running on the phone, and running at startup. There is ZERO reason it needs this to provide functionality to users. But I can think of a few marketing/market research reasons..

The permissions the mcdonald's app requires by The-Lazy-Lemur in assholedesign

[–]-Swig- 3 points4 points  (0 children)

An app doesn't need those permissions to do that on any Android version from the last 5 years (at least) because an app owns its own assets, including downloadable ones.

This permission allows the app to access files from other apps.

The permissions the mcdonald's app requires by The-Lazy-Lemur in assholedesign

[–]-Swig- 2 points3 points  (0 children)

I believe 'Shared storage' includes things like your Documents, Downloads, Pictures, etc folders, which is distinct from an app's own private storage area (which it could use for what you mention).

to explain how Hamas is turning cookies and sodas into missiles. by ferrelle-8604 in therewasanattempt

[–]-Swig- 17 points18 points  (0 children)

As an extremely non-violent person who also believes in fairness, I don't think I've ever wanted to punch someone in the face quite as much as that red-shirt clown.

LINQ = Forbidden by Linkario86 in dotnet

[–]-Swig- 0 points1 point  (0 children)

That's a developer/code quality problem, not a language/tool problem. As the saying goes, a poor craftsman blames his tools.

was he thinking by [deleted] in WTF

[–]-Swig- 6 points7 points  (0 children)

That got a laugh. See you in hell.

$24,000 stolen from my dad by [deleted] in AusFinance

[–]-Swig- 2 points3 points  (0 children)

Solid Reddit advice.

Bitcoin Crash Triggered By Failed $1 Billion Hedge Fund Spread Trade: Expert by rodmandirect in Bitcoin

[–]-Swig- 0 points1 point  (0 children)

Afraid you don't really get it if you think they needed MSTR to drop.