Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sgbeal
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
331.
▲
by
sgbeal
3y ago
> This code is clean and neat. And severely flawed. The (a == fopen...), etc, are certainly not doing what is apparently intended.
332.
▲
by
sgbeal
3y ago
> Property existence: key in object, typing `key?: T` i have no idea what that's supposed to mean. Presumably you're using a TypeScript-ism? > JSON: got it completely wrong. Agree with it or not, it's what we have. Havi
333.
▲
by
sgbeal
3y ago
Update from OP: this conundrum has been resolved. The library in question will have native JSON support once it's ported over from its predecessor, and using JSON effectively from a high-level language requires some way of distinguishi
334.
▲
by
sgbeal
3y ago
> How do you accurately model real world problemds where nulls happen without this entity? After having considered JSON, it seems that both null and undefined are necessary in this frame so that consumers of the json can differentiate be
335.
▲
by
sgbeal
3y ago
> Do programming languages really need any of these two? "Need," no, but when this distinction is useful, it's really useful. There's no other way (in JS, at least) to distinguish between "no value set" and
336.
▲
by
sgbeal
3y ago
> You can have any number of sentinel objects. Of course, but giving a memory address to the null and/or undefined value feels (after having used JNI) really awkward. My API cannot(?) sensibly distinguish between null and undefined
337.
▲
by
sgbeal
3y ago
> It seems rare to make use of the distinction between null and undefined in real Javascript code. It is admittedly rare, but when it's useful, it's _really_ useful. It can be used, e.g., to distinguish between "property i
338.
▲
Ask HN: Should scripting engines distinguish between "null" and "undefined"?
8 points
by
sgbeal
3y ago
|
16 comments
339.
▲
by
sgbeal
3y ago
> This just tells me they don't understand why any of those things were created... Like very nearly all FOSS, they were created to scratch their own developers' personal itches. > ... and how to actually use them. Their itch
340.
▲
by
sgbeal
3y ago
It's all fun and games until we reflexively hit ctrl-w to close a virtual window and end up closing the browser tab that window is running in :/.
341.
▲
by
sgbeal
3y ago
> How about we remove them - what would be the effect? It would eliminate the only reason kids have to _want_ to be able to read an analog clock ;).
342.
▲
by
sgbeal
3y ago
Where does anyone actually see a clock nowadays? i haven't had a clock in my home since i threw out my digital alarm clock when moving in 2004.
343.
▲
by
sgbeal
3y ago
> Is it just me getting older, or am I just using a bad setup. FWIW, that sounds like a side effect of having had too many birthdays. It happens to all of us, but affects some worse than others.
344.
▲
Free Software Foundation shop is "temporarily closed"
(shop.fsf.org)
4 points
by
sgbeal
3y ago
|
1 comments
345.
▲
by
sgbeal
3y ago
As of this writing, the FSF shop is "temporarily closed" until "some time in 2024." How weird is that? Edit: the full text of the current landing page is (with links added in markdown format): GNU Press Shop temporarily
346.
▲
by
sgbeal
3y ago
The Fossil SCM ( https://fossil-scm.org ), self-hosted ( https://fossil.wanderinghorse.net/r/ ). Though i have a github account, i don't actively use it except to clone third-party repos now and then. Full
347.
▲
by
sgbeal
3y ago
Note that doing proper/full code reviews requires know-how in the code's problem domain and the specific project's background and needs. "Outsiders" reviewing code can comment on programming-language-specific issues
348.
▲
by
sgbeal
3y ago
FWIW, i recommend adding an option to skip audio tests. This machine doesn't have audio so the best i can do is randomly select one of the two choices.
349.
▲
by
sgbeal
3y ago
Because nobody's said it yet... That's the epitome of dirt-y business!
350.
▲
by
sgbeal
3y ago
Plenty of folks, myself and most of my FOSS colleagues included, develop using only a text editor and a shell. There's no shame in that. (PS: plus makefiles, of course, maintained in that same editor and run in that editor or in the sh
351.
▲
by
sgbeal
3y ago
An ironic aspect of this is that when i was young my dreams were always in dull colors, like 70s-era photos. As i age, dream colors become more and more vivid. Given that, i suggest that their conclusion: > The study is the first to use
352.
▲
gdb-front end: gdb front end with a browser-based UI
(github.com)
2 points
by
sgbeal
3y ago
|
1 comments
353.
▲
by
sgbeal
3y ago
This has been discussed on HN before, but not since about 2 years. i only learned about it today and have found it exceedingly helpful for debugging my C code, with a lovely UI.
354.
▲
by
sgbeal
3y ago
> There is rclone bisync. Oooh, nice. That's not _quite_ the same as real-time two-way sync, but i guess it's the next best thing. < https://rclone.org/bisync/ >
355.
▲
by
sgbeal
3y ago
> That way doesn't let you check on your progress, right It does if you redirect the output to a file other than /dev/null, but in my experience checking on the progress is irrelevant - it's done when it's done.
356.
▲
by
sgbeal
3y ago
> It can be used to read/write/sync/copy/move To help avoid getting anyone's hopes up: rclone does not do automatic two-way sync. In rclone parlance, "sync" means to either pull all files from a remote
357.
▲
by
sgbeal
3y ago
> Put clone on a server with good networking, run it under tmux tmux isn't strictly necessary: nohup /usr/bin/rclone ... &>/dev/null & then log out and it'll keep running.
358.
▲
by
sgbeal
3y ago
> Insync sucks... FWIW, i've been using Insync on Linux since it went online (because Google never released a Linux-native client). Aside from one massive screw-up on their part about 8 or 10 years ago (where they automatically conv
359.
▲
by
sgbeal
3y ago
Thank you. Weird that there seems to be no link to it anywhere.
360.
▲
by
sgbeal
3y ago
> Although I guess not everyone synchronizes their Dropbox locally. And i've yet to see a pi-native dropbox client for doing so. PS: i actually do sync dropbox to my main workstation but selectively do so. The lion's share of m
More ›