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 Big O notation, this hash function will be used to build what is none as hash tables. …
Like lists comprehensions and lambda functions python one line codes can save a lot of time and space so how you can master them?
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):
Just easy and simple for loop in python that append numbers in list, so what can you do to write this in one…
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?
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!
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 it without adding extra charges but this is not the worst part, the worst part is you will always be a prison to your ignorance let’s assume that you want to add a feature to your website and there is no such tool that can provide this feature for you, since you don’t know how to code you won’t be able to provide such thing. …
Which one is better? Bootstrap or Tailwindcss? When and where to use them or why not just using standard CSS?
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.
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 CSS most of the time because it’s already predefined for you. …
Write Python Code That Can Solve Problems Faster And More Effectively without buying a ram or gaming PC
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 data without the need to add a ram or by a gaming PC? …
How to make python errors (python exceptions) more descriptive, easy to read and to understand.
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 be much easier if the interpreter can tell you to just look for typo or unclosed parenthesis or anything that can generate a syntax error in python script, luckily I’ve created a script called Pyerrors that can do this exact job for you, check the image down…
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 web page is actually a web developer (yes, if you can print a simple <h1>Hello World! …