DEV Community

Cover image for SE Internship Log[3]
Ruheni Alex
Ruheni Alex

Posted on • Edited on • Originally published at ruheni.dev

SE Internship Log[3]

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 I found helpful:

ts-node --require flag

ts-nodetransforms 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"
}
Enter fullscreen mode Exit fullscreen mode

You can execute this file by running:

npx ts-node -r ./src/hello.ts
Enter fullscreen mode Exit fullscreen mode

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. ✌🏽

Top comments (0)