3,522 karma · joined Jun 21, 2017 (9y ago) · 1,209 submissions
comment 4y ago · link · parent
This comment reminds me of a disturbing one I read a few months back on an anonymous underwater basket weaving forum.
The poster was discussing those expensive “real doll” (?) sex robots that creep me out, anyways he went on to mention that he discovered the app “face app” could take these things from “uncanny valley” to essentially photorealistic. Makes sense given what the app is supposed to do, but the real mind fuck was he said it also works on under aged dolls… which again I was surprised to learn are apparently legal most places.
So AI/ML can take an inanimate object and then create highly illegal fool-most-humans level fake image from said inanimate object. Seems pretty scary to me, and we might not be far from an ML model that can essentially produce endless amounts of illegal content.
What are the implications of that? How do you even begin to police/filter that? Then I guess there’s the question of if we even should, since none of it’s real anyways.
Porn and AI is gonna get real messy.
comment 4y ago · link · parent
That will be middle class if the gov keeps printing money the way they are. Setting tax rates on net worth is absurd. Taxes should be a flat rate cut of income, and all forms of income should be taxed the same.
comment 4y ago · link · parent
Who you meet can radically change the trajectory of your life though, and if 99% of your demographic meets new people via tinder being banned can absolutely have an outsized impact on your life.
In my case I met someone normal, got married, had a child, and built a house in an area I never would have discovered had I not met them. I sometimes think how different my life would be if either of us hadn't checked our phones that night.
comment 4y ago · link · parent
I feel you. I got permabanned from tinder when I emailed their support asking how the verification process worked with couples. They replied with a ban notice and I was confused, turns out couples profiles are against Tinders T&C. I hadn't actually done ANYTHING to violate their T&C in-app yet, just asking their support about it was enough to ban for life.
To top it off, they embedded a secret key in my iOS keychain that synced across all devices. Even wiping the phone would get new numbers banned on sign in. I ended up having to use a fresh device on a fresh iCloud account on a new number to bypass their ban (I'm a dev with 100+ devices at my disposal and multiple VPS VPNs, good luck Tinder).
Tinder can go fuck itself, but they have an absolute monopoly in my area/demographic so I have to put up with them.
comment 4y ago · link · parent
This is just my opinion but doing that seems to be very dangerous. You're probably fine for small functions with single-developers, but once you get complex and have multiple people working on the code it seems easy for one dev to confuse another.
If you insist on that pattern (lets call it the local variable method) you can define vars such as
var localA = a
var localB = b
at the top of the function and work on it there. Personally I prefer function arguments to be immutable, so that any time you call them you know what you're working on is what the function was given. Forcing you to declare a local var makes the code much more explicit and easy for another human to reason about what you're doing, whereas they could very easily miss an "a=something else".
comment 4y ago · link · parent
What production code was even using swift back then? The vast majority of people didn't _start_ using swift until 3.x.
I know we're supposed to take the best-possible interpretation of someone's comments here, and in my opinion a joke is the best possible take on the above post. The alternative is you're being disingenuous.
comment 4y ago · link · parent
What are you talking about? Swift has had (and still has) basic for loops since 1.0. What am I missing here?
comment 4y ago · link · parent
Well, it is a new language
>I could see the field I needed in the object in the debugger, but for the life of me couldn't figure out how to get it.
I would need more context to help you out here. You had SomeObject with a child SomeChild and couldn't do
let a= SomeObject.SomeChild ? Perhaps I'm misunderstanding.
>I had to write some really weird `if let ...` thing that would extract those fields into local variables that I could then use.
Sounds like this is importing from some file or something, and whoever wrote the code below you just made everything optional and chucked all the responsibility for that up the chain. I'd have to see the code but it sounds like bad design.
>Also, immutable everything by default. You can't overwrite function arguments within the function itself, like you could in Java and C++. And unwrap, unwrap, unwrap, unwrap, unwrap everything.
That's a feature not a bug. Maybe I'm misunderstanding you, but if you have
func twoStrings(a: String, b: String) -> String, _why on earth_ would you ever want to be able to override that func's params and feed it something else? a/b would be a completely unexpected type and blow up/fail to compile. If you're routinely needing to do this, you haven't embraced static typing I think. Swift Generics are a potential option.