#Programming (Програмування)
166 posts in category «Programming (Програмування)»
Notes on programming in Ukrainian: coding languages, algorithms, the latest technologies and other useful information for developers.
What is a Promise in JavaScript and how to quickly understand its essence?
Imagine that you ordered coffee at a café. The barista takes the order, issues a receipt, and says, “Please wait a moment.” You d…
Fix the error [DEPRECATION] #adapters is deprecated. Use #profiles instead. (Codecov / docile)
Recently encountered an error in Codecov, which was actually a false alert. It only appeared on the Codecov side and caused a CI …
[Fix] Heroku / SearchBox addon - indexing error "The client is unable to verify that the server is Elasticsearch"
When configuring the SearchBox search add-on on Heroku, an error occurred while starting the indexing from the console. Loading p…
[Fix] No such file or directory @ rb_sysopen - tmp/pids/server.pid
Sometimes it happens that the tmp/pids folder gets lost on the local machine. It is in gitignore for obvious reasons. As a result…
What is the difference between spec_helper.rb and rails_helper.rb in RSpec?
If you are developing an application using Ruby on Rails, you are probably already familiar with testing using RSpec. But every t…
What is PORO in Ruby?
In Ruby, the term PORO (Plain Old Ruby Object) is often mentioned, but what is it and why is it important? PORO: in simple terms …
[Fix] Factory not registered: "user" (KeyError) (FactoryBot / Rails 7)
When setting up tests in a new project with several models - User, Post, and so on. All factories registered normally, except for…
Rounding decimal numbers: mathematical rules, JavaScript, and Ruby
Rounding is an important operation when working with decimal numbers, as it allows values to be presented in a more convenient fo…
What is Convention over Configuration (in the context of RoR and beyond)?
Convention over Configuration (CoC) — is a principle that states that a system or framework already has default configurations, a…
What does the ACID principle mean in programming?
ACID — is a set of properties that guarantee the reliability of transactions in databases. Each transaction is a fundamental buil…