Jan 23 · 5 min read · Are you a commercial tenant and your landlord is threatening to terminate your lease? Have you just received an eviction notice? Understanding your rights is essential to protect your business. In Quebec, although commercial leases offer more contrac...
Join discussion
Jan 23 · 5 min read · Housing repossession in Quebec is strictly regulated by rental law. A question frequently arises before the Tribunal administratif du logement (TAL): Can a landlord repossess a dwelling when another unit is vacant in the same building? The answer dep...
Join discussion
Dec 5, 2025 · 2 min read · If you use Elixir (and the Phoenix framework), you’ve probably admired the beauty and power of the |> pipelines. For example: "String" |> add(" is a common type") |> IO.puts # => "String is a common type" In Ruby, the same mechanism can be achieved ...
Join discussionDec 4, 2025 · 1 min read · Using Set is probably the most convenient way to check for membership in a list since values are stored like in a Hash. Set uses the === method to check membership, which allows: case 'apple' when Set['bean', 'cauliflower', 'carrot'] "vegetable" wh...
Join discussionDec 3, 2025 · 1 min read · You can test whether a key is present in a hash and return a precise message when it fails thanks to the KeyError exception raised by #fetch: begin {one: "1", two: "2"}.fetch(:three) rescue => e p "The key #{e.key.inspect} cannot be found in #{e....
Join discussionDec 2, 2025 · 1 min read · In many languages, “predicates” are methods that return either true or false. In Ruby, they’re traditionally marked with a trailing question mark. def are_you_ok? if yes true else false end end This question mark is only a convention. ...
Join discussion