#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 the difference between int and bigint in Ruby? Minimum and maximum values.
In Ruby, there is only one type of integer — Integer. In previous versions of Ruby, there were separate classes for integers of d…
Scope of a local variable in Ruby
In Ruby, a new scope for a local variable is created in several places. It is necessary to understand and study these places. glo…
Why is an empty string in Ruby not false?
An empty string in Ruby is not false. Programmers like to compare this nuance with Perl, because in Perl an empty string is false…
What is the difference between nil and false in Ruby?
In Ruby, both nil and false are used to represent the concept of "nothing" or "falseness," but they have different roles and beha…
Why does Ruby code return nil after executing puts?
In Ruby, the puts method always returns nil after printing a string to the screen. This is standard behavior for puts, as its mai…
What is the difference between immediate value and reference in Ruby?
First, we need to understand what immediate value and reference are in Ruby.Immediate value in programming is a value that is sto…
Does Ruby create a new copy of an object when assigning a variable to another variable?
When assigning a variable to a variable in Ruby, a reference to the object is created, not a new copy of the object. This means t…
Which operating systems support Ruby?
Ruby is developed on Linux and written in the language - C. Ruby runs on Linux and other UNIX-like operating systems, macOS, Wind…
What is the purpose of the CVE (Common Vulnerabilities and Exposures) database?
CVE (Common Vulnerabilities and Exposures) is a list of publicly known vulnerabilities and exploits in software and hardware. Eac…
How does 'rails console --sandbox' work?
rails console --sandbox starts the Rails console in a special mode where all changes made to the database are automatically rolle…