-
How To Write Cleaner and Maintainable Code
From Simple To Solid There are many different things that separate great code from a code that “does the job”, from the style guidelines to the maintainability and scalability of the code. In this post, we will work through a task and iteratively improve the code while asking ourselves some key questions that everyone should ask…
-
Python Common Anti-Patterns
It is no secret that Python is one of the most popular programming languages there is.Among JavaScript, Python is the most popular pick for beginner developers as their first programming language. It’s flexible, it has easy syntax, it’s hyped. The combination of Python being flexible, dynamically typed, and that new programmers have an appeal for…
-
Create a Content Aggregator with Python
The need for content aggregators is pretty clear. The internet is filled with endless information and in order for you to stay updated and informed about the latest news or any other type of content, you might be scrolling through various websites every day. Content aggregation helps us optimize our content consumption — instead of scrolling through…
-
Dijkstra’s Most Powerful Lessons
Edsger Wybe Dijkstra was one of the pioneers and one of the most influential members in the field of computer science.Dijkstra had contributed in many domains such as algorithm design, operating system, distributed processing, and the list goes on. If you are a computer science student in the past or present, you probably encountered Dijkstra’s…
-
Unconventional Sorting Algorithms
Sorting is a fundamental necessity in computer programming, but not all sorting algorithms were “created equal”. You probably know that the best complexity for comparison-based sorting is O(NlogN), but today we are going to discuss some revolutionary sorting algorithms that you better avoid using in your own programs. Hold on to your seats, here are…
-
Build And Deploy A Telegram Bot
5 Minutes Project We are going to build a Telegram bot with python and deploy it to Heroku. The bot I am going to build will be able to send random pictures or videos of dogs using dog.ceo API, in less than 50 lines of code! No time to waste, let’s dive in. Your project directory…
-
The Roulette Strategy
Why it will make you go bankrupt, mathematically Wouldn’t it be nice if there was a strategy to guarantee a profit in gambling? Probably not, but I am not here to philosophize about it. So what I am here for?I am here to discover a gambling strategy, and show why it is simply not working…
-
The Birthday Attack – From Probability to Cryptography
Sadly (or not), this article is not going to be on dogs or any real birthdays but I’ll consider this topic for future articles, I promise.Instead, we are going to discuss a cryptographic attack that exploits the math behind the birthday problem, named the ‘Birthday Attack’ which sounds just as much fun. The Birthday Problem The…
-
Prime Numbers – Are There Infinite Primes?
A prime number is a natural number greater than 1 that is not a product of two smaller natural numbers. In this series of articles, I will cover various topics regarding prime numbers, such as Are there infinite prime numbers? why? How can we find prime numbers? Open problems related to primes Are there infinite…