View NewMacGuidelines.md
New Mac Guidelines
Setup
- Install Dropbox
- Used for syncing configs between several computers
- Make available offline
- Finder > Dropbox > Settings
- Install VS Code and VS Code Insiders
- Turn on Settings Sync for VS Code
View date-fns-issues.md
Moment.js is deprecated and
date-fns
issues
Moment.js is deprecated and Synopsis
Moment.js is now considered a legacy project (see Moment.js Project Status).
Here's a comparison between the alternatives:
View Importing Modules Setup.md
Import Aliases Setup
In an effort to keep import
statements clean and easy to work with, we use import aliases.
For example (anywhere in the app tree):
import { network } from 'lib/network';
import { colors } from 'styles/theme';
import useThrottledEvent from 'hooks/useThrottledEvent';
View Bug.md
SourceTree bug
Filtering branches in the sidebar doesn't work for branch names with a slash
Before Filtering
After filtering
View Default vs Named Exports.md
Default vs. Named Exports
Named Exports Benefits
- Find Usages/Find References - Easier to search for the export across the project. Less likely to have been renamed or misspelled
- Easier refactoring of the exported name
- No need to think of a variable name. Sometimes it's unclear from the file name, especially if it's
../index.js
- Choosing a named export with IntelliSense autocomplete is faster than writing your own variable. Also prevents spelling mistakes
- If we only had named exports, it would be easier for new developers to learn how to use it, as there is no extra logical step of choosing which type of import or export to use
View Node-version-managers.md
Node Version Managers
I tried nvm many years ago and it had several issues that I remember:
- Setup was not as simple compared to n at the time
- It was quite slow moving from one Node version to another
- Couldn't automatically switch the Node version when entering a folder (now they cover that)
- In the past I used avn for that, but it was slow as well
- Global packages were lost when moving from one Node version to another
- Tbh, fnm has the same issue now, hopefully they'll add support for it soon
NewerOlder