WTF Bites
-
-
@topspin It is.
Nice feature.
What happens if the value is assigned on all control paths but the compiler can't prove that? Compilation Error?
-
What happens if the value is assigned on all control paths but the compiler can't prove that? Compilation Error?
I think so, yes. AFAIK it works on a "better safe than sorry" basis, just like it does for "uninitialized" variables.
-
Looks like it.
-
Looks like it.
I guess it goes to show that you shouldn't be too smartass about things.
(Does it enforce that assignment requirement even if an exception is thrown? That would be annoying, and surprising too.)
-
@dkf while I'm waiting for @zecc to give another constructive proof, my guess would be no. It makes sense to have this requirement in the absence of exceptions, just like functions are required to return a value. (Unlike C/C++, which will happily allow you to fuck up your stack.) For the exceptional case, it wouldn't make any sense.
-
If you throw an exception in a branch, it considers it as good as assigned.
Not very different from having a function with a return value where some branches have the otherwise required
return
statement but some instead throw exceptions.Or a
switch
statement where one of the branchesthrow
s instead of having abreak
.
-
Clever girl.
-
I've got to go do actual work now.
-
-
@BernieTheBernie said in WTF Bites:
dog (ma with falling tone) and horse (ma with high tone).
Does this mean that a very tall dog or a similarly short horse would be
ma
with an even tone?
-
Looks like it.
Ahaha
out
parameters cute, you deserve whatever you get.
-
@BernieTheBernie said in WTF Bites:
dog (ma with falling tone) and horse (ma with high tone).
Does this mean that a very tall dog or a similarly short horse would be
ma
with an even tone?You're thinking of dogs that jump over fences.
-
@BernieTheBernie said in WTF Bites:
dog (ma with falling tone) and horse (ma with high tone).
Does this mean that a very tall dog or a similarly short horse would be
ma
with an even tone?ma
with an even tone meansto come
.
-
@BernieTheBernie said in WTF Bites:
@BernieTheBernie said in WTF Bites:
dog (ma with falling tone) and horse (ma with high tone).
Does this mean that a very tall dog or a similarly short horse would be
ma
with an even tone?ma
with an even tone meansto come
.And this is Thai, not Vietnamese?
-
@Gribnit may hold true in vietnamese, too. I do not know vietnamese.
-
manglement realizes that actual resources have to be spent on making this thing be properly scalable and supportable.
-
@Medinoc separate columns. Same PK, but a new indexed column for the UUID.
-
@HardwareGeek said in WTF Bites:
manglement realizes that actual resources have to be spent on making this thing be properly scalable and supportable.
Lots of stuff never gets the call...
-
Looks like it.
Ahaha
out
parameters cute, you deserve whatever you get.Obviosly the solution is to double down and have a
ref
.
-
So it turns out that it wasn't even that Swift was doing the conversion wrong. No, we were definitely storing them as
string
. It's just this one route, it seems, was defined to expect a position id to be a number somewhere along the chain so I didreturn Int(model.position.id) ?? -1
So the default behavior seems to be that
Int(x) == nil
forx not integer-compatible
.So the -1 was coming from inside the house all along. And I'm not sure why I decided that that particular thing needed to be an
Int
there at all--the backend api validation only wanted it to be number-like (ie convertible to a number), and that latter validation had already changed (to accept any string). Which is why the rest of the app worked fine with uuid ids. ARGHHHHHHHHHHHHHHHHH!
-
@Benjamin-Hall said in WTF Bites:
So it turns out that it wasn't even that Swift was doing the conversion wrong. No, we were definitely storing them as
string
. It's just this one route, it seems, was defined to expect a position id to be a number somewhere along the chain so I didreturn Int(model.position.id) ?? -1
So the default behavior seems to be that
Int(x) == nil
forx not integer-compatible
.So the -1 was coming from inside the house all along. And I'm not sure why I decided that that particular thing needed to be an
Int
there at all--the backend api validation only wanted it to be number-like (ie convertible to a number), and that latter validation had already changed (to accept any string). Which is why the rest of the app worked fine with uuid ids. ARGHHHHHHHHHHHHHHHHH!This seems like it would have been a tiny bit less of a pain with versioned APIs.
-
Status" What good advice!
-
@Tsaukpaetra so, don't leave us hanging. I don't want to watch 23 minutes of garbage, what's the answer?
-
Zoom was having a moment. (And if you’re wondering why I didn’t just screengrab the device, I rather not connect WTDWTF on the device in question. I don’t think it could cope.)
-
@Arantor I'll allow it.
-
@Zecc table possibly even contains wood.
-
Status: You know, most websites would tell you the opposite....
Hey Cisco, fix your shit so it doesn't raise security alerts!
-
@Tsaukpaetra said in WTF Bites:
Status: You know, most websites would tell you the opposite....
Hey Cisco, fix your shit so it doesn't raise security alerts!
In fairness, that's technically on the system admins who didn't bother to work through Cisco's arduous process to actually get the certificate right.
-
@Tsaukpaetra said in WTF Bites:
Status: You know, most websites would tell you the opposite....
Hey Cisco, fix your shit so it doesn't raise security alerts!
In fairness, that's technically on the system admins who didn't bother to work through Cisco's arduous process to actually get the certificate right.
That's part of the Cisco QA process. For the sysadmins.
-
@Tsaukpaetra so, don't leave us hanging. I don't want to watch 23 minutes of garbage, what's the answer?
The ones that are clear likely block UV and not much else. The slightly yellow ones kinda reduce some of the blue spectrum, and are slightly more effective at LED-based light. The dark yellow ones are the best.
-
arduous process to actually get the certificate right.
They already went through the arduous process of setting it up, it should just be a button that reads "click here to add a group policy to accept the certificate authority" or if a proper authority is set up, to just request and use a certificate from the pki server....
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra so, don't leave us hanging. I don't want to watch 23 minutes of garbage, what's the answer?
The ones that are clear likely block UV and not much else. The slightly yellow ones kinda reduce some of the blue spectrum, and are slightly more effective at LED-based light. The dark yellow ones are the best.
Workplace safety FTW!
-
I have a miracle here: data corruption in Postgres. The same records violating a foreign key constraints, reproduced on 2 instances. I tracked all the things touching that data, and it looks like "ON DELETE CASCADE" didn't work, and old rows stayed in the table pointing to non-existent rows in another table. I'm a bit scared.
-
@sebastian-galczynski
Wow.
Any, like, partitioning or fancy indexing involved?
-
@sebastian-galczynski
Wow.
Any, like, partitioning or fancy indexing involved?Nope. The only non-standard thing is that it runs in a container and the data dir is mounted. But that's just a mount --bind, shouldn't matter at all.
Unfortunately, I have already deleted the data, cause now I have a regression in the ORM which borked the whole production system. The maintainer 'fixed' something and now I have two units of work (with one working outside of explicit transaction) and it tries to double insert some shit.
-
@Tsaukpaetra said in WTF Bites:
ones that are clear likely block UV and not much else. The slightly yellow ones kinda reduce some of the blue spectrum, and are slightly more effective at LED-based light. The dark yellow ones are the best.
And this is only one of the reasons why nicotine is good for you.
-
Prime Day Deal
inb4 TRWTF is Duckman
-
-
@sebastian-galczynski said in WTF Bites:
@sebastian-galczynski
Wow.
Any, like, partitioning or fancy indexing involved?Nope. The only non-standard thing is that it runs in a container and the data dir is mounted. But that's just a mount --bind, shouldn't matter at all.
Unfortunately, I have already deleted the data, cause now I have a regression in the ORM which borked the whole production system. The maintainer 'fixed' something and now I have two units of work (with one working outside of explicit transaction) and it tries to double insert some shit.
Are you sure nobody added a "secret performance trick" they learned from stackoverflow?
SET session_replication_role = 'replica';
ALTER TABLE b DISABLE TRIGGER ALL;
-
@Kamil-Podlesak Ah yes, the make it "eventually inconsistent" setting.
-
@Kamil-Podlesak Ah yes, the make it "eventually inconsistent" setting.
Globalist!
-
Visual Studio Is On Crack Status
There are no compile errors. I didn't edit any code. I pressed F10 on the first line after hitting a breakpoint
-
@hungrier Update: Restarted VS, re-ran the app, hit the same breakpoint and pressed F10 again. "Edit and Continue" has been "Checking for any code updates..." for several minutes
@error_bot xkcd "wasting time at work"
-
-
@error_bot feature request: quotation marks are significant
-
@error_bot xkcd wasting activities
-
-
Our front-end is growing fast. In April, there were only 449MB of node_modules. Now it's 755MB. If only this translated to functionality...
-
@sebastian-galczynski I’m sure it does translate to functionality, just none you want or care about. But it presumably has functionality nonetheless.