Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uxp8u61q
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
241.
▲
by
uxp8u61q
3y ago
> I'm typing on a phone But you have an uncontrollable urge to write here? Someone's holding a gun to your head? > You are not disagreeing with me when you make that claim, you're disagreeing with one of the world'
242.
▲
by
uxp8u61q
3y ago
> Because C++ without exceptions is not C++ Write exception-free external APIs. It's not that hard. > call overloaded functions Write an API that doesn't overload functions? > nor delete or create objects using new and de
243.
▲
by
uxp8u61q
3y ago
Have you... used Excel? It's very simple to create any kind of "dashboard" (AKA graphs on a page) and then you just share the web link to the page.
244.
▲
by
uxp8u61q
3y ago
Sometimes I feel like I'm taking crazy pills when I go on HN. What footguns are there in C++ that aren't there in C?
245.
▲
by
uxp8u61q
3y ago
You can also do that with C++.
246.
▲
by
uxp8u61q
3y ago
Sure, that's totally readable and meaningful.
247.
▲
by
uxp8u61q
3y ago
What do you want me to say? If nothing in your code owns a resource and needs to dispose of it when it's done, then obviously, you don't need smart pointers. I'm not here to evangelize, I'm trying to understand why someo
248.
▲
by
uxp8u61q
3y ago
On my keyboard layout it's one keypress. And since code is read about 100 times as much it's written, I don't particularly care about reaching 250 WPM while writing code. The difficulty of writing code is thinking about it, n
249.
▲
by
uxp8u61q
3y ago
inttypes.h was added to C99. A quarter of a century ago.
250.
▲
by
uxp8u61q
3y ago
Long type name?? uint32_t is literally 8 characters long. There's not much to cut here.
251.
▲
by
uxp8u61q
3y ago
> I prefer functions over classes. Then use functions? > no mangling of exported names, the binary is re-usable as API. Not once in my life have I seen someone use a binary as an API. > in the long term, the C source code is more r
252.
▲
by
uxp8u61q
3y ago
Smart pointers alone make the switch worth it. Why wouldn't you want that?
253.
▲
by
uxp8u61q
3y ago
Honest question: why C? I've been writing C++ firmware for SoCs, supposedly an area where C is supposed to be king, and C++ was just as good, except it came with all the batteries included. So, why C?
254.
▲
by
uxp8u61q
3y ago
... Yes? What are you trying to say? Did you go and lookup what a Turing machine is? Or read the section entitled "Non-mathematical usage"?
255.
▲
by
uxp8u61q
3y ago
By definition it's not. It's just as random. These names just tell you a few key properties of the distribution.
256.
▲
by
uxp8u61q
3y ago
Fun fact: Microsoft is a year older than Emacs.
257.
▲
by
uxp8u61q
3y ago
You also need an infinite memory to be called "Turing complete". It doesn't make sense to say that a bunch of operations are or are not Turing complete. It's a property of a whole machine, not just a set of operations. A
258.
▲
by
uxp8u61q
3y ago
Still no explanations, and now you're belittling people who want an explanation and relying on your supposed authority on the matter.
259.
▲
by
uxp8u61q
3y ago
It's the first sentence under the heading "What is a CRDT?" in the linked article.
260.
▲
by
uxp8u61q
3y ago
The prerelease finally supports ipv6: https://github.com/microsoft/WSL/releases
261.
▲
by
uxp8u61q
3y ago
I get the feeling that many RFCs are written by programmers who want to cosplay as lawyers. There's no reason for a technical spec to be written like a legal contract with archaic formulations. There's also no reason for legal con
262.
▲
by
uxp8u61q
3y ago
Try looking at the moon rather than the finger next time.
263.
▲
by
uxp8u61q
3y ago
What do you mean by "work"? That you can store arbitrary bytes in a string? That's a pretty low bar.
264.
▲
by
uxp8u61q
3y ago
> The content of a webpage is required to be expressed in every supported language, but the HTTP protocol must not. And it would make no sense at all to add internationalization to intra-machines protocol, where ASCII is enough and has b
265.
▲
by
uxp8u61q
3y ago
> I have always been setting the locale to En-US even though I have never been to America. This leads to a number of annoyances though. E.g. LibreOffice always creates new documents for the Letter paper format and I have to switch it to
266.
▲
by
uxp8u61q
3y ago
This kind of assertiveness leads to garbage like C++ still not supporting UTF8 properly in 2023. My name contains diacritics. I am so, so, so tired of trying to work around information systems - not just web frontends - designed by people
267.
▲
by
uxp8u61q
3y ago
That's unrelated to unicode. The checkmark symbol just isn't in the Arial font, so Word just falls back to a font that has it - Segoe UI. You've found a bug where Word still thinks it's Arial. But this is something that
268.
▲
by
uxp8u61q
3y ago
That's definitely the way. When I used to use Emacs, it was always running, and my $EDITOR was set to emacsclient. I had two monitors, one fully dedicated to Emacs, the other to the rest.
269.
▲
by
uxp8u61q
3y ago
> Sigh. Yes, but here on Planet Earth, a lot of legacy code was (irresponsibly) written under the assumption that the contemporary compilers wouldn't change their behavior in the future. Why aren't they using the old version of
270.
▲
by
uxp8u61q
3y ago
I'm well aware of the EU's problems. But there's still a measure of democracy. > Most people don't even know the names of the EU representatives of their countries. Most people don't know the names of their gover
More ›