Hello there internet stranger, ππ½
This is the 4th installment of the Software Engineering(SE) Log.
Technical Skills
Toolbox π§°
This week, Iβll share a some libraries/ tools I discovered that are helpful:
ts-node --require
flag
ts-node
βtransforms TypeScript into JavaScript, which is executed in Node.js.
A useful flag I discovered is the -r
/ --require
that enables you to execute a file with an export (aka a module):
For example:
// path to file on your computer: /src/hello.ts
export function sayHello() {
return "Hello there";
}
You can execute this file by running:
npx ts-node -r ./src/hello.ts
Reading and writing files with fs-jetpack
fs-jetpack
β is a utility library that makes interacting with the file-system delightful.
This can be the CRUD of files and directories - creating, reading, updating and deleting.
Soft Skills
Consistency
Sometimes β or most times β software engineering gets tough. Tasks may be daunting, issues may be vague, or sometimes getting help/ feedback on a task may take a little longer than expected.
Itβs frustrating. The feeling sucks!
The frustration is part of the learning/ growth process.
There will be days you will crush it!
And sometimes, the simplest of tasks can seem impossible.
What matters the most is showing up and making an attempt to fix and a bug, close an issue, or just give feedback on a project.
A hack that I use to βtrickβ my brain to getting it done is starting with the simplest task to build up some momentum. For example, opening VS Code, starting the app server, and breaking something to try fix it.
Or, take a break. Itβs totally fine.
Iβve discovered that I get most of my eureka moments when I take a walk, Iβm in the shower or lying on the bed β thinking about the finality of death and how life is meaningless and weβre all going to die someday and nothing we do matters.
π‘
Till next week. βπ½