#Programming (Програмування)
163 posts in category «Programming (Програмування)»
Notes on programming in Ukrainian: coding languages, algorithms, the latest technologies and other useful information for developers.
What is ORM and why is it needed?
When we work with databases, we usually have to write SQL queries - selections, inserts, updates, etc. But as the project grows, …
What are the differences between OAuth 1 and OAuth 2
OAuth 1 OAuth 1 was developed in the early 2000s as a way for secure access of third-party applications to user resources without…
Main methods of authentication in API
When we create an API in Ruby on Rails, it is important to control who has access to resources. Here are the main approaches to a…
What is ivar in Ruby / Rails?
ivar is short for instance variable. In Ruby, it is written with a @ before the name, for example: @user = User.find(params[:id])…
What is Row Security in PostgreSQL and why is it important for Rails developers
PostgreSQL has a powerful but often underrated feature - Row Level Security (RLS). In short, it is data protection at the row lev…
Offset vs Cursor Pagination in Rails: what to choose and why
In web applications with large datasets, the issue of pagination arises sooner or later. Displaying thousands of records in a tab…
What is NP-complexity?
NP-completeness is a class of problems for which it is very difficult to find a solution, but easy to verify the correctness of a…
What is factorial complexity?
Factorial complexity is a situation where the number of options or combinations grows like the factorial of the number of element…
What is Bubble Sort (algorithm explanation)?
Bubble Sort is one of the simplest sorting algorithms. Its essence lies in comparing adjacent elements of the array and swapping …
What is a HAR file (HTTP Archive)?
HAR file (HTTP Archive) is a special file format .har that stores the log of a web browser's interaction with the network. Essent…