Hacker Newsnew | past | comments | ask | show | jobs | submit | XeO3's commentslogin

Apart from these applications of XOR, a favourite one is using Bitwise AND to find Even/Odd numbers.


I adore "The Secret World of Arrietty" and "When Marnie Was There". I hope Hiromasa Yonebayashi gets to direct more of Ghibli's movies.


Yep. One thing I noticed that how intuitive it was to implement setInterval in class. However, in hooks, you probably need a guide for that.

https://overreacted.io/making-setinterval-declarative-with-r...


Google has it too. :) https://www.google.com/teapot


I didn't realize that this is actually interactive!


Yeah, that element should be 'textarea' instead of 'div' or at least the 'contenteditable' should be true.


https://www.sharedrop.io/ as well. It's open sourced, too.


This doesn’t seem to work on iOS Safari.


Balrog is missing. Not sure, if it's its own race or belongs to demon category.


The Balrogs (Sindarin for ‘Demon of Might’; Quenya Valarauko) were Maiar (“Ainur of lesser degree than the Valar”). Other Maiar were Gandalf, Sauron, Melian. Gothmog and “Durin’s Bane” are the only two named.

Basically bad Maiar.


Balrogs would be under the Maiar category, but most have no recorded name. I suppose the one from the trilogy could have been listed as "Durin's Bane."


gothmog, lord of balrogs? not in lotr though.


The Balrogs were Maiar, a category that includes the wizards (Gandalf, Saruman, etc.) and Sauron. The Balrog Gothmog is there, but not the one that appears in the Fellowship of the Ring, possibly because it isn't given a name.


"JavaScript: The Definitive Guide" does go deeper, with thorough examples in all the topics mentioned in the index. It also provides examples of static types using Flow instead of TypeScript.


It is mentioned in the exception list of structuredClone.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...


> In general, if a statement begins with (, [, /, +, or -, there is a chance that it could be interpreted as a continuation of the statement before, if semicolon isn`t provided.

While /, +, and - are rare in the beginning of the statement, ( and [ aren't.


That list is missing ` from ES2015+ template literals.

I enjoy teaching this to junior developers as the "winky frown rule" because that is a silly name that sticks in your memory and does help you remember it. Lines that start with an emoticon frown must wink:

    ;(    ;[    ;`


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: