Samuel Rowe
Samuel Rowe
I recently started used Pomodoro. The app has significantly boosted my productivity. However, there seems to be some problem. I am using Pomodoro on Ubuntu 19.10. It automatically closes after...
It would be great if there was a builtin function that allowed us to crop images based on aspect ratio instead of dimensions. The input to such a function could...
I am trying to build a system like HackerRank, i.e., the code submitted by the user should be executed on the server. From what I understand, `bst` can be used...
Zen can encourage functional programming with closures. Given Zen does not treat functions as expressions, mostly due to the limitations imposed by indentation based blocks, local functions can be used...
The compiler should analyze the function body to detect statements that are completely unreachable because of return and throw statements that cause a function to exit. Consider the following example:...
Consider the following program. ``` function isEven(n) if n % 2 == 0 return true ``` If this function was invoked with an odd number, null is returned. However, the...
When a newline character appears immediately after a multiline or documentation comment, the lexer generates a newline token. This causes syntax errors. The following code reproduces this bug: ``` class...
Inheritance is a very important feature of object-oriented programming, a mechanism which allows one class to inherit the behaviors and attributes from another class. Inheritance allows you to create a...
Consider the following program: ``` function main(...arguments) var text if random() % 2 == 0 text = 'even' print(text) ``` In the example shown above, text remains uninitialized when random()...