Sign in

Developer. A bit biased to Laravel, JS and TS. I write about software and life topics. 🇹🇿. Checkout https://whenprogramming.com

Listed and explained

Photo by XPS on Unsplash

1. Auto repair shops will disappear.

2. A petrol/diesel engine has 20,000 individual parts. An electrical motor has twenty. Electric cars are sold with lifetime guarantees and are only repaired by dealers. It takes only 10 minutes to remove and replace an electric motor.

3. Faulty electric motors are not repaired in the dealership but are sent to a regional repair shop that repairs them with robots.

4. Your electric motor malfunction light goes on, so you drive up to what looks like a car wash, and your car is towed through while you have a cup of coffee, and…


“Simple. Lightweight. Powerful as hell”

Photo by Ketut Subiyanto from Pexels

Almost every corner of the world wide web is littered with articles about how good Angular is, how fast ReactJS is or how simple VueJS is. If it’s not a comparison between those three, then it is highly likely that it is praise for how good one of them is.

Then here I find one that has all three great features. It has ReactJS’s simplicity, Angular’s power, and VueJS’s simplicity. It’s none other than Alpine.js.

What is Alpine.js

As explained on their website, “Alpine is a rugged, minimal tool for composing behavior directly in your markup. Think of…


SQL best practices

In SQL, Joins are very powerful. They can allow you to create data that is an aggregate of multiple tables. In modern frameworks, they can even be abstracted by ORMs to make our lives easier as developers. But the idea of having aggregate data can be quite a challenge in some cases, however not many, but it is likely you might face the challenge at some point in some project!

My Argument

Aggregate data, represents a state or a snapshot of your data, at a certain point in time, or at the moment which you are actually fetching the data. Joins combine…


And for us

As kids, we were free, yes, we were limited by the boundaries set by our parents, but we were mentally free. We would spend hours running around laughing for no special reason and cry at the shortest disruption of that moment. We would try to achieve miracles with the toys in our hands, attempting to enact stories that only our imagination was the limit.

In my late twenties, I still have some of the memories from my childhood, although very faintly, I can still recall how it felt to play football with the other kids the whole day, getting very…


How we, writers, can try to use YouTube content aesthetics to improve Medium stories

Photo by Kyle Loftus from Pexels

Both YouTubers and us(Medium writers) are artists! The only difference is the canvas we paint on. Ours is a side of a un-polished rock and YouTubers have a linen canvas to paint on.

I am a very avid consumer of YouTube videos, I could watch up to 5 hours a day. The videos could range from mini-documentaries to tutorials to programming videos to criticism videos. I pretty much watch all kinds of YouTube videos. …


Hint: You Probably Shouldn’t Write It

Photo by Vanessa Garcia from Pexels

There are times when I know I have to write. It has been a month, I haven’t published a single story, stats are dropping rapidly, I have to do something, I have to write something, a story, but I can’t think of any. I research and strive until I get one. I write!

Writing should be an expression of oneself, as an expression of oneself it should not be forced. At least that is what I have come to believe so far. The case can be very different for you and maybe others.

Like most works of art, good writing…


Hint, don’t repeat yourself! — Angular Version

Photo by Alexander Suhorucov from Pexels

After the success and the great reception my previous article had, I decided, I should try to cover the same topic in other front-end frameworks as well. This article will cover Angular.

We are not going to use basic Angular services, instead, we will use ngrx/data DataServices.

What is an NgRx DataService?

I have written a separate article that explains the NgRx Angular package for state management;

But TLDR; NgRx is a state management package for Angular.

State management refers to the management of the state of one or more user interface controls such as text fields, OK buttons, radio buttons, etc. in a graphical…


A brief overview

Photo by Binyamin Mellish from Pexels

In angular design there is no out-of-the-box quick go-to solution for data persistence through routing actions, furthermore persisting data to back-end server through API.

For persistent data across components, modules we can use @ngrx/store. To better descriptively explain why @ngrx/data, first let’s take an example of a CRUD TO DO list application.

The project uses Mock REST API which you can download, then run the mock server, no advanced configuration required.

The process of creating and setting up the project to create the component is not in the context of this article. …


The number of views, claps, and reads someone has earned in an article can be very misleading

I joined Medium as recently as January this year. At first, I was very eccentric about writing, especially programming articles. When I faced errors and then googled them, I would find the best answers in Medium articles. At some point this started to inspire me, to write articles for other people who may need the solutions for problems similar to the ones I faced.

In January, I created a medium account and started writing few articles, as a smart person would do. But I also did one huge mistake, I started reading what I would call “Medium motivation articles”.

How I made $2200+ in 3 months

I…


Lessons from a pro procrastinator

MORE PRODUCTIVITY = MORE SUCCESS

The equation is that simple. In any field, that equation holds, whether you agree or not, or whether accept or you don’t.

Other facts you can’t dare to deny

  • It’s not about how many hours you work
  • It’s not about how smart you are
  • It’s not about what you are trying to do
  • It’s not about who you are

It’s about how productive you are! That simple.

“If you don’t pay appropriate attention to what has your attention, it will take more of your attention than it deserves.” — David Allen

You don’t plan or you fake actions

Or you take a lot of planning instead of doing, something…

John Mwakalinga

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store