Live data from Hacker News

Null

popey.com

61–70 of 196 posts

Re: Null

#61

I worked on an API that regularly got requests from the mobile app for GET /users/(null). I think that's Swift, or Obj-C's way of to-string'ing a null? I have a generational suffix on my name. I often include it, and quite often as the proper Unicode character, e.g., "Ⅲ". (Assuming HN displays it after I post this, try to select it; that's one character.) That wreaks a fair bit of havoc. When I was in high-school, I…

> Every now and then a dev will make a branch with "BranchPrefix/" and the OS X machines all start having issues since OS X's file hierarchy isn't case sensitive. (We've also had issues w/ two files, same name different case. git supports it, but OS X can't cope.) FWIW macOS is perfectly fine with it. The FS (both HFS+ and APFS) can be configured to work in CI or CS modes. The default is CI. Since git uses the FS for…

I was going to say the same thing. Everytime I format my hard drive I have to look up which mode is the one that doesn't break things...

Re: Null

#63

I worked on an API that regularly got requests from the mobile app for GET /users/(null). I think that's Swift, or Obj-C's way of to-string'ing a null? I have a generational suffix on my name. I often include it, and quite often as the proper Unicode character, e.g., "Ⅲ". (Assuming HN displays it after I post this, try to select it; that's one character.) That wreaks a fair bit of havoc. When I was in high-school, I…

> Just today, Azure's support system can't handle (among many things) the outlandish characters of " ". Which is great fun, since it's not like anyone would file a highly-technical support request with Azure… right? Someone in Azure is definitely using the Windows reserved characters for filenames.

Reminds me of the fact that filenames in OneDrive are even more restrictive because of some legacy SharePoint software that was representing filenames in URLs.

"?" and "#" were not allowed in OneDrive for Business for a long time because they have a special meaning in URLs: https://techcommunity.microsoft.com/t5/microsoft-sharepoint-...

The Rclone documentation has a full list of problematic OneDrive characters: https://rclone.org/onedrive/#restricted-filename-characters

Re: Null

#64
I know finding bugs is undeniably a good thing but I can't help but feel someone as obviously bright as this should be making more things

It's like the people who spent a lot of their time finding ever more pedantic inaccuracies and continuity errors in films.

The mute LED on your thinkpad sometimes goes out of sync? fascinating

Re: Null

#65

Earlier quoted context omitted.

That’s how C usually prints it. Swift will print “nil”.

I was curious, so I tested that[0], and 3 of the 4 major compilers (clang, gcc, and ICC) all output `(nil)` for a `%p` on a null pointer, but `(null)` for a `%s`. Godbolt doesn't support executing MSVC for some reason. However, it is my understanding that passing a non-null pointer to printf for `%s` is undefined behavior. [0]: https://godbolt.org/z/7K5qWv

> Godbolt doesn't support executing MSVC for some reason.

That's because the MSVC compiler doesn't actually run on the godbolt servers (unlike all the other ones). The compilation is done on Microsoft servers. It's understandable that neither side is looking to have Windows sandboxes to execute arbitrary code in.

(Disclaimer: At least that's how it worked when Matt introduced the MSVC compilers. Not sure if things are substantially different by now.)

Re: Null

#66
post #28
post #7

>While I’m not a QA or security professional, I have developed a knack for doing “stupid” things with software which causes it to malfunction. A person after my own heart. I've had many a dev go "why would you do that" In which I answer "it doesn't matter, but if you accept my input it's your job to ensure the app doesn't crash"

Why do you require software to be more resilient than other things? If I pour water in the gastank of my car, it will also fail to drive. Or gas in the sprinkler tank. So the car should somehow prevent the enduser putting the wrong thing in the tank?

We require software to be resilient because it is used as a building blocks for large (sometimes exteremely so) systems. The deeper in the stack something is, the more costly the failure. A human may not input any of those strings. Another software (which does not reason in any way about the data it is processing, unlike the human) may do whatever.

Re: Null

#67
post #28
post #7

>While I’m not a QA or security professional, I have developed a knack for doing “stupid” things with software which causes it to malfunction. A person after my own heart. I've had many a dev go "why would you do that" In which I answer "it doesn't matter, but if you accept my input it's your job to ensure the app doesn't crash"

Why do you require software to be more resilient than other things? If I pour water in the gastank of my car, it will also fail to drive. Or gas in the sprinkler tank. So the car should somehow prevent the enduser putting the wrong thing in the tank?

There are also warning labels all over the various fill caps on a vehicle. "Unleaded gasoline only". Which are like real-world input validation. It's just not feasible to check the fluid before allowing it in. But is is feasible to add a data validation layer to your application.

Re: Null

#69
> When snaps are uploaded, there are security and sanity checks which run against the snap. My use of the (probably reserved) word null seemed to fool the backend checks script, live on stage, in front of my peers. That’s the way to end a lightning talk, I think!

The backend crashes and instead of getting an error message you are forced to watch a spinner forever?

Post reply on HN