programming

My ToDo List for 2024 (daily updates)

waffarx cash back

Why built-in functions in python are faster ?

Because Python is sitting of the shoulders of giants. Built-in functions are written in C and C++ under the hood. C and C++ languages are efficient and fast, so their functions will be faster than the functions you write in Python. So it is recommended to use built-in functions instead of creating new ones.

Why Did Google Develop Go ?

long compile time πŸ”— Google has two tremendous problems. One of them is compile time. Back in the 1980’s, reasonable sized projects took hours to do a clean build. There were whole server farms dedicated to recompiling. You got a new β€œnightly build” and made modifications to that. Google builds things that are so ridiculously huge that it’s still like that in 2017. It takes 5 hours to rebuild chrome from scratch even on a big fat i7 system.

Why Do Command Lines Still Exist ?

GUI (graphical user interface) is easy to use and goodlooking. But CLI (command line interface) is faster and easier to automate. Advantages of Command Line over Graphics πŸ”— Graphics are fancy but lack clarity and prone to errors and crashes and uses alot of resources (RAM, CPU and GPU). Here are some advantages. Lightweight Text Interface πŸ”— If you accomplish a task like converting mp4 to mp3 on command line using ffmpeg , it will be faster than using any other GUI program such as Format Factory (for Windows OS).

Why Do People Use Go ?

People use Go programming language for various reasons. Here is all reasons in brief: Go is open-source but backed up by a large corporation (Google) It’s fast: to learn to build up to compile to arrange and install to scamper Go is a modern language Go is Simple It is Concurrent Static code analysis Garbage collected language Testing Support And now, let’s dive in each reason. Performance πŸ”— Most people come to Go from dynamic languages like Ruby, Python, JavaScript, PHP and other similar languages.

Why Go is better than Rust ?

First, it’s very important to say that both Go and Rust are absolutely excellent programming languages. My goal here is not to criticize any language. In this article, I’ll try to give a brief overview of where I think Rust is the ideal choice, and where I think Go is a better alternative. If you had to sit down and think of the programming languages which were best aligned with the motive to develop secure, microservice favoring frameworks and apps, you would again find yourself staring at the two languages.

Why I recommend Mark Text as a markdown text editor ?

Mark Text is a great markdown text editor. Advantages of Mark Text πŸ”— simple and easy to use Realtime preview (WYSIWYG) : a.k.a seamless writing/editing with distraction-free writing experience fast enough and efficient open source software free of charge. Markdown extensions such as math expressions (KaTeX), front matter and emojis. export as HTML or PDF. support dark mode paste images directly from clipboard (a.k.a you can copy-and-paste an image). edit modes : source code mode, typewriter mode and focus mode.

Why is n++ faster than n=n+1?

The answer is related to the old CISC cpu instructions and the way how C (or any programming language) is compiled to binary code. In almost every CISC CPU there is a special β€œadd” instruction that is named INC (or DEC) and that instruction increments (or decrements) by 1 the value of a register (or memory). If you use another instruction for addition you have to add both operands you want to sum.

Why I recommend Peek as a Gif screen recorder ?

Peek has too many advantages as a git screen recorder. simple user interface easy to use fast enough and efficient available as snap, flatpak and appimage for Linux distributions with some other native packaging . open source software free of charge But Peek is not cross platform. It doesn’t support Windows 10 nor Mac OS X. Use Cases πŸ”— I use Ubuntu, Pop! OS, Elementary OS and Mac OS. So Peek works on three of my four operating systems.

Windows vs Linux RAM Usage - Is Linux Better Than Windows?

Is Linux better than Windows in RAM usage or RAM management ? Both Linux and Windows are full multitasking operating systems that use virtual memory. If the operating system does not have enough space of physical memory, it use swap memory. swapping means that if your actual RAM is totally used, the operating system will take some of the memory from RAM and copy them into the hard disk or SSD.

Zig language vs Rust language

In the world of programming languages, two of the most popular choices are Zig and Rust. Both languages have their own unique advantages and disadvantages, so it can be difficult to decide which one is best for a particular project. To help you make an informed decision, we’ll take a look at the features and benefits of each language. Zig is a relatively new language that was designed to be a better alternative to C and C++.