Open in app

Sign In

Write

Sign In

Benjamin Lo
Benjamin Lo

3 Followers

Home

About

Jan 28

Applying “The Three Ways” to Software Engineering

What is “The Three Ways”?

3 min read

Applying “The Three Ways” to Software Engineering
Applying “The Three Ways” to Software Engineering

3 min read


Jan 20

Tackling Shotgun Surgery using The Facade Pattern

In today’s world, we often find ourselves working with legacy code that was written long ago by developers who are no longer on the team. This can be a daunting task, as the code may be difficult to understand and maintain. …

4 min read

Tackling Shotgun Surgery using The Facade Pattern
Tackling Shotgun Surgery using The Facade Pattern

4 min read


Jan 12

Scooping with the Law of Demeter in Python: An analogy of creating readable and maintainable code 🍨

Just like how a scoop of ice cream should only reach into the container it has immediate access to, the Law of Demeter (LoD, also known as the Principle of Least Knowledge) states that an object in your code should only interact with its immediate neighbours. …

2 min read

Scooping with the Law of Demeter in Python: An analogy of creating readable and maintainable code…
Scooping with the Law of Demeter in Python: An analogy of creating readable and maintainable code…

2 min read


Dec 24, 2022

Too many tabs? Time to tab-out-of-control!

Do you ever find yourself with so many tabs open in your web browser that you can barely see the tab titles? If so, you might be suffering from “tab overload”. Tab overload can be a common problem for those who use a web browser like Google Chrome regularly. With…

3 min read

Too many tabs? Time to tab-out-of-control!
Too many tabs? Time to tab-out-of-control!

3 min read


Dec 21, 2022

A basic set up of Apache Kafka with Django 3.1

In this blog post, I will be covering the steps to install and use Kafka in Django 3.1 with the kafka-python library. Also note, that this post assumes you already have a Django project set up so I won’t go into detail on how to do this. …

2 min read

A basic example of setting up Apache Kafka with Django
A basic example of setting up Apache Kafka with Django

2 min read


Jul 11, 2020

GitHub: Unlocking the secret README feature

And making it look more appealing than a boring list of repositories — Did you know that if you create a Github repository with your username you can unlock a secret? Go on, give it a try! You’ll be pleasently surprised with this alert

Github

2 min read

GitHub: Unlocking the secret README feature
GitHub: Unlocking the secret README feature
Github

2 min read


Jul 9, 2020

DRY vs DAMP in unit tests

Looping through endpoints isn’t bad thing …. or is it? — Tl:Dr — DRY for production code, sometimes ok in test code, but DAMP is preferrable. (Disclaimer: Since I use Python 3 & Django on a daily basis i’ll be using snippets from them as examples.) Since last year up until now i’ve been struggling with a concept of DRY coding. In a nutshell, “Do not repeat yourself”. So if you can find stuff that’s pretty…

3 min read

DRY vs DAMP
DRY vs DAMP

3 min read

Benjamin Lo

Benjamin Lo

3 Followers

A Senior Software Engineer with an unquenchable thirst for learning

Following
  • Natan Silnitsky

    Natan Silnitsky

  • Arisa Chelsea

    Arisa Chelsea

  • Node.js

    Node.js

  • Medium

    Medium

  • kudojp

    kudojp

See all (10)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams