Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cjensen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
cjensen
1y ago
The best thing about juniors is they don't know a problem is impossible, so they just do it.
32.
▲
by
cjensen
1y ago
There are three reasonable choices: (a) return the null pointer (b) return a valid unique pointer and (c) abort(). The point of the original C Standard was to make rules about these things AND not break existing implementations. They recogn
33.
▲
by
cjensen
2y ago
Obviously first two strats don't work, so I would use the third.
34.
▲
by
cjensen
2y ago
I use a few strategies instead of goto: (1) For simpler cases, wrap in do {} while (0) and break from the loop (2) For multiple cleanups, use same technique combined with checks to see if the cleanup is required. E.g. if (f != null) fclose
35.
▲
by
cjensen
2y ago
It's implied in the definition. Consider the units: a ratio should not have units. Lines of code per programmer per day would have weird units, for example, and could not be compared against number of windows installed per day for per
36.
▲
by
cjensen
2y ago
The output is measured with dollars, not lines of code. So are the inputs. It's a perfectly cromulent measure so long as we understand the limitations of the measure. For example, trying to measure the productivity of a day or a sprint
37.
▲
by
cjensen
2y ago
The US has 222 C-17 Aircraft. A single C-17 costs over $300 million. If you ask Boeing for soap dispenser parts for these, what should they cost? Boeing charged $149,072 for the dispensers. That's $671 per plane. Is that too much? If y
38.
▲
by
cjensen
2y ago
It's a worse experience for posters for two major reasons: blocking is not as effective (blocked people can still read and respond), and there are too many weird scolds who yell at people for not adding content warnings for trivial thi
39.
▲
by
cjensen
2y ago
To clarify, it's 94x the performance of the naive C implementation in just one type of filter. On the same filter, the table posted to twitter shows SSSE3 at 40x and AVX2 at 67x. So maybe just a case where most users were using AVX&#x
40.
▲
by
cjensen
2y ago
You're being confused by one of the parts of C that is difficult for beginners to wrap their heads around, and is a trap from the unwary. In C, there are arrays. If you use the identifier that names the array as a parameter to a functi
41.
▲
by
cjensen
2y ago
I don't understand. In the Meta the answer is used as an example of something that never gets deleted by the system. I don't see any anger about it -- just a discussion of a defect in the Stack Overflow system where unhelpful answ
42.
▲
by
cjensen
2y ago
In Audubon's time, the only way to accurately paint a bird in detail was to shoot it, examine it, then paint it. It's also why so many of his paintings are of birds in unnatural positions. Even today, museums and universities some
43.
▲
by
cjensen
2y ago
By "Ruse," they mean the law's ruse of claiming to only regulate the conduct of design, when in actual fact the law clearly intends to regulate speech. It's a "ruse" to try to avoid a court noticing that the la
44.
▲
by
cjensen
2y ago
Sometimes I think rvalue-references were a bad idea. Sure they improve efficiency for people using objects directly instead of through a pointer, but the amount of mental model added worries me that the average coder will have no real clue
45.
▲
by
cjensen
2y ago
The generated C++ interfaces to gRPC are also filled with an incredible amount of indirection and unnecessary concepts. I'd say it's a "bad at writing complex things simply" culture rather than being Java-specific.
46.
▲
by
cjensen
2y ago
I don't know, but a hypothetical 'implicit' would mean converting all unmarked constructors into explicit constructors... which would have broken a lot of existing code.
47.
▲
by
cjensen
2y ago
There are many birds which are blue, but none of them have blue pigments [1]. It's a light-scattering effect. [1] https://blog.education.nationalgeographic.org/2016/05/09/the...
48.
▲
by
cjensen
2y ago
Be aware that this is not a TV. The PVM Series of monitors are professional video monitors that are not offered for sale to mere consumers. This is the kind of thing that would be installed in the control room of a TV station to display the
49.
▲
by
cjensen
2y ago
The assumption that it will wash away in the rain rather than find its way into cracks and pits in the rock is an awfully big bet to make vs permanent damage to history.
50.
▲
by
cjensen
2y ago
Very interesting here is the charges against a pair of specific executives who are _not_ at all C-Suite level. Makes me wonder why them, specifically. E.g. could it have been something like emails between them suggesting the illegal activit
51.
▲
by
cjensen
2y ago
That's a design bug, not a user problem. Why are zero-length passwords treated as login attempts for a user with a non-zero password? Why are a cluster of login attempts permitted in such quick succession? There's so many obvious
52.
▲
by
cjensen
2y ago
A funny thing to me is I took CS 50 in '85 or '86 (CS 50 and CS 55 were later split into the CS61X series), and instead of Scheme we used Logo for functional programming.... using Brian Harvey's textbook. He was not teaching
53.
▲
by
cjensen
2y ago
I appreciate the effort, but this is a misguided idea. This is not the first Embedded <LANG> attempted. For example, Embedded C++ [1] has been around for a couple of decades and is only used in a few weird places like Apple Device Dri
54.
▲
by
cjensen
2y ago
There's no "dogma" or "social consensus" here. The authors of the paper simply failed to do their homework adequately. Earthquake Prediction is filled with cranks. To deal with the issue, there is a neutral set of c
55.
▲
by
cjensen
2y ago
This is junk. They claim "anomalies" and fail to state the statistical odds of this anomaly occurring globally and the odds for this particular location. They also examine precisely one large earthquake rather than even considerin
56.
▲
by
cjensen
2y ago
Saudi Arabia lives in the same trap China does with respect to the dollar: they own so much dollar-denominated wealth that they have no interest in intentionally destroying the dollar. They may sensibly diversify going forward, but diversif
57.
▲
by
cjensen
2y ago
Inspired by, certainly. The founders were not ignorant and were aware of precedent. But calling it "almost copied word-for-word" is not justifiable. On a trivial basis, it's literally not word-for-word in any way. On a more s
58.
▲
by
cjensen
2y ago
It's not solvable. Yes, temporary response is a thing. But if I'm driving around town but then go on a freeway then what? Does it always over-produce around town? Or does it take time to build the new head of steam needed for the
59.
▲
by
cjensen
2y ago
Steam has fundamental problems beyond engine startup time that are just not solvable. Gas engines can quickly switch from low-power to high-power, meaning that you can kick it up quickly to pass another car or maintain speed up a hill. It&#
60.
▲
by
cjensen
2y ago
Camera vs Lidar+Camera is not a narrow question. Cameras lack sufficient dynamic range to work in many situations, and therefore cannot alone be used for a real self-driving solution where the driver naps. Your example of needing to read a
More ›