crunchbang-excl
Joined 3 years ago
Joined 3 years ago
Typing this way is a very different experience from typing with two hands, especially for people who can otherwise touch type.
I'd like to see a similar study with people allowed to touch type.
I have taken to remapping it to a function key, moving caps lock to function+shift. Function+tab is mapped to escape, a combination I can easily press with my pinky alone.
This allows me to map a lot of the keys that would require moving my hand to function+[alphanumeric key], function+i is insert, function+u is page up, function+j is page down, function+r is home, function+f is end, and other such combinations.
I use a keyboard that supports QMK, so all of this customization is on the keyboard, but this could probably be done with software running on the computer, like AutoHotKey on Windows.
I just went back to check and I saw that you are supposed to make some changes, which are shown in the solution, even though they are unnecessary to pass the tests.
I got it to work with this code:
# Code starts here
class Stack[T]: def __init__(self) -> None: self.items: list[T]
def push(self, item: T) -> None:
self.items.append(item)
def pop(self):
return self.items.pop()
# Code ends hereThis code has fewer changes than the solution provided, and doesn't need imports. I'm not sure the solution needs those imports either.
Perhaps the tests for that challenge should cover more cases.
I've had experiences where they will claim that something is possible when it is absolutely not, and you have to provide a lot of supporting information to get them to see reality.