Based on science, how I made reading a habit and 345-day streak at Duolingo

Image for post
Image for post
Photo by Robina Weermeijer on Unsplash

You’ve probably been asked a question before and your answer was

And that’s because there is already a habit formed, but what is a habit? And when to tell there is a habit involved? And how can you create a new habit and quit a bad one?
Before answering such questions, we need to know why a habit is important, and can anyone develop one?

The importance of a habit

Habits are important since if they are good, they can lift you and make you more productive while keeping modest because you’re doing small increments that you can’t even consider a big deal as it becomes a behavior you’re used to and your brain is programmed to do. …


Comparing the performance of pypolars and pandas

Image for post
Image for post
Photo by shiyang xu on Unsplash

pandas was initially released in 2008 written in Python, Cython, and C. Today, we’re comparing the performance of this well-known library with pypolars, a rising DataFrame library written in Rust. We compare the two while sorting and concatenating a 25Mil-record data and also when joining two CSVs.

Downloading Reddit Usernames data

Let’s first download a CSV file that contains ~26 million reddit usernames from Kaggle: https://www.kaggle.com/colinmorris/reddit-usernames

And let’s form another CSV file that we will use, you can create it with your favorite text editor or through the command line:

$ cat >> fake_users.csv
author,n
x,5
z,7
y,6

Sorting

Now, let’s compare the sorting algorithm of the…


Image for post
Image for post
Photo by Theme Inn on Unsplash

Want to write a technical book or document your project?

Here I’ll walk you through how you can do that with python and sphinx. You can build content of tables that can contain sections to the chapters of your book. I will show you a case study to know how to insert images, hyperlinks, mathematical formulas, syntax highlighting for your favorite programming languages, and more.

Assuming you have some basic knowledge of python, let’s dive in and see what sphinx can do for us.

What is Sphinx?

Sphinx is a documentation generator library which can be useful to generate documentation for your project and can also be used for creating a content (e.g. …


Trends in your hand

Image for post
Image for post
Photo by Morning Brew on Unsplash

Social Analytics companies have been massively using twitter to get insights about whatever data they are interested in for brands, celebrities, etc. and also trending topics. In this tutorial, you’ll know how to get countries that have trends on Twitter and also get insights about what topics are trending the most and be able to retrieve the URL of that tweet and its volume as well.

Here I’ll walk you through how you can do that with Python and Tweepy. You can do many other things with Tweepy other than trending topics but in this tutorial, I will focus on getting trends. …


My notes and review on the book to apply habits that can transform your life

Image for post
Image for post
Source: Amazon

The Power of Habit is a best seller book for the New York Times, Amazon.com, and USA Today; authored by Charles Duhigg and first released in 2012.

This book explores the science of habit and how you can change your life by creating good habits and reforming your bad ones.

On a personal level, I created new good habits while reading this book being consistent in reading a book and learning a language every single day.

What makes this book really valuable is the dependence on 100s of interviews and 1000s of scientific papers and studies to understand how our habits are formed individually being ingrained into our brains and how understanding habits can change organizational perspective and furthermore an entire society. …


Learn the fundamentals of programming by asking questions

Image for post
Image for post
Photo by Jose on Unsplash

What programmers do when they solve a problem is that they convert the logic to questions and then try to find answers to those questions.

We always do these steps in any programming problem:

  1. Convert the business logic to questions
  2. Be able to find answers to these questions in code

This article is for complete beginners in Python and/or Rust, we’ll see a case study and we’ll try to solve the problem involved by asking questions

And will go through each line of each code written in Python and Rust to be able to answer the questions raised.

Let’s do…


Solving a leetcode problem comparing runtime and memory usage

Image for post
Image for post
Photo by Hasan Almasi on Unsplash

When I was coding with Rust to solve this problem, I thought I was dealing with memory so harshly and also thought that time will not be very optimized.

Until I saw this:


Travel and Egypt

Find unusual places, foods, drinks, and people in Egypt

Image for post
Image for post
Shali Fortress and Siwa Overview © 2020 Ezz El Din Abdullah

At the end of last November, I spent the best journey I ever had. I went to Siwa, an oasis in the Western Desert of Egypt.

It’s been an underrated destination for many people (including Egyptians) and full of magical places to visit and relax in.

In this story, I’d like to share some places in Siwa that you can’t see anywhere else for medical tourism and breathtaking views, unusual drinks and foods to have, useful souvenirs to buy, and very generous people to meet.

Salt lakes

Such beautiful clear-color lakes will trigger your eyes and can make your body float on the water because of the high density. You don’t have to be a swimmer 🎉 the water can lift you up and there is no need to worry about drowning even if you dared to! …


Brainwave means a sudden idea, understanding, or inspiration

Image for post
Image for post
Photo Designed by Noureddin

And we believe we have so many ideas that make us think and improve to solidify our understandings and make an impact by which you can be inspired.

Make sure to subscribe to the newsletter for any significant updates.

We currently write on the following topics:

  • Self Help
  • Data Science
  • Problem Solving

Peace and let’s make a brainwave! ✌️


How to develop the habit of reading and the secret in the 3rd component

Image for post
Image for post
Photo by Henrikke Due on Unsplash

Whenever you hear baby steps, it might seem trivial to you but it’s not. Baby steps (aka tiny habits) are super powerful and it’s a way to help people accomplish great things in the long run.

BJ Fogg is the Director of the Stanford Persuasive Technology Lab and a social scientist who is currently a research scientist at Stanford University. In 2009, he published the Fogg Behavior Model (FBM), a model for analyzing and designing human behavior.

BJ explains the behavior model at a TEDx Talk, you can check it out. …

About

Ezz El Din Abdullah

Data Engineer | Subscribe to my newsletter to get fresh content by email on data science, programming, self-help, travel, and more: bit.ly/3mneyrK

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