Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mantap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
mantap
6y ago
Not sure I agree that there is some logical reason why Node.firstChild should be null for an empty element whereas e.g. array[0] should be undefined for an empty array. I think the actual reason is just that DOM is an old API. If designed t
122.
▲
by
mantap
6y ago
In conventional JS, undefined is used for both and null is just a curiosity. JS does make a distinction between a non-existent field and a field containing undefined as a value. Is there anywhere where the JS standard library uses null? I
123.
▲
by
mantap
6y ago
Yes the problem is giving the impression of a formal process and all that entails (i.e. fairness). If you want an informal process then the code of conduct should be informal: "Be nice, don't be a jerk".
124.
▲
by
mantap
6y ago
I've also been accused of faking things that I definitely did do myself, sometimes I find myself unconsciously playing down accomplishments so as to not to be accused of fakery. What you can keep in mind is that there are very large am
125.
▲
by
mantap
6y ago
Although a large proportion of the world's population live in urban areas, the absolute number of people who don't is still billions of people.
126.
▲
by
mantap
6y ago
Do you think that fake news websites (websites that intentionally post falsehoods to drive traffic) should be allowed to post on social media with impunity? How is that workable? Many people cannot distinguish fake news from legitimate sour
127.
▲
by
mantap
6y ago
It seems that COVID-19 is often passed at superspreading events. If the vaccine could nevertheless prevent people from superspreading then it might still have a substantial effect.
128.
▲
by
mantap
6y ago
I'm not convinced. Our brains are well know for their plasticity. Our musculoskeletal and circulatory systems: not so much. The brain is capable of rewiring itself after some quite traumatic injuries, of course the people who go throug
129.
▲
by
mantap
6y ago
Your memory is like a muscle. Most people don't use their memory very much in their daily lives and so their ability to remember things atrophies. You need to exercise it regularly. Memory is also a skill. People have all kinds of tech
130.
▲
by
mantap
6y ago
All of these could be circumvented though. For instance, you are given X and have to spend it by the end of the month. So you sell your X to someone who does want to spend money and they give you something in return (e.g. cryptocurrency) th
131.
▲
by
mantap
6y ago
It's quite unnecessary to call people names, and also unwise, people might be tempted to mentally substitute the second person pronoun with a first person one.
132.
▲
by
mantap
6y ago
It can only hoist the length out of a for loop if it can prove that the length doesn't change, i.e. the array isn't modified. Otherwise it does have to check it each iteration. This is pretty hard in general since any time you cal
133.
▲
by
mantap
6y ago
I was "unschooled" for some years. I was near the top of my class at school (not because I was smart, just because I paid attention and worked hard), and hence my teachers gave up on me. Expending time on a kid who is likely to ge
134.
▲
by
mantap
6y ago
I believe their point is that we should all call out political campaigning by corporations even if it is for a cause we agree with. Because it is a grave threat to democracy to have trillion dollar entities running campaigns of any sort.
135.
▲
by
mantap
6y ago
Also retail businesses in SEA tend to employ more workers than would be considered necessary in the west. e.g. hiring far more shop assistants than they need. If your labour costs are a small fraction of your overall costs then you have an
136.
▲
by
mantap
6y ago
Honestly modern JS has far fewer "wat" moments than most languages, modern javascript is incredibly well designed. And JavaScript does have integers now. Nowadays it feels like the opposite, the committee takes so long to dot the
137.
▲
by
mantap
6y ago
Especially so. Don't drop down to their level.
138.
▲
by
mantap
6y ago
The same reason that Apple shipped broken keyboards with MacBooks for years. Because Tim Cook is not a product person. He is an operations person. Adding a fingerprint sensor is good for the product but bad for operations. Who do you think
139.
▲
by
mantap
6y ago
Adding a fingerprint scanner doesn't affect every component in the phone. It doesn't affect the display, CPU, dimensions or anything with a long lead time. It affects the power button. Apple had well enough time to add it.
140.
▲
by
mantap
6y ago
I honestly feel a bit insulted that Apple is releasing a phone without Touch ID during COVID-19. They think I will gladly hand over large amounts of money for a phone that is highly inconvenient to unlock. When it became clear that people a
141.
▲
by
mantap
6y ago
What if you don't use the snap-on wallet. Will the magnet in this thing strip your cards in your normal wallet?
142.
▲
by
mantap
6y ago
Separating YouTube from google would kill it unless it went to another mega tech company like amazon or Microsoft.
143.
▲
by
mantap
6y ago
I don't agree that the steps of an implementation are copyrightable. Different versions of an algorithm are different algorithms. One merge sort algorithm may perform much better than another despite both being merge sort and having th
144.
▲
by
mantap
6y ago
Isn't that exactly what the article is saying about the justices worrying it could "undermine copyright of computer programs"? What is the difference between an API (interface) and implementation? The algorithm. And algorithm
145.
▲
by
mantap
6y ago
If I take a book, say Harry Potter, and use a thesaurus to change words to their synonyms in the hopes of avoiding copyright, no court is going to agree that I can now publish Barry Otter and the Association of the Eagle as my own creat
146.
▲
by
mantap
6y ago
You don't just dynamically link a library. You link it and then use its API , it's precisely the using of the API that creates the derivative work (if you accept FSF's position). I don't see how e.g. calling dlopen() on
147.
▲
by
mantap
6y ago
> If Oracle ultimately wins, it seems like millions of programmers will have to reach for a thesaurus to find synonyms to name functions. We'll have to waste brain cycles coming up and alternative spellings of methods to stay away f
148.
▲
by
mantap
6y ago
In language learning there's something called the "Input hypothesis" which states that we learn languages primarily by reading and listening (consuming input), rather than production of language. The reasoning is that when yo
149.
▲
by
mantap
6y ago
One wonders why Excel doesn't store data as strings (or equivalent lossless format) and process it as numbers like SQLite does for instance.
150.
▲
by
mantap
6y ago
As I remember it, what happened on Digg was that there was a kind of friendly rivalry between Reddit and Digg. So everybody on Digg was already aware of Reddit. Then when the redesign hit, a meme spread that "This redesign sucks, try r
More ›