今日推荐开源项目：《Google boardgame.io》GitHub 地址
编辑评论 : 就个人而言，这使得游戏维护以及调试变得简单（维护之前没有的bug的时候）。会极大地提高生产效率。针对游戏里面的一些小范围改动，比游戏开发者自己去写代码修改更快，更直接。可以减少代码量，使用现成的框架，可以实现丰富的功能。
今日推荐英文原文：《Calling all web developers: here’s why you should be using Firefox》作者：Ibrahim Nergiz
推荐理由：这是一个来自 Web 开发者的建议，他建议和呼吁所有的 Web 开发者应该使用 Firefox，为什么他这么建议？听听他给的原因和里有。
Calling all web developers: here’s why you should be using Firefox
I don’t know how old you are; but, as someone who was born in the late 80s, I remember the rise — and fall — of Firefox well.
Firefox emerged as an open source competitor to Internet Explorer 6. It was awesome because it had options: for instance, users could add features with various extensions and change visual themes. Everyone loved it.
A few years later, however, another player entered the ring. It was called — you guessed it — Chrome. Take up of Chrome skyrocketed, quickly surpassing its competitors. In fact, Chrome has been used by so many people, in such a short period of time, that it’s become one of Google’s most valuable assetsever. I’m sure many of you are using it to read this right now.
But let’s back up for a minute. As a developer, I know how hard it can be to please users.
And with the development of increasingly complex web technologies, applications and software in general, problems with high RAM and CPU usage are beginning to emerge.
Deniz, from the JotForm developer team, recently remarked:
“I have a computer with the latest configuration of the Macbook Pro. When developing (while Chrome DevTools is open), the battery drains too fast.”
And, if you’re a developer too, I’m sure you’ve made similar comments yourself — or heard them from people around you.
You might have even — gasp — thought about going further and switching to a browser that isn’t Chrome.
And that, my friends, is where the new-and-improved Firefox comes in: Firefox Quantum.
In 2017, Quantum launched for Android, Linux, iOS, Mac and Windows users — over a decade after Mozilla released the iconic first edition of Firefox.
As well having a beautifully modern new look, it’s rumoured to load websites twice as fast as Firefox 6 was able to — while using 30% less memory than Chrome.
After 10 years in the game, Mozilla has had to figure out new ways to differentiate Firefox from its competitors without losing its power. No small feat.
And it’s paid off.
In my opinion, Firefox Quantum has a superior performance compared to other browsers.
Running large, flashy or complex applications online is many a developer’s dream. Plus, with the recent rise of technologies such as photo and video editing, 3D game editing, and VR/AR, online users’ expectations have increased considerably.
WebAssembly is a new type of code that can be run in modern web browsers – it is a low-level assembly-like language…developer.mozilla.org
Towards the end of 2017, it became possible to run Unity and Unreal game engines on Firefox. And now, the other major scanners have given their support, too.
A-Frame and WebVR
One of the biggest recent innovations is Virtual Reality — VR for short. And with mobile phones, browsers, and products like the Oculus Rift and HTC Vive, great progress continues to be made.
Mozilla has played a huge role in the development of the WebVR infrastructure, but has also worked hard to enhance it with their new web browser. Thanks to A-Frame (supported by Mozilla), an excellent framework for using WebVR has already been made available to us.
A web framework for building virtual reality experiences. Make WebVR with HTML and Entity-Component. Works on Vive…aframe.io
Project Common Voice
Apple Siri, Microsoft Cortana, Amazon Echo, and Google Home all adopt a proprietary/closed wall approach to the speech recognition technology that underlies the ability of these products to respond to spoken commands.
And guess what? Mozilla has now launched Common Voice, an open source initiative to make voice recognition available to everyone.
Common Voice is a project to help make voice recognition open to everyone. Now you can donate your voice to help us…voice.mozilla.org
Anyone can contribute to Common Voice by reading sentences aloud and teaching cues to the machine. You can also verify common voice transcriptions to make sure that the recognition engine is on the right track.
Learn about CSS Grid Layout, Firefox Debugger, and more with the Firefox DevTools playground.mozilladevelopers.github.io
Following the changes in Firefox that I mentioned above, you won’t be surprised to hear that lots of improvements have been made to DevTools. Debugger.html is one of them. The best part? Debugger.html is an open-source project hosted on GitHub, so anyone can contribute to its development.
Now, let’s examine the new features of debugger.html one by one.
General — Inspect Tool
The new developer tool comes with three different theme options: dark, clear and Firebug. The much-loved Firebug tool is still used by many people, even though active development has ceased.
There’s even a separate blog post to compare color usage: In-depth blog postat Firefox Nightly News.
One of the latest innovations in CSS is CSS Grid Layout. With DevTools, you can see your “display: grid” featured elements. You can also easily turn on or off features such as line numbers, area names, or extend lines infinitely.
For more information visit: https://hacks.mozilla.org/2017/06/new-css-grid-layout-panel-in-firefox-nightly/
Margin and padding values in elements can sometimes become puzzles. With the box model structure, you can easily see — and change — how much space is occupied by properties such as margin, padding, and border.
For more information visit: https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Box_model
Another CSS innovation is the introduction of variables. While not all browsers support variables yet, their use will undoubtedly increase over time. As the name implies, you can assign any value to a variable. Want to check what the value is? Simply hover your mouse over it.
For more information visit: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
By pressing the .cls button on the right side of the DevTools dashboard, you can easily add and remove CSS classes of the HTML element you are inspecting.
When you press the button next to the .cls key on the right side, you can easily test the hover, active, and focus states of the current element.
When you inspect an element, you can also see which font is used in that element, and how it has been added.
Animations are another popular development. In my story ‘How to use CSS animations like a pro’, I wrote a short introduction to animation. You can play the animations slowly or keep track of how they are moving.
Any fellow developers out there will have heard the term ‘web scraping’. If you want to use a scraper to pull some content out of a web page, you can easily get the location of the element on the page via XPath. You can see what I mean in the GIF above.
When we move to the console section, you can easily examine the objects. Plus, the tree structure key makes it easy to select objects and stop them disappearing.
Did you know that you can make events more organized and legible with console.group () and groupCollapsed ()?
Function Search — Project Search
One of the best ways to uncover our mistakes is to be able to search for them in our many files.
In this editor you can see everything you’ve written for CSS, such as your use of breakpoints.
To ensure that our pages are rendered quickly and smoothly, particularly when animation is involved, the 60 fps rule should not be forgotten. With this, you can track how long each frame takes to display itself.
You can use this section specifically for performance: observing the status of the files, how long it takes them to upload, and whether or not they can be loaded successfully.
This section gives you the opportunity to inspect, edit, add or delete this information.
The business models of big companies depend on users shifting from third party products to their own proprietary offerings in order to keep consumers locked into their own software ecosystem.
For example, if you want to watch an Apple Keynote presentation on the web, you can only open the page with Safari. If you want to switch from iOS to Android, you’ll have to say goodbye to iMessage.
But Mozilla Firefox is not part of a proprietary ‘walled garden’. That’s why changing your browser to Firefox is way easier than doing the things mentioned above.
Yes, I know it’s still hard to make the move. You have to change habits, shortcuts, browser extensions and saved passwords. But I promise, it’s worth it.
Give Firefox another chance.
I have good news for those who read through the end of the article. We have the ability to manage the notifications that we get tired of seeing everywhere.