Sign in

Programming | Personal Thoughts | Ideas

Easy principles for writing functional, reusable, and clean code

Photo by Engin Akyurt on Unsplash

As software engineers, one important thing we have to keep in mind is the fact that the code we write will be seen by others, who may want to build on what we create. Please, don’t make their life harder than it already is!

If you hope your code will be used and reused as much as possible in the future, with minimal changes needed, you need to write neat code that:

  • Is easy to understand
  • Makes it easy to spot bugs
  • Is comfortable to…


Yes, I kickstarted this career from scratch! While not knowing anything related to the software field before I did

Child staring at the first step of large staircase
Child staring at the first step of large staircase
photo by Jukan Tateisi on Unsplash

Three years ago, I didn’t know anything about the software field. I didn’t know the difference between backend and frontend, server and serverless, software development life cycle, or even anything about the field I am an expert at today. I knew nothing about quality control. I didn’t know it exists; I didn’t even know it is possible to ever earn a living by just testing apps and raising flags when you find a bug.

Yet, today I am a quality assurance engineer, and in this article, I will journal how it all happened.

My Career Before Quality Assurance

Years ago, I was an electrical engineer…


Top Tips I Learned From Clean Code, by Robert C.Martin

Photo by AltumCode on Unsplash

When I was an undergraduate, I wrote many lines of code and programs, the only thing that mattered for me was if the code is running or no. If it runs well, I submit the project then close my laptop feeling awesome. One day I asked one of my instructors to help me with my code to find a bug.

So I started to care about how to clean my code and I read Clean Code by Robert c.martin. …


How Google nudged their employees to make better food choices and lose weight effortlessly

Photo by Total Shape on Unsplash

“I can’t believe this won’t zip.” I thought as I stood in front of the bathroom mirror trying to get my Jeans to zip. They fit fine just a month or two ago. I stare at my reflection and think “How did I get here?”

I know I haven’t been paying a lot of attention to what I eat lately and I’ve put on quite a few pounds since Quarantine began, I think we all did.

It made me think back to something a friend told me a long time ago back in college that computer engineers, programmers, and other…


Let’s compare gradient descent, KNN, decision tree, and random forest algorithms

computer screen showing dense streams of data
computer screen showing dense streams of data
Photo by Markus Spiske on Unsplash

At the beginning of my machine learning journey, I had lots of doubts about what models I should use for each data set I worked on. If I had created some insights about the best use case for each model, it would have been easier. Although in the machine learning field it is all about trying different models over and over to find the best fit for your data and target, it would also be great to lessen the options, especially as a beginner.

In this article, we will be comparing the basic supervised learning techniques for a regression problem…


I survived the manager from hell and saved my mental health

Male sitting on couch, frustrated
Male sitting on couch, frustrated
Photo by Nik Shuliahin on Unsplash

I work as a software engineer for one of the considerably big tech companies. The company, like many others, keeps advertising itself by how they value their employees and how they go above and beyond with their management to be considerable and supportive. What happened with me over the last year was anything but.

After a year and a half with the company, I moved to a new team. The team consisted of two seniors, with 15 and 8 years of experience, and a manager who joined them two years before I did. …


A programmer’s life can be stressful — here’s how to deal with it

Photo by Luis Villasmil on Unsplash

“Is a programmer’s life stressful?” My sister asked me when she was trying to decide what to do after she finished her schooling.

I flashed back to the many nights I spent swimming in coffee, stress eating, and literally pulling my hair out. If she had asked me then, no doubt about it, my answer would have been, “yes, it’s hell on earth.” But with several years of experience under my belt now, my answer now is, “well, it depends.”

Whether you’re considering programming as a career, or you’re already burning the midnight oil trying to break into the field…


Where is the million?

Photo by Eugene Mykulyak on Unsplash

James looked at his clock, “oh, I’m late already” he said. The time was not that late actually, it’s still 7:00 AM, but he wanted to be at his destination by 09:00. The destination is about 2 hours driving, his bag is ready, he packed it the night before, he went out, opened his car, and started his trip.

James loves adventures, today he decided to go to a nearby desert to do some exploring. Little did he know that this trip would change his life forever.

He almost arrived at the planned time, just a couple of minutes late…


By Beatrix Potter (Public Domain Picture Book)

One morning a little rabbit sat on a bank.

He pricked his ears and listened to the trit-trot, trit-trot of a pony.

A gig was coming along the road; it was driven by Mr. McGregor, and beside him sat Mrs. McGregor in her best bonnet.


By Beatrix Potter (Public Domain Picture Book)

Once upon a time there were four little Rabbits, and their names were —

Flopsy,
Mopsy,
Cotton-tail,
and Peter.

They lived with their Mother in a sand-bank, underneath the root of a very big fir-tree.

Salam 🌿

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