Regular Expressions in a post-ES6 world
- Sticky group
- I don’t use regex a lot, don’t know how much can this feature helps
- Better support of Unicode
- Regex match group with key
- Easier to read the regex
- Lookbehind assertion
- I don’t even know what is lookahead assertion.
Debugging Tips and Tricks
Very useful
- Calling
debugger;
in code will pause the code execution console.dir()
can log and interactive list- Responsive image linter: https://github.com/ausi/respimagelint
- Accessibility extension: https://chrome.google.com/webstore/detail/axe/lhdoppojpmngadmnindnejefpokejbdd
- Dev tips: https://umaar.com/dev-tips/
- Mobile browser console: http://eruda.liriliri.io/
Sealing JavaScript Objects using Object.seal()
Object.seal()
is not making the object immutable, even no new properties can be added, properties can be updated.
We can use Object.freeze()
, but notice the nested object inside is not frozen.
21 May 2018
Don’t need to re-read
Google’s real Kubernetes magic is all about community, not code
When come to real world situation, the team’s average quality is much more important than individual’s. This is an good example. When there is a good community, there will be more resources to help the project. More effective than spending all effort in increasing code quality.
The Partnership Fallacy
We partner up hoping to improve our weaknesses, only to divide labor and so make our weaknesses even worse.
Effective leaders understand how organizations learn, so they avoid the partnership fallacy.
21 May 2018
Re-write the comment to make it better organized
Case studies at the time reported that deadlines kicked in, and pushed the two companies to each stay focused on what they did best
Partnerships are not a substitute for learning by doing.
To learn by partnership
- Should have plenty of time
- Should have long term partnership
以下無需重讀
Release Notes for Safari Technology Preview 27
Unprefixed intrinsic sizing keyword, max-content
, min-content
, but this value does not support in IE. Still cannot be used in production
21 May 2018
Don’t need to re-read
How to Safely Enable WordPress SVG Support
Svg is an XML file, content need to be sanitized to prevent security problems.
21 May 2018
Don’t need to re-read
Releasing Prettier 1.0
好似幾方便,冇學過compiler,唔識implement AST。原來compiler D theory 可以咁apply。
21 May 2018
Prettier have been merged into ESLint
Don’t need to re-read
Between the Lines
Use calc()
with linear interpolation to make smooth responsive design. Very good effect if use with rem
21 May 2018
Don’t need to re-read
Optimising GIFs for the Web
Gif can have larger file size the HTML5 video
21 May 2018
Don’t need to re-read