Recent submissions

Comment · 1 year ago
That fullwidth question mark really makes the URL stand out, not in a good way.
Comment · 2 years ago
The issue I find with the first linked article is that the people tested were not allowed to type normally. They were required to type with their dominant hand only, which reduces most people to hunt and peck typing.

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.

Comment · 2 years ago
The caps lock key is definitely using prime real estate on a keyboard for something that doesn't get used often.

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.

Comment · 2 years ago
I thought that one was an example where you don't have to do anything.

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.

Comment · 2 years ago
The challenge generic class can be solved without making any change to the pop() function.

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 here

This 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.

Comment · 2 years ago
AWS support can be very hit or miss.

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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton