Image for post
Image for post
Photo by Fabrizio Verrecchia on Unsplash

Python is the programming language that has skyrocketed in popularity in the past few years; however, it has a reputation (and rightfully so) for being slow. Although Python takes longer to run, it is often acclaimed for its intuitiveness and extensive range of packages, which makes it an ideal candidate for many developers’ projects.

I’ve written this article to shed light on a few of the many ways I’ve seen developers improve their Python code’s speed through subtle micro-optimizations.

1 | Cache Methods

Yes, it may seem rather obvious, but remember every microsecond counts(truthfully, your difference in timing will be smaller than a microsecond)…


Image for post
Image for post
Photo by Jason Briscoe on Unsplash

Not long ago, I wrote an article about how I created a Robinhood trading bot, but I realize that not everyone needs such a simple, one-dimensional approach to stock trading. Many people have far better stock market knowledge than me and programming skills, so for individuals who find themselves interested in creating extra money with the epitome of passive income, I would suggest learning how to trade stocks algorithmically.


Image for post
Image for post
Photo by Chris Liverani on Unsplash

2020 has been a crazy year, to say the least, but I’m optimistic about what the future has in store for us in terms of technological innovation. The items on this list are broken into 5 broad categories:

If you had to learn one programming language in 2021 …

Quantum Computing?

Artificial Intelligence & TensorFlow 2.0

Edge — Fog — Cloud (EFC is Key)

Hybrid App Development: Reacting and Fluttering

Although these concepts may seem scattered, I believe they are the most integral components of our tech-centric future.

1 | If you had to learn one programming language in 2021, it should be Python

This might have been a no-brainer to some of you reading this…


Image for post
Image for post

As promised, let’s dive right into it.

1| Use the macOS App Alfred *Disclaimer Mac Users Only*

Alfred is a well-known tool in the productivity space, and it’s a useful app that could save you tons of time in the long run. For example, suppose you’re constantly digging through three layers of folders and then two more subfolders to arrive at a small text file with a couple of Python functions. It seems a bit inefficient, right?

Instead, just download the free version of Alfred (because the app is freemium) and set up a few shortcuts commands, so it does the file searching and basic computer maneuvering tasks for you…


Image for post
Image for post
Photo by Ryoji Iwata on Unsplash

There are so many algorithms that govern the way our society works. Many people do not see them because they are seamlessly blended into our lives. After recently reading Algorithms to Live By by Brian Christian and Tom Griffiths, I did a deep dive into the world of algorithms and made a list of some I believe are absolutely integral to our society — some that you may even use every day without knowing it. This will be a simple list of algorithms that bleed their way into all the most important aspects of society.

Overview:

1. A* and Dijkstra’s Shortest…


Go Mobile or Go Home

Image for post
Image for post
Photo by Hunters Race on Unsplash

Apps have become a prevalent part of a user’s experience with a company for over the past decade. When I look at a company’s app it tells me a lot about how serious they are about building a brand. Everything from the UI to the form submission buttons all drop breadcrumbs about the type of business that they are.

But more importantly, when a company doesn’t even have an app in this day and age, they’re setting themselves up for failure. Any business that fails to adapt to the current standards of the hyper-competitive marketplace seems to fall by the…


Image for post
Image for post
Photo by Olav Ahrens Røtne on Unsplash

The best solution to solve any of your problems is to quantify. It’s that simple just quantify, observe, and then make the according changes.

Well if it’s so easy why doesn’t everyone do it well there are a few key reasons that I will address but for now let’s understand why quantifying is so powerful.

Combats the Curse of Abstraction — too many times in our lives when we try and solve a problem we don’t even where to start. This leads to procrastination which leads to frustration and we get stuck in the vicious cycle. I attribute this problem…


Give Your Code The Boost It Needs

Image for post
Image for post
Photo by Marc-Olivier Jodoin on Unsplash

We all know when it comes to the speed department Python is a much slower language that Java or C. Python is a dynamically-typed language meaning its variable types are not predefined, although, this is a double-edged sword as being dynamically-typed is what makes Python such an elegant language.

So Python is a slower language to run, but faster to type.

Let’s look at some minor tips that could have a major impact on your overall code performance in the long run.

So Python is a slower language to run, but faster to type.

Let’s look at some minor tips…


Image for post
Image for post

Have you ever wondered how does a company know when they’re receiving too much data? How do draw the line between a lot and too much?

Well, that is what Anomaly Detection tries to solve. Anomaly Detection is using a statistical approach to find outliers (or “spikes” in time series data) that deviate from what we would expect.

Anomaly detection is an extremely important aspect of today’s finance & economy sector as companies want to analyze how their data is being consumed and where they may have a problem or a potential avenue for growth.


Image for post
Image for post

6147. That chances of randomly arriving at that number 1/10,000 if you took 4 slots and began injecting random numbers in them. On the surface what can you say about 6147, that it’s divisible by 3 or that it’s an odd number?

Well, 6147 was dubbed Kaprekar’s Constant in 1949 and it has a unique property in relation to nearly any other 4-digit number. This property is known as Kaperekar’s Routine.

Suppose you have a 4-digit number (with at least 2 different digits) you can perform Kaprekar’s routine.

Choosing 7238 as our test subject, I guarantee you within 7 iterations…

Adarsh Bulusu

Innovation Enthusiast.

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