Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c_shu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
c_shu
8y ago
when an error occurs in a machine and the machine tries to recover, maybe that's also a form of pain. A machine is not necessarily less sophisticated than any living creature.
2.
▲
by
c_shu
8y ago
Could it be a chance of political corruption even if all source code and data are open?
3.
▲
by
c_shu
9y ago
That's not the kind of torture i meant. Rifle or knife should be acceptable to most people. (This process is simple. Experienced butchers even work fast and clean.) Switzerland law is also about killing the lobster instantly so it'
4.
▲
by
c_shu
9y ago
I agree that we should pay more attention to people that are suffering. But I think the rationale of such laws is somewhat valid. Can you imagine a person who is totally emotionless when torturing an animal but is also very compassionate to
5.
▲
by
c_shu
9y ago
They are not really bad. Reading about them can help you get familiar with how programmers usually name their patterns. But I don't think one needs to study "design patterns" to come up with code using builders, factories, an
6.
▲
by
c_shu
9y ago
It depends on many factors. Choosing suitable tools for a project requires careful consideration. Python is a popular language, but not the only one. So many languages exist for a reason. Of course you can always find justifications to reje
7.
▲
by
c_shu
9y ago
True. jEdit is one of the best editors i have used. Not my default editor but i use it from time to time and install it everywhere.
8.
▲
by
c_shu
9y ago
The same goes for many other icons. Like rss, wifi, and shutdown icon. It makes sense, because once an icon becomes popular reinventing it with another design makes people confused.
9.
▲
by
c_shu
9y ago
kindof, but not always. C++ and C# are powerful complex languages. C and Java are simple languages. But I can find lots of elegant programs in C or Java. They don't make the programs feel complex. Still it depends on the programmer. Pr
10.
▲
by
c_shu
9y ago
It depends on how big the gap between the power of aliens and earthlings is. Some people believe that science advances should progress like explosion, and "Any sufficiently advanced technology is indistinguishable from magic". In
11.
▲
by
c_shu
9y ago
If the aliens are strong enough to land their spaceship on earth, investigating all countries is probably a piece of cake for them. There is no reason for them to tie themselves to a certain country or area. In another case, if they establi
12.
▲
by
c_shu
9y ago
Is the octahedron on the picture supposed to be an alien spaceship? It reminds me of a creature in a certain animation I watched.
13.
▲
by
c_shu
9y ago
Yes, human beings always do what's good for themselves. There is a saying: Never underestimate the power of human wisdom! They would never do negative-sum games or disastrous things like wars, arms races, environmental pollution, vicio
14.
▲
by
c_shu
9y ago
like this one? https://evertpot.com/npm-revoke-breaks-the-build/
15.
▲
by
c_shu
9y ago
1. E-book and products like evernote/google keep. I rarely write things on paper now because I often experience the difficulty of copying/searching. On computers copying/searching is a breeze. 2. VoIP, Skype, WhatsApp, etc. M
16.
▲
by
c_shu
9y ago
Ideologies and violence caused so many disasters in history. At least money does not directly terrify us like that. Billionaires usually became victims of such disasters. In the end, money is not the ultimate power. It's violence that
17.
▲
by
c_shu
9y ago
So you can insert/delete/update records without rewriting the whole file. And you get many other features like transaction, spill cache pages, fflush & fsync behind the scenes.
18.
▲
by
c_shu
9y ago
No. 2.17 MB is NOT enormous. Usually there is no runtime library. In contrast, C or C++ runtime libraries can easily exceed that size. For example, vc_redist.x64.exe is 13.9 MB.
19.
▲
by
c_shu
9y ago
Removing optional tags is recommended here: https://google.github.io/styleguide/htmlcssguide.html
20.
▲
by
c_shu
9y ago
Postgres has better license
21.
▲
by
c_shu
9y ago
Strange. Could it be related to labels as values? https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
22.
▲
by
c_shu
9y ago
it's kindof irrelevant to andrew ng's comments. It's about something like Cyberattacks. Something can be done very soon like tricking spam filters
23.
▲
by
c_shu
9y ago
Scala is too complicated. It reminds me of C++. But C++ is fast. People use it probably when performance is their first priority. For practical reasons I just bear with C++. Use it as necessary. I would rather not bear with another complica
24.
▲
by
c_shu
9y ago
Because each method has its pros and cons. It's a difference of generality and specificity. Consider this list as a ranking: 0 and 1 >> alphabet >> Chinese >> picture. All 4 methods can be useful in some cases. Chines
25.
▲
by
c_shu
10y ago
One of the common nice features in OOP is polymorphism. You have a list/set/collection of objects which are of the same type, but also of different subtypes. They have the same behavior when calling some method and different behav
26.
▲
by
c_shu
10y ago
Boost
27.
▲
by
c_shu
10y ago
Isn't Chrome quite buggy and leaky? (for any user of Chrome.) The same goes for Chromium, right?
28.
▲
by
c_shu
10y ago
You have a point. Some people still write C++03 code because "My code will mostly work fine when I flip flag to C++11 anyway". But I always hope newer standards prevail, and make C++ great again.
29.
▲
by
c_shu
10y ago
Please always use "-std=c++14" when you can. There are a lot of subtle differences between c++11 and c++14.
30.
▲
by
c_shu
10y ago
C++17 (Sigh. I use many languages but learning c++ takes me more time than all the other languages combined.)
More ›