// All posts

← home
  1. What is .gitignore? What is it for and how to use it

    .gitignore is a file used in the Git version control system to specify files and directories that should be ignored by Git. This …

  2. What does a dot at the beginning of a file (.gitignore, .DS_Store, .bashrc, etc.) mean?

    A dot at the beginning of a file or folder name in Unix-like operating systems, such as macOS or Linux, indicates that this file …

  3. How does the map method work in Ruby? An overview of the method's operation with examples.

    The map method is one of the most commonly used methods in Ruby, used for processing collections. It allows you to apply a block …

  4. What does .map(&:name) mean in Ruby?

    In Ruby, the map(&:name) construct is a shorthand for applying a method to each element of a collection. This form is used to…

  5. How to fix a Windows crash caused by CrowdStrike?

    We are fixing the Windows crash caused by CrowdStrike. First, boot Windows in safe mode or in the Windows recovery environment. B…

  6. We are writing a demo game Drones vs Zombies (Gosu / Ruby)

    ```html I have already written a minimal overview of the functionality of the gosu library. To write a simple 2D game, you really…

  7. Gosu Ruby Tutorial - пройдемось по офіційній документації

    Це не переклад Ruby Tutorial сторінки бібліотеки Gosu, а скоріш огляд з коментарями та додатковою інформацію. Не люблю сухі Readm…

  8. Ruby library Gosu for creating 2D games

    Gosu is a library for developing 2D games and graphical applications in the Ruby programming language (as well as C++). It simpli…

  9. How to make an empty git commit?

    Making an empty git commit. Everyone has their own goals for this action. In my case - to trigger CI. git commit --allow-empty -m…

  10. [Fix] extconf.rb failed during the installation of the Ruby library Gosu

    Gosu is a popular gem for Ruby that provides a simple and powerful interface for creating 2D games. It includes features for work…

  11. What is a function in programming?

    A function is the fundamental building block of programming that defines a set of instructions or actions that are executed when …

  12. What is the difference between variables that start with @, @@, and $?

    In Ruby, variables that start with @, @@, and $, have different levels of visibility and usage (scope). Let's look at examples an…

  13. What will be the result of adding 10.5 and 10?

    A seemingly simple question can come up in an interview for a junior ruby dev position. What will be the result of adding 10.5 an…

  14. What is immutability and mutability?

    Immutability and mutability are properties of objects (in programming and other fields) that determine whether objects can change…

  15. What does the error 'is out of range' mean in Ruby on Rails? Range Error - Integer with limit 4 bytes

    RangeError can be seen in Ruby on Rails after attempting to write a number that is too large (or too small) to the database. The …

  16. 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…

  17. 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…

  18. 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…

  19. 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…

  20. 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…