|
This surprises you? From the company that has a BOOL functions returning TRUE, FALSE or -1 and the official mouse input API has no way to correctly size the output buffer?
|
# ? Feb 18, 2014 01:30 |
|
|
# ? Jun 5, 2024 08:42 |
|
pseudorandom name posted:the official mouse input API has no way to correctly size the output buffer? whaaaat??
|
# ? Feb 18, 2014 01:39 |
|
pseudorandom name posted:This surprises you? From the company that has a BOOL functions returning TRUE, FALSE or -1 and the official mouse input API has no way to correctly size the output buffer? mother of god
|
# ? Feb 18, 2014 03:09 |
|
code:
|
# ? Feb 18, 2014 04:13 |
|
Isn't everything in the System.Drawing namespace just a thin wrapper over the GDI API?
|
# ? Feb 18, 2014 04:13 |
|
I'm not quite sure what the context is here, but I can only imagine the horrors that are in a system that requires this as a troubleshooting doc: http://www.irs.gov/PUP/efile/Fixing_Your_Rejection.pdfquote:Did you receive an XML Error Validation Message about an Other Withholding Amount? In Step 2, E-file Tax Forms, Section 2,
|
# ? Feb 18, 2014 04:48 |
|
ijustam posted:I'm not quite sure what the context is here, but I can only imagine the horrors that are in a system that requires this as a troubleshooting doc: http://www.irs.gov/PUP/efile/Fixing_Your_Rejection.pdf In some small way, this implicit trust in the user's ability to precisely follow inscrutable instructions is admirable. It's ok to sometimes treat your users as able beings. That must be what the implementer of this fine system had in mind.
|
# ? Feb 18, 2014 04:56 |
|
pseudorandom name posted:This surprises you? From the company that has a BOOL functions returning TRUE, FALSE or -1 and the official mouse input API has no way to correctly size the output buffer? They are dealing with the biggest pile of rotted, bloated legacy code in the history of software.
|
# ? Feb 18, 2014 09:02 |
|
I see you've never worked on IBM System z, some parts of which descend from the original System/360 code... To be fair it was a lot better designed than Win32, and has held up better when extended. But it is still fifty years old.
|
# ? Feb 18, 2014 10:00 |
|
Tesseraction posted:I'd struggle to name an influential CS figure who wasn't primarily self-taught in their field of excellence. That's because people who are self-taught seem to be gripped by the need to tell people they are self-taught. People who are formally educated seem less inclined to penis-waving, so you never find out how they were educated.
|
# ? Feb 18, 2014 14:52 |
|
It's also because CS is a young enough field that all the leading lights were self-taught to at least some extent because there was no prior generation to teach them. Eg. Dijkstra got his degree in Physics, I think.
|
# ? Feb 18, 2014 15:55 |
|
pseudorandom name posted:BOOL functions returning TRUE, FALSE or -1
|
# ? Feb 18, 2014 18:49 |
|
Gazpacho posted:Really not a horror in view of the alternatives, which is why the Unix fork call does the same kind of thing. Using 'BOOL' when you mean 'char' or 'int' is understandably going to confuse people.
|
# ? Feb 18, 2014 18:52 |
|
They don't mean those things. They mean BOOL, in all its subtlety.
|
# ? Feb 18, 2014 19:00 |
|
Gazpacho posted:Really not a horror in view of the alternatives, which is why the Unix fork call does the same kind of thing. I thought it returned either -1 or a pid. Unless you're the child process, then it returns 0.
|
# ? Feb 18, 2014 19:49 |
|
So, as a follow-up, turns out the dude posted a Pull Request removing the "reserved identifiers", so good on him: https://github.com/cockpit-project/cockpit/pull/218
|
# ? Feb 18, 2014 20:48 |
|
Otto Skorzeny posted:It's also because CS is a young enough field that all the leading lights were self-taught to at least some extent because there was no prior generation to teach them. Eg. Dijkstra got his degree in Physics, I think. Still quite funny to overhear a lecture for a construction management course where the professor said something along the lines of "this technique is relatively new, having been in use for only 30 years or so." That's more than half the time our field has even existed!
|
# ? Feb 18, 2014 20:54 |
Just saw what my coworker is up to.code:
|
|
# ? Feb 18, 2014 20:56 |
|
Ego Trip posted:Just saw what my coworker is up to. He'll get the last laugh when booleans stop being binary valued and all he needs to do is add a default case.
|
# ? Feb 18, 2014 21:03 |
|
I'll just leave this here http://dotnetpad.net/ViewPaste/PwjcuvX5RkSqkZXCGI8oeg
|
# ? Feb 18, 2014 22:12 |
|
Smugdog Millionaire posted:I'll just leave this here http://dotnetpad.net/ViewPaste/PwjcuvX5RkSqkZXCGI8oeg I would imagine that's happening because if (b) is just testing whether it's a truth-y value or not (meaning whether it's non-zero or not), while switch (b) is testing actual strict value equality, and from the way the code is acting, the true literal value is not represented by all 1s (it's probably defined as 1 or something, not -128 or MIN_INT) in the machine. That also looks like mega undefined behavior and I'm kind of surprised it works at all in all honesty.
|
# ? Feb 18, 2014 22:35 |
|
2banks1swap.avi posted:This is the loving .NET standard library. At least their enterprise library fits all the bullet points: -Reads nice on paper -Easy to implement -Buggy piece of poo poo
|
# ? Feb 18, 2014 22:56 |
|
Tha Chodesweller posted:At least their enterprise library fits all the bullet points:
|
# ? Feb 19, 2014 00:34 |
|
http://msdn.microsoft.com/en-us/library/windows/hardware/ff554572(v=vs.85).aspxMSDN posted:The MmIsAddressValid routine checks whether a page fault will occur for a read or write operation at a given virtual address. Wait, what? Now I'm curious... MSDN posted:Even if MmIsAddressValid returns TRUE, accessing the address can cause page faults unless the memory has been locked down or the address is a valid nonpaged pool address.
|
# ? Feb 19, 2014 08:47 |
|
That's a dumb function in general. Why would you ever want to ask whether you can access a memory address? Shouldn't you know?
|
# ? Feb 19, 2014 08:51 |
|
Suspicious Dish posted:That's a dumb function in general. Why would you ever want to ask whether you can access a memory address? Shouldn't you know? When you're a driver receiving unknown poo poo from usermode you should check it. There are better ways to do this though.
|
# ? Feb 19, 2014 08:54 |
|
Is that just a timing thing? It could change between the call and the access?
|
# ? Feb 19, 2014 08:59 |
|
Its probably a first-pass "is every page in this list theoretically possible?" check, which has some utility when portions of the address space can't ever be valid, but there isn't really a point to it when you have to map and lock the pages before you use them anyway.
pseudorandom name fucked around with this message at 09:10 on Feb 19, 2014 |
# ? Feb 19, 2014 09:06 |
|
Yeah, from what I see it's mostly internally used by the memory manager itself which knows what it's doing I guess.
|
# ? Feb 19, 2014 09:45 |
|
A mix of coding horror and version control horror: I was using perforce's official client and I tried to get a directory from the server. While that was loading I tried to grab one more file. It opened two "Get Revision Progress" windows with their own percent bars for each operation. I decided I'd wait to get the single file later, so I hit stop on that window. It closed both revision progress windows and stopped both operations. Nice programming cool perforce.
|
# ? Feb 19, 2014 09:49 |
|
On the other hand, there's a function-like macro in the Windows DDK that expands to a multiple lines without a block to contain them. I can't remember the name of it, though. Think it was a Ke* function.
|
# ? Feb 19, 2014 09:55 |
|
pseudorandom name posted:On the other hand, there's a function-like macro in the Windows DDK that expands to a multiple lines without a block to contain them. I can't remember the name of it, though. Think it was a Ke* function. I also like various macros that need double parentheses for arguments.
|
# ? Feb 19, 2014 10:01 |
|
Suspicious Dish posted:So, as a follow-up, turns out the dude posted a Pull Request removing the "reserved identifiers", so good on him: As a follow up to your follow-up, it apparently doesn't compile. https://github.com/cockpit-project/cockpit/pull/218#issuecomment-35474133 So, boo on him for not even trying it before submitting it. Bad robot!
|
# ? Feb 19, 2014 13:54 |
|
https://github.com/alopexc0de/HashPass/blob/master/HashPass.php
|
# ? Feb 19, 2014 21:22 |
|
What's sad is that this is probably the most useful comment this guy has made.
|
# ? Feb 20, 2014 00:09 |
|
So we use google closure at work for our javascript stuff. Somebody decided we needed to annotate all our JS with the google closure jsdoc comments (that became a fad until people realized putting annotations for hundreds of thousands of lines of legacy code was loving boring and stopped doing it.) But anyway, I was looking through some C++ code from other groups, and some moron actually wrote google closure type annotations ... for C++ methods. You know, that esoteric language is statically typed and has a header and doesn't use google closure compiler to compile. What the gently caress?
|
# ? Feb 20, 2014 14:47 |
|
Bruegels Fuckbooks posted:So we use google closure at work for our javascript stuff. Somebody decided we needed to annotate all our JS with the google closure jsdoc comments (that became a fad until people realized putting annotations for hundreds of thousands of lines of legacy code was loving boring and stopped doing it.) Do you mean doxygen tags so you can autogenerate offline documentation and browse class hierarchies in a web-browser or other tool?
|
# ? Feb 20, 2014 15:19 |
|
Hughlander posted:Do you mean doxygen tags so you can autogenerate offline documentation and browse class hierarchies in a web-browser or other tool? No he means these: https://developers.google.com/closure/compiler/docs/js-for-compiler types for the typeless.
|
# ? Feb 20, 2014 16:29 |
|
I think I'm gonna vomit
|
# ? Feb 20, 2014 16:48 |
|
|
# ? Jun 5, 2024 08:42 |
|
my stats homework posted:2b+c) Generate the trajectory X^(k) (t_n) of a realization X^(k) of a white noise process in two Last week I called out the prof (my PhD advisor, incidentally) for providing unvectorized example code, I'm pretty sure now he's just trolling me. I wrote that I refuse to do part 2c on principle.
|
# ? Feb 20, 2014 17:50 |