Readit News logoReadit News
busrf · 5 years ago
This makes me sick, because I could see myself and many people I know doing the same thing, under the right circumstances, without even very much coercion needed, just writing a bit of business logic...

Totalitarianism is sustained by ordinary people looking forward to shipping the feature and having a nice dinner out on the weekend.

q3k · 5 years ago
cirosantilli · 5 years ago
Do we have any proof that this code actually comes from the company in question? E.g. can it be found under https://www.dahuasecurity.com/support/downloadCenter/downloa... ?
cirosantilli · 5 years ago
OK https://www.dahuasecurity.com/support/downloadCenter/softwar... it is inside General_NetSDK_ChnEng_JAVA_Linux64_IS_V3.052.0000001.0.R.200407
nabla9 · 5 years ago
Dahua Technology - Leading Video Surveillance Solutions.
rasz · 5 years ago
I kept reading Dachau and wondering WTF is this.
ars · 5 years ago
Is the constant used anywhere? What does it change?
ddevault · 5 years ago
Code like this doesn't happen unless a programmer sits down and writes it. You have a responsibility to refuse to write code which is morally wrong. This is the cost if you don't: real human lives.
gregoriol · 5 years ago
In China programmers probably can't refuse without very huge consequences for them and their own families.
strogonoff · 5 years ago
There was another time, not long ago, when people justified doing or facilitating vile things against masses of fellow humans as “just following orders”.

Their point is valid—refusing might cost own life, and there's the prisoner's dilemma, etc. A situation like that seems unlikely to be resolved from within a system itself.

However, appeals to consequences aside, in the end each of us has a choice: write that code (slash architect that solution) or not.

Analemma_ · 5 years ago
Unfortunately I doubt fear of reprisal was the motivating factor behind whoever wrote this code.
ddevault · 5 years ago
Perhaps. But I'm appealing to HN readers here, not to China.

Dead Comment

dgentile · 5 years ago
From purely a programming perspective: Have they not heard of enums?
szatkus · 5 years ago
https://twitter.com/q3k/status/1322949727600680962/photo/1

I'm wondering what -1 could mean in that context.

SteveHawk27 · 5 years ago
That comment translates to: "charm value, -1 means invalid, 0 means not recognized, it ranges from 1-100 when detecting, higher the score means more charming."
curiousgal · 5 years ago
This is absolutely disheartening. You would think, seeing how ferociously people attack Holocaust deniers, that we have learned our lesson but it is absolutely not the case.
ars · 5 years ago
"Never again". And here it's happening right in front of our eyes.

And no one can do anything because a war with China would be worse, and because China is not attacking outside its own borders.

There's some quote I can't find about countries that only do atrocities inside their borders are never held to account for them.

Dead Comment

the_resistence · 5 years ago
Never forget.
valbaca · 5 years ago
To help someone else with context:

https://en.m.wikipedia.org/wiki/Uyghurs