Recent submissions

Comment · 3 years ago
Very rough pen and paper draft very rarely. Never for other people.

(solopreneur and someone that works in a 4 people startup)

Comment · 3 years ago
Why does that make your life barely enjoyable? Curious to know what kind of lifestyle or living you have that the weather would have such a big impact on you.
Comment · 3 years ago
Awesome, thanks for the pointers!
Comment · 3 years ago
Thanks :)
Comment · 3 years ago
Interesting, thanks!
Comment · 3 years ago
I'm relatively new to programming and had a question about TypeScript's functionality. Is there any specific reason why TypeScript doesn't allow for the creation of custom and intricate data types? For example, I'm unable to define a number type within a specific range, or a string that adheres to a certain pattern (like a postal code).

I'm imagining a language where I could define a custom data type with a regular function. For instance, I could have a method that the compiler would use to verify the validity of what I input, as shown below:

function PercentType(value: number) { if (value > 100 || value < 0) throw new Error();

    return true;
}

Is the lack of such a feature in TypeScript (or any language) a deliberate design decision to avoid unnecessary complexity, or due to technical constraints such as performance considerations?

Comment · 3 years ago
I switched from QWERTY to Colemak about 5-10 years ago for a solid year or so.

My WPM decreased by around 25% and I actually found Colemak to be rather uncomfortable; with QWERTY (and DVORAK) you tend to alternate stroke between hands. Even if there is more finger travel, it just feels right to me.

Also, having a different layout than the peers around you is an absolute pain.

My conclusion is that having an alternative layout is not worth the marginal improvements if any it may offer. If I was forced to try another layout though, I would try DVORAK.

Comment · 3 years ago
I’m not worried. There’s much more to the job than pedantic code reorganizing. As a matter of fact, it seems to be good at what I’d like not to do as a frontend dev.
Comment · 3 years ago
Beware of assumptions. You arrived at a funny conclusion here.

Did the author express that his intent was to capture browser marketshare? If not, he may not be delusional :)

Comment · 3 years ago
As a "one of these day devs" I only care about performance when it starts becoming a problem and I see nothing wrong with the way I'm going about this.
Comment · 3 years ago
function something(deps, params, ctx) { // put something here }
Comment · 3 years ago
Just send a POST request lol
Comment · 4 years ago
And why couldn't a giant company decide to own "a more fragmented landscape of specialized services"?
Comment · 4 years ago
What's the selling point here?
Comment · 4 years ago
I can't read this they want me to sign up, but it looks interesting.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton