I saw it all:
is_valid
is_valid?
valid?
Is there a preferred option?
EDIT: Additional Terms:
has_comment has_comment? comment?
has_comment
has_comment?
comment?
was_full was_full? full?
was_full
was_full?
full?
Please add more detailed examples.
I think the convention is basically to add '?' at the end of the method instead of 'is'
In favor of a code attempt to be a "natural language" like is_valid? should be the most suitable for me. Let's show an example:
if @ order.is_valid? @ order.save end
Source: https://habr.com/ru/post/1766416/More articles:VBScript to upload a file to SharePoint DocLib - file-uploadПолучение изображений из галереи - не все "Exist"? - androidпроблема с установкой libnet - ubuntuperforms flash sessions? - ruby-on-railsjquery, how to check if a particular id is a child of another id? - javascriptC # Xml Parsing from StringBuilder - stringbuilderКак рассчитать скорость изменения пикселей в MATLAB - image-processingchoose a window style - css / jquery - jqueryHow to convert 'System.IO.IsolatedStorage.IsolatedStorageFileStream' to ImageSource? - c #The difference between Seq and Array for the array value is .netAll Articles