Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsfuoi
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
dsfuoi
10y ago
programmers use int to index over arrays in for loops without writing asserts. That is in fact a problem with the language. Ok let me get this clear, you're saying that the language is at fault because the programmers don't wri
2.
▲
by
dsfuoi
10y ago
If the loops can be written and the programmers don't write them, the problem is with the language!? No, it's pretty clear where the problem is with C, programmers.
3.
▲
by
dsfuoi
10y ago
It looks easy but it isn't. The second example causes unexpected behavior (and probably ub later) if: min + step > MIN_TYPE_MAX The last example causes undefined behavior if: max - min < step - 1.
4.
▲
by
dsfuoi
10y ago
It's just one line. Put this before the loop if the code logically shouldn't trigger this. assert( B < B_TYPE_MAX - 4 ); Or use an if statement if it could trigger at runtime. Also the code is clearer on intent.
5.
▲
by
dsfuoi
10y ago
In terms of sociologic development the middle-eastern countries are considered backwards with their stone-age laws, ingrained religion, and treating women like lesser beings, and yet we may soon be wearing 'burka' like clothing to
6.
▲
by
dsfuoi
10y ago
For the scramble suit to work, publicly available 'mixing' stations would have to be available, which would work like a black box, you could only surveil input and output. And exits from your house would have to somehow be connect
7.
▲
by
dsfuoi
10y ago
Maybe we are the primitive ones.
8.
▲
by
dsfuoi
10y ago
Correct me if I'm wrong, but in this scale model, I think the part of the building marked with a black rectangle (upper left) is what is currently being built. https://www.bloomberg.com/features/2016-inside-tesla-g
9.
▲
by
dsfuoi
10y ago
It certainly could be, but I think most mistakes are made because of how the process is 'designed'; sometimes an incorrect molecule jiggles (literaly) into a place where it is improbable that it should.
10.
▲
by
dsfuoi
10y ago
So only about 4Gs? I somehow though it would be more and unsurvivable for humans.
11.
▲
by
dsfuoi
10y ago
I would say that ionizing radiation isn't the cause of most genetic mutations. It is just too rare and most of it doesn't penetrate the skin anyway, the rest has to be really lucky to hit the cell in the right place at the right t
12.
▲
by
dsfuoi
10y ago
I still haven't seen anyone write what those fraudulent acts are exactly. Since Craig Wright (let's not call him what he isn't) apparently has several companies, these should be some clue about that?
13.
▲
by
dsfuoi
10y ago
It feels like a rage quit. Completely frustrated when you simply cannot win, there is only one option remaining. Anger and self-pity.
14.
▲
by
dsfuoi
10y ago
You don't know if he is a sad, broken man. There is no evidence to believe the post reflects upon his real emotions, and since the man is untrustworthy[0], the post cannot be taken as evidence about his emotional state. [0]:Whether he
15.
▲
by
dsfuoi
10y ago
Replay at 16x speed if you're busy: https://youtu.be/89AIsPTCJLs?t=10m35s
16.
▲
by
dsfuoi
10y ago
That is a promo. Here is an actual simulation: https://www.youtube.com/watch?v=89AIsPTCJLs
17.
▲
by
dsfuoi
10y ago
So, will I have to login into something to read the docs now?
18.
▲
by
dsfuoi
10y ago
Running an ICE car in a garage will harm you (and kill you pretty quickly), running an electric car will heal you. It sounds cheesy but it true.
19.
▲
by
dsfuoi
10y ago
Choose carefully, one of those deploys the ejection seat.
20.
▲
by
dsfuoi
10y ago
I agree. The problem is that those single character names get abused and you end up with code that consists only of them, including the function arguments, which is the worst.
21.
▲
by
dsfuoi
10y ago
The 'style' even leaked out to file naming: a.c, ab.c, af.c, am.c, c.c, ca.c, cc.c, cd.c, cf.c, ... Brilliant! I doubt that this is either serious (unobfuscated) or handwritten code though.
22.
▲
by
dsfuoi
10y ago
I agree, and I have calculated this a while ago this based on average number of lines a programmer writes in 8 hours. I don't have the actual numbers but unless you type slower than ~30 words per minute, speed it isn't a bottlenec
23.
▲
by
dsfuoi
10y ago
Why are you learning it?
24.
▲
by
dsfuoi
10y ago
Fabien is hinting at the confusion: sizeof(&array[0]) != sizeof(array) &array[0] and array decay to the same thing, the pointer to the first element if they are used in an expression. But sizeof gives a different result, because arr
25.
▲
by
dsfuoi
10y ago
I think the style should be avoided; code shouldn't be compact and variable names should be descriptive. Artificial example: for( int i = 0 ; i < c+j ; i += b ) should be: for( int count = 0 ; count < sum+extra ; c
26.
▲
by
dsfuoi
10y ago
This is the first time I have seen sizeof used like this: sizeof( &array[0] ) This looks equal to: sizeof( array ) at first glance, which would give the size of the entire array in bytes, but of course the &array[0] ex
27.
▲
by
dsfuoi
10y ago
Yay, renewal!
28.
▲
by
dsfuoi
10y ago
The key was printed using a font that was too small to be readable by any means.
29.
▲
by
dsfuoi
10y ago
Some of the examples on the comic page starting with: Huxley feared we would become a trivial culture, preoccupied with some equivalent of the feelies... , are not chosen well. I think the opposite of a trivial culture is a culture of s
30.
▲
by
dsfuoi
10y ago
Actor's forced Snowden deep voice is hilarious. He's trying so hard, and yet it sounds like a 12 year old trying to sound older. Also expect at least two forced action/drama scenes that never happened. They are staging the H
More ›