— Journal — 1 min read
I was contracting to RACV Home Emergency as a senior full-stack engineer for about a year.
Technical decisions that caused high codebase maintenance overhead and steep learning curve for newcomers:
How to write a comprehensive system architecture design document
Infra / DevOps
Node.js backend
1# yarn equivalent2yarn install --frozen-lockfile
SQL
1INSERT IGNORE INTO ...2
3INSERT INTO ... ON DUPLICATE KEY4
5START TRANSACTIONS ... COMMIT6
7DELETE/UPDATE ... WHERE ... LIMIT 1 ⭐️
React/React Native frontend
1const TimeContext = createContext({2 now: new Date(),3 updateTimeContext: () => {},4});5
6const TimeProvider = ({ children }) => {7 const FORTY_SECONDS = 40000;8 const [now, setNow] = useState(new Date());9
10 const updateTimeContext = () => setNow(new Date());11 useInterval(updateTimeContext, FORTY_SECONDS);12
13 return (14 <TimeContext.Provider value={{ now, updateTimeContext }}>15 {children}16 </TimeContext.Provider>17 );18};19
20export default TimeProvider;21export { TimeContext };
GraphQL
serverless
1package:2 exclude:3 - '*'4 - '*/**'5 - '!node_modules/**'6 include:7 - package.json8 - 'src/**'9 - '!src/**/__tests__'10 - '!src/**/__mocks__'