#Software-Development

How to use local images in Hugo

Since Hugo will create a new directory for each of your post, it’s a bit complicated to properly reference your local images.

Continue ...

Go: Slice of Values vs. Slice of Pointers

Have you ever wonder when to use *[]struct and when to use []*struct when developing in Go? Look no further! I’ll explain everything you need to know about this topic in this post.

Continue ...

Why you need to write unit tests

Before I started my 3rd internship, I have no idea what unit test is, and why is it relevant. But after I’m forced to write unit tests for half a year, I realize how important it is. Apart from making sure your functions do exactly what they’re intended to do, unit tests also provide the following benefits:

Continue ...

How to sniff packets from wireless networks

To see the full information of the packets, you’ll have to connect to an unencrypted network.

There are multiple methods of achieving this, but not all works unfortunately.

Continue ...