|
HardDiskD posted:MS and Mozilla are working together to make MDN the default JS reference. Yes, but clearly some pieces are missing.
|
# ? Dec 15, 2017 04:45 |
|
|
# ? May 14, 2024 21:46 |
|
Volguus posted:If in your database you store your UUID as varchar (for whatever reason, incompetency or the database support), you are arbitrarily reducing speed. Made some tests many years ago on an Oracle database, testing varchar vs bigint as primary keys, and the insert was slightly slower while the select was a lot slower (more than 15% is I remember correctly). I am genuinely curious, I use Postgres UUIDs in my code as a primary key for a table and between the network speed and the speed cost, however much that is of using a UUID as a primary key, the network speed is almost always the bottleneck. What is the problem? Is it just not done?
|
# ? Dec 15, 2017 10:26 |
|
If you use a text representation of a UUID then presumably it's always the same length so should be a CHAR at least, not VARCHAR
|
# ? Dec 15, 2017 14:09 |
|
Maybe the text representation uses a variable-width encoding like utf-8 tho
|
# ? Dec 15, 2017 15:54 |
|
Convert the UUID to bits, encode that as base-65536, store as a UTF-8 string?
|
# ? Dec 15, 2017 16:31 |
|
As long as you're not using insert time as the primary key like a vendor of ours does.
|
# ? Dec 15, 2017 16:32 |
duz posted:As long as you're not using insert time as the primary key like a vendor of ours does. So.. are they like.. hiring? I mean, I'm a clueless retard and even I know better.
|
|
# ? Dec 15, 2017 16:54 |
|
hailthefish posted:
Why would you want to work at a place where you know you're the smartest person there?
|
# ? Dec 15, 2017 17:12 |
|
duz posted:As long as you're not using insert time as the primary key like a vendor of ours does. Who on earth thought this was a good idea? TooMuchAbstraction posted:Why would you want to work at a place where you know you're the smartest person there? Job security.
|
# ? Dec 15, 2017 17:14 |
|
iospace posted:
There is no job security when the place folds 10 years later and you're 10 years older with nothing to show for it.
|
# ? Dec 15, 2017 17:35 |
|
duz posted:As long as you're not using insert time as the primary key like a vendor of ours does. As long as the insertion mechanism is a human sitting at a desk running a sql script, this works! You can even hire more people to insert as demand grows! Webscale!
|
# ? Dec 15, 2017 17:45 |
|
iospace posted:Job security. This is making a really questionable assumption that such a workplace would both recognize and value the quality of your work
|
# ? Dec 15, 2017 17:47 |
|
I fuckin love bugs that stop happening when I put logging statements in.
|
# ? Dec 15, 2017 20:33 |
|
hailthefish posted:
Volguus posted:There is no job security when the place folds 10 years later and you're 10 years older with nothing to show for it. After ~3 years they decided they didn't want to be in that business anymore so they shut down that product. Apparently we were the only client that they were able to get for it and all our bug reports and support requests were causing issues with their numbers. We've since replaced them with our own in-house solution using their product as an example of what not to do.
|
# ? Dec 15, 2017 21:06 |
Pollyanna posted:I fuckin love bugs that stop happening when I put logging statements in. Concurrency problems?
|
|
# ? Dec 15, 2017 21:44 |
Pollyanna posted:I fuckin love bugs that stop happening when I put logging statements in. Heisenbugs are the worst thing
|
|
# ? Dec 15, 2017 22:09 |
|
I've had that happen. It was something weird with variable initialization where any reference to the variable (including in a console.log, which is how I found it) would make the code function properly, but removing that statement would ruin your day. I ended up just mentioning the variable on a line by itself, which made it work This was a couple years ago, though - maybe whatever bug was causing that behaviour has been fixed by now?
|
# ? Dec 15, 2017 22:23 |
My favourite is CSS bugs that go away as soon as you open the dev console.
|
|
# ? Dec 15, 2017 22:44 |
|
I've definitely had that happen in scripting languages and it's usually a scope issue. (Mentioning it declares it so the scope problem disappears.) Unless you're taking about Objective C, in which case don't bother trying to figure out when variables exist and cease to exist.
|
# ? Dec 15, 2017 22:45 |
|
Today I learned of a couple of horrors lurking in .NET Framework. I was streaming binary data from .NET code into the standard input stream of a process I started as part of some automated tests. Very basic thing, this code and these tests have worked fine for more than 5 years already. Until I updated my build automation tooling to the latest version supplied by Microsoft. All this tooling does it call the compiler and then the test runner. Works fine on my PC. However, on build servers the stream suddenly contained invalid data for no obvious reason! To be specific, it contained the UTF-8 byte order mark! That's funny because none of my code even deals with encodings or text - all it sends is binary data (random bytes, in fact). And the exact same test runner started with the exact same command works fine on my PC. So what gives? Turns out that .NET Framework always creates a text writer for every standard input stream it writes to. My code does not use this text writer object because it does not write text and that's fine - I can just ignore the automatically created text writer. Naturally, this text writer has an encoding object associated with it. It would appear that when when you use Visual Studio Team Services build agents, this encoding object is configured to use a byte order mark! Even though I never use it, it still acts all helpful and outputs it as soon as the stream is open. But that is only the first horror. Why is it acting different on my PC and the build server? Because, of course, .NET Framework does not bother to ask the developer for his opinion when creating this writer - it just makes one no matter what. Yet it somehow needs to specify some encoding. What does it use? It uses whatever encoding the console of the current process uses! The encoding configuration used by VSTS build agents themselves appears to use a byte order mark for whatever reason, so I get one too! What if I need to use different encodings in my process and a started process? Silly man, one should not want that much. Now that I think about it, I wonder if there may also be race conditions there with regard to when this BOM is written by the text writer, competing with my own data output? Because it only happened in 1 test out of 5 that did this type of operation. Whatever, I don't want to know. EssOEss fucked around with this message at 23:41 on Dec 15, 2017 |
# ? Dec 15, 2017 23:37 |
|
Pollyanna posted:I fuckin love bugs that stop happening when I put logging statements in. I had one of these last week. Php laravel thing I had cooked up for the marketing people , for doing reseller poo poo , on safari, and only safari, it'd randomly start breaking the http connection to the server on a particular page, and do it silently with nothing in any log I could find. So I started adding in logging (on the server) and the bug stopped. Remove logging, bug reappears. Put it back in, bug stops. Ended up just leaving the logging in and filing it under "Mystery" in the bug tracker. Later worked out that upping timeout on apache fixed it too, but I'm still none the wiser as to the real cause.
|
# ? Dec 16, 2017 04:41 |
|
If Heisenbugs are the worst bugs, the best bugs are finding something so catastrophically wrong in core code that's it's amazing anything ever worked at all. Like... code:
|
# ? Dec 16, 2017 05:39 |
|
OneEightHundred posted:If Heisenbugs are the worst bugs, the best bugs are finding something so catastrophically wrong in core code that's it's amazing anything ever worked at all.
|
# ? Dec 16, 2017 05:54 |
|
Today I learned that calling dlopen in a program that links against pthread causes a 32 byte block of memory to not free when the application closes. Even after calling dlclose. It's harmless, but dang it, I want valgrind to show me all 0's without a suppression file!!!!!
|
# ? Dec 16, 2017 07:30 |
|
OneEightHundred posted:If Heisenbugs are the worst bugs, the best bugs are finding something so catastrophically wrong in core code that's it's amazing anything ever worked at all. This is a really hosed up implementation for assigning Peters to each other
|
# ? Dec 16, 2017 11:51 |
|
Is the horror that it decrements a reference counter without removing the object on the other Peter or what? I don't speak C++ that good.
|
# ? Dec 16, 2017 13:10 |
I think it's decrementing the reference counter on the object you're assigning from? I'm not entirely sure how to implement smart pointers, but I don't think it's the job of the assignment operator to do that. Also, what if this already has something assigned to it? E: nvm I'm stupid Joda fucked around with this message at 14:39 on Dec 16, 2017 |
|
# ? Dec 16, 2017 14:16 |
|
I still can't figure out what's wrong with it
|
# ? Dec 16, 2017 14:31 |
|
Illusive gently caress Man posted:I still can't figure out what's wrong with it
|
# ? Dec 16, 2017 15:58 |
|
EssOEss posted:Today I learned of a couple of horrors lurking in .NET Framework. I was streaming binary data from .NET code into the standard input stream of a process I started as part of some automated tests. Very basic thing, this code and these tests have worked fine for more than 5 years already. Had a similar problem to this 2-3 years ago upgrading from Java 6 to Java 8. Application did some work on the client, spewed out a JSON document, deep sorted the keys of it, took the SHA of the result, and sent it to the server for validation. Server did the same work, compared the two SHAs and moved forward. Problem was that there was a change to how a sorted map in Java worked from 6 to 8 such that these SHAs were no longer the same. Looking through the Sorted Tree Map should fix thiings but again there were issues. After way way way too much time it turned out to be a difference in how the client and server processes were starting and their LC_* environment variables. Which for this purpose involved how jenkins was started on the slaves that would eventually kick off the unit tests that were failing. Keep in mind there was nothing out of 7 bit ascii in any of the keys, but without micromanaging locale settings the sort wasn't stable between client and server instances.
|
# ? Dec 16, 2017 15:59 |
|
Yesterday I debugged a hardware/driver problem that only occurred once every 4 million times a function was executed. Clock domain timing bugs and hardware race conditions are a goddamn nightmare. Got some major kudos for that one. Now it's time for a well-earned holiday, baby
|
# ? Dec 16, 2017 21:39 |
|
joke: codebase is a horror woke: codebase exposes the horror to users as a cry for help
|
# ? Dec 17, 2017 03:42 |
|
You can use any symbol except spaces for your password. Except question mark and exclamation.
|
# ? Dec 17, 2017 16:30 |
|
Kaiser Permanente, my healthcare organization, has a messaging system built into their website, presumably to hide the doctors' email addresses. The restrictions on what symbols you can put into a message are heinously bad. If I recall correctly, all of the following are banned: {}[]$`;'\ It makes me seriously worried that they're generating SQL statements by blindly dumping user input into the query, and this is their method for preventing SQL injection attacks.
|
# ? Dec 17, 2017 16:52 |
|
TooMuchAbstraction posted:Kaiser Permanente, my healthcare organization, has a messaging system built into their website, presumably to hide the doctors' email addresses. The restrictions on what symbols you can put into a message are heinously bad. If I recall correctly, all of the following are banned: {}[]$`;'\ Worried? This is exactly what they're doing. The funny thing is that by posting this message publicly they automatically tell everyone what kind of sql injection attacks they're vulnerable to. I always love those that say: "If your name is O'Reilly please enter OReilly".
|
# ? Dec 17, 2017 17:26 |
|
TooMuchAbstraction posted:Kaiser Permanente, my healthcare organization, has a messaging system built into their website, presumably to hide the doctors' email addresses. The restrictions on what symbols you can put into a message are heinously bad. If I recall correctly, all of the following are banned: {}[]$`;'\ Friendly reminder that code that determines if someone's health insurance paid out at a former job was the poster child for "spaghetti code". 1000 line functions, no comments, no one knew how it worked, even the people who originally wrote it.
|
# ? Dec 17, 2017 17:58 |
|
It's a perfect candidate for machine learning.
|
# ? Dec 17, 2017 18:23 |
|
TooMuchAbstraction posted:Kaiser Permanente, my healthcare organization, has a messaging system built into their website, presumably to hide the doctors' email addresses. Its actually HIPPA compliance. Cant be discussing medical information over unsecured E-Mail that you dont know who is able to read it. Most hospitals now have a similar portal where you can contact your physician through their secure systems that have the same level of storage and security as your medical records. Not saying those arent a horror but its not just We cant let you know your Drs E-Mail.
|
# ? Dec 18, 2017 06:48 |
|
Hughlander posted:Its actually HIPPA compliance. Cant be discussing medical information over unsecured E-Mail that you dont know who is able to read it. Most hospitals now have a similar portal where you can contact your physician through their secure systems that have the same level of storage and security as your medical records. Considering how often those companies get hacked... Doesn't give me much comfort. I will say HIPPA was taken seriously at that company though I worked at. I'm sure it's taken just as seriously elsewhere (because it's both legal and civil repercussions if you do gently caress up with it), but the legal fines by and large are wrist slaps.
|
# ? Dec 18, 2017 07:00 |
|
|
# ? May 14, 2024 21:46 |
|
Isn't HIPPA per-violation though, so if you leak 10,000 instances you get fined 10,000 times or some poo poo? I almost got a medical-related job with the state, and it was looking to involve HIPPA. Still don't think it paid nearly enough to deal with that poo poo.
|
# ? Dec 18, 2017 07:43 |