iTranslated by AI
Productivity Weekly (2021-01-20 Issue)
Hello. I'm Hirakiba from the Productivity Improvement Team at Cybozu, Inc.
Our Productivity Improvement Team holds an internal meeting every Wednesday called "Productivity Weekly," where we share topics related to improving developer productivity discovered during the week.
This article is a compilation of the topics discussed then.
This is the 10th edition. Past articles can be found here.
news
Support for renaming an existing branch - GitHub Changelog
You can now rename branches directly on GitHub.
You can also rename the default branch. (This may have been created to encourage moving from master to main.)
The aftercare is substantial: even after renaming, pull requests are automatically updated to follow the change, and accesses to the old branch are redirected.
It's great that it addresses the concerns expected after a change.
If you want to rename a branch that has already been pushed or migrate to a main branch, using this feature seems much easier than doing it via the command line.
GitHub Enterprise Server 3.0 is here!
The RC (Release Candidate) version of GitHub Enterprise Server 3.0 has been released. In GHES[1] 3.0, Actions and Packages will become available.
Additionally, it seems you will be able to access GHES via GitHub for Mobile (this is in Beta). However, if your GHES is placed in a location that can only be accessed from the internal network, it might not provide much benefit.
Please note that this is still the RC version, not the official release. I'm looking forward to the official release.
know-how
Minimal safe Bash script template
This article introduces a template for writing Bash scripts.
It includes a trap configuration and a usage skeleton, making it easy to create high-performance and safe Bash scripts.
The meaning and reasons for each setting are also explained, making it useful for studying unfamiliar functions.
Personally, I don't like using Bash scripts much because they are difficult to write and tedious to maintain or improve, but there are many situations where they must be used[2].
This is recommended not only for those who occasionally write Bash scripts and forget how to do so, but also for those who write them frequently.
node_modules/ and Docker volume mount issues and countermeasures
This article discusses the problem where running npm install during docker build and then using volume mounts for development causes the container's node_modules to become empty because the local node_modules is empty, leading to the application not working correctly. It also provides countermeasures.
I haven't encountered this problem myself, but I thought it was a likely scenario when developing using features like VS Code's Remote Containers, where you might want to run npm install during the build.
In fact, it seems a participant in this week's Productivity Weekly shared this because they had trouble with it, so it might be a relatively common issue.
In such cases, this article should be very helpful.
State of JS 2020
This site summarizes survey results related to JavaScript technologies.
It introduces survey results for various items, such as the usage rate of JavaScript features and the usage and awareness rankings of AltScripts.
Each page also has a "Recommended Resources" section that introduces related recommended articles.
It's fun just to look through, and it can be a good reference when you want to use the most famous testing framework, for example.
Also, while writing this, I found an introduction article by Publickey. Since it introduces the main survey results, it might be better to check that article first.
As a side note, State of CSS 2020 was originally introduced as a topic in this week's Productivity Weekly.
Since my knowledge of CSS is limited, I couldn't follow the conversation among participants at all, but then someone told me about State of JS 2020. (I didn't know such a site existed...)
It's interesting to see the trends.
tool
Filters for excluding Stack Overflow machine translation sites
When writing programs, you probably search Google frequently for error messages or how to use libraries.
However, don't you often see search results that are just copy-pasted or translated versions of Stack Overflow content into Japanese or other languages?
This repository provides filters to exclude such noise (machine-translated Stack Overflow sites) from search results.
The exclusion itself uses uBlackList, an extension that allows you to create a blacklist of search results.
uBlackList has a feature to subscribe to blacklists, so the setup is complete once you configure it to subscribe to the URL mentioned in the README.md. It updates periodically, so it follows updates to the blacklist.
If you are troubled by machine-translated Stack Overflow sites appearing in your search results, please refer to this.
goods
Perfect for working from home! Privacy tent to secure a private space, released on January 19th
This is a tent that allows you to concentrate on work without worrying about your surroundings, making it ideal for working from home. It could also be used in labs or offices.
However, it's not soundproof, so if you use it for remote meetings, you'll need to use it in a place where it's okay for your voice to leak out.
The price is relatively low at 7,255 yen (excluding tax), and since it can be folded for storage and portability, I personally thought it was easy to buy and something I'd want.
Rapid charging possible! Released an embedded USB power supply outlet equipped with two USB ports
This item allows you to install a USB power supply port in a box with outlets or switches.
You probably have a panel with outlets or switches on your wall, but if you remove this panel, there is usually a metal fitting called an embedded mounting frame fixed to the wall that can hold up to three switches or other components, allowing you to install up to three outlets or switches.
This USB outlet has two ports, so it requires two or more empty spaces in the mounting frame, but a one-port product is also available, which can be installed if there is at least one empty space. There is also a product with a USB Type-C port.
If you have an embedded mounting frame where it's a convenient place for charging but only has one switch... it might be useful to try installing it there.
However, as a point of caution, installation requires an electrician's license[4].
Afterword
Since there were few topics this week, I added a bonus section.
Personally, the most likely thing to increase productivity was the Minimal safe Bash script template. It seems like it will come in handy when writing Bash scripts.
The Productivity Improvement Team holds meetings to share such topics every week. If you're interested in our Productivity Improvement Team, click the link below!
-
Abbreviation for GitHub Enterprise Server ↩︎
-
Similar sentiments are mentioned at the beginning of the article: > Bash scripts. Almost anyone needs to write one sooner or later. Almost no one says “yeah, I love writing them”. ↩︎
-
In the end, the number of topics increased during the meeting, and we had a lively discussion about CSS, so we didn't end up with a lot of extra time. However, since some people were interested, I introduced them briefly. ↩︎
-
By the way, I have a Second-Class Electrician's License (which allows me to perform electrical work on equipment receiving power at 600 volts or less, such as general residences and shops), so I can install it. ↩︎
Discussion