Based on my observations,
When I use BEM, I use
の instead of
のalready has a well-defined meaning. It’s one of the first letters learned, so it’s immediately obvious to people who’s learned the tiniest bit of Japanese. There’s no need to explain what
Thanks for the comment!
It was from my experience but I found out that when I use
overflow: auto I also use
-webkit-overflow-scrolling. That one creates the stacking context. I have tested again, and you are right,
overflow doesn’t create a stacking context.
I will remove the claim from the article, since it is not accurate anymore. Thank you!
Yes, that is the point of the article. We lose that visibility, which is very important in my opinion.
The example is quite easy-to-fix because the composition is small. But if a much more complex business logic is composed this way, then all we know is that the user clicked this button, and then, they got the undefined is…
Great article! You beat me to it. At work (Taskworld), we faced the same problem with z-index and ended up with the same rules, however we didn’t get around to sharing them. You did a great job at explaining it in details. :)
I have few things to add:
When we mutate an object directly, we need to make sure that interested parties are aware of this mutation. E.g. if the todo is displayed in the UI, we need to set up change listeners so that the UI gets notified accordingly.
If we treat objects as immutable, however, then we have eliminated that problem entirely. Since…
Good points there!
When I first came up with the equation, I did it all in a paper, trying to solve them until I ended up with the most concise formula. Mathematicians will probably understand that feeling when you finally end up with an elegant equation!
When people asked me to help with problems in their React projects, most of the time, it’s not the problem with React; it’s that they…
บางคอมเม้นต์ในเฟสบุ๊กบอกว่าถ้าเอามาอธิบายในหนังอาจจะไม่เข้าใจกัน มันยากเกิน… จริงๆ ต่อให้ไม่รู้เรื่องเลขฐานเลยก็สามารถเข้าใจได้ครับ สุดท้ายแล้วมันคือการแทนตัวอักษรสองตัวด้วยตัวอักษรตัวเดียวนี่เอง: