Sign in

A gentle introduction to hash functions from scratch, should you go with the easy or the hard way?

Python data science hash functions
Python data science hash functions
Photo by Chris Ried on Unsplash

The Hard Way (Using array as the back-end bone):

A hash function is any function that can be used to map data of arbitrary size to data of fixed size. One use is a data structure called a hash table, widely used in computer software for rapid data lookup. Hash functions accelerate table or database lookup by detecting duplicated records in a large file.

In English: a hash function take an input, process it and then return a hashed output, this hashed output will be used as a reference to that value if you want to access it, this process will help you to retrieve data faster according to…


Like lists comprehensions and lambda functions python one line codes can save a lot of time and space so how you can master them?

python data science
python data science
Photo by Fotis Fotopoulos on Unsplash

Probably you have seen one line code that can replace entire 3 lines code in python for example a for loop, maybe this is why python is so popular and easy to use but what is this for loop one line code that can replace a 3 lines code?

Let’s take an example:

some_list = []
for i in range(10):
some_list.append(i)

Just easy and simple for loop in python that append numbers in list, so what…


What choice will you go with? Learn how to build a website from scratch or just use CMS platforms like WordPress, Wix … ? What is best in 2020?

web development wordpress wix
web development wordpress wix
Photo by Clément H on Unsplash

Probably you heard this question: Why bother learning web development and not using WordPress or Wix, won’t be that easy for me? The short answer is no, the long answer is yes!

For Business Owners:

If you have a business and you want to take it online for more exposure or to reach new clients I have to say that web development is necessary, yes you can use CMS platforms but you can’t scale…


Which one is better? Bootstrap or Tailwindcss? When and where to use them or why not just using standard CSS?

bootstrap5 css3 tailwindcss
bootstrap5 css3 tailwindcss
Photo by Pankaj Patel on Unsplash

Probably you have never heard about tailwindcss or you just a bootstrap fan, maybe the other way around. So today I will try to end this discussion about which one is better bootstrap5 or tailwindcss 2.0.

What Is Tailwindcss And Why Bother Using It?

In a nutshell Tailwindcss is just a predefined class names collected inside one huge CSS3 file, it contains every 99% of available CSS styles like box-shadow, underline, paddings, margins, borders and so on, what this means is that you don’t need to write any…


If you want to be a writer please at codinoon please email me at riadeboughaba@gmail.com.


Write Python Code That Can Solve Problems Faster And More Effectively without buying a ram or gaming PC

data science python
data science python
Photo by Markus Spiske on Unsplash

Today data science is one of the most popular categories among programmers and none programmers, every one want to learn it, probably learning it to get a dream job, to invent or for personal reasons.

But what beginners and mid intermediate level data scientist understand is that you can’t just open an editor and start coding, yes your code will run and work but the downside that is it very slow so how you can optimize your code to process millions of…


How to make python errors (python exceptions) more descriptive, easy to read and to understand.

python exception errors syntaxerror
python exception errors syntaxerror
Normal Python Syntax Error (Exception)

Errors or Exceptions are the most frustrated thing every programmer will encounter when working on a project. And python doesn’t make an exception, in fact I find python errors sometimes complex due to unclarity of some errors.

In the image above the error type is syntax error but the error message is so complex that no beginner (or sometimes intermediate) in python can understand, this error caused because I didn’t close a parenthesis in print statement:

print("Hello World!"  → # No closing parenthesis

It would…


Probably the most asked question I ever get, I want to learn web development should I learn Python or PHP? HTML or CSS?

If you’re one of them, and you want to learn web development keep reading.

So today I will try to clarify everything about this topic without going too deep into the details. This will be a reference to anyone who want to start and a roadmap to anyone who want to walk.

NOTE: Please consider the following: this article is not about a magical way that can make you a web developer in a month or day or so, this is just a starting point the path is drawing by you.

First web development is the process of coding web apps such as websites, blogs and so on, so anyone who can build a…

Riade

Hi!, my name is Riade, and I am python programmer, full stack web developer and intermediate data scientist.

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