HNHacker News
TopNewBestAskShowJobs

cuddlecake

577 karma · joined September 11, 2018

submissionscomments
cuddlecake··on A proposal to add signals to JavaScript
Promises are, technically speaking, "abstracted crap".

So is abstracted crap only ok if it's already in the JS standard library?

cuddlecake··on The negative impact of mobile-first web design on desktop
How _do_ you get a 3px gap though?
cuddlecake··on The Decline of Usability (2020)
As a frontend dev, what are good resources to learn about principles and heuristics that I can apply in my work?

I have some knowledge, albeit very primitive, that I picked up from an HCI introduction and some good designers, but nothing too technical / formal yet.

cuddlecake··on Important Coding Habits
What do you do, when you straighten out your spine? I mean in terms of movement, or do you just change your posture?
cuddlecake··on Angular v16
> In no time we'll see SO spammed with questions using `computed(async () => ...` or race conditions when using `effect`.

As opposed to the very few questions about rxjs, where people understand everything perfectly.

cuddlecake··on Leap: Neovim’s Answer to the Mouse
Good to know, thank you
cuddlecake··on Leap: Neovim’s Answer to the Mouse
Wouldn't just `.` do the same as `d;` in that case?
cuddlecake··on Parent time
As most people will - die without legacy and respect, because they are not a corporate overlord.

I guess.

cuddlecake··on Show HN: An opinionated and statically-typed TypeScript SDK generator
Hi, congrats on the launch.

On my screen, the website is scrollable. Not sure if the animation needs to have top: 30vh and height: 80%

Also: there is a big layout shift right after loading.

cuddlecake··on TypeScript is terrible for library developers
You can also write the array first, without using enum:

const tokens = ['parenOpen', 'bang', 'plus', 'minus'] as const;

type Token = typeof tokens[number];

type TokenTable<T> = Record<Token, T> // alias for { [key in Token]: T }

const isToken = (t: string): t is Token => tokens.includes(t);

const patterns: TokenTable<RegExp> = { bang: /\+/, // rest }

cuddlecake··on TypeScript is terrible for library developers
Do you have an example for what you want to do, with an object before and after mapping? I don't understand what you mean by "functionally map over a typed object by key"
cuddlecake··on React PDF Viewer
For one, it's a wrapper in React, so no need to implement the glue code yourself if you want to integrate PDFs in your web app.

Also, it appears to be feature-rich and yet easy to use for simple use cases.

cuddlecake··on Sol: Open-source Alfred/Raycast alternative for macOS
If you connect raycast with your calendar, you can view your schedule from within raycast.

If there is an upcoming meeting with a zoom/teams/<call app> link attached, you can join by pressing enter.

Never had to look for a meeting link again.

I'm not sure if Alfred has this as well, but nevertheless, i just love this feature

cuddlecake··on To download from Google Drive, you must enable third party cookies?
Tried it, wouldn't recommend it. The file data would be stored in the browser tab's memory. It usually ends in crashes.
cuddlecake··on Why long-term plans don't work and how to fix them
Deadlines feel like they are mainly useful to induce stress and urgency. The stress and urgency being useful (or important) is another matter.

In a perfect world (for me, from my point of view), there are no deadlines, but rather short plans and enough understanding of the plan to decide whether doing something specific is useful or a hindrance (and to what degree) for executing that plan.

But alas, deadlines are easier to decide on.

cuddlecake··on Show HN: I built an interactive course that helps you learn Vim faster
The link feels irrelevant, because it is not related to vim and text editing. Or does it?
cuddlecake··on Show HN: Copy React code from any site
I feel like "availability to copy" or "inspectable" is not a reason to abandon Copyright protection.

After all, it is currently the nature of web software that the source code must be available (for browsers to interpret)

cuddlecake··on Ask HN: Is it a strength that HN's UI has not changed over many years?
table.fatitem,td.default{max-width:90ch}body,body>center>table,input,textarea{background-color:#262626!important}body>center>table>tbody>tr:first-child>td{background-color:#f60!important}.c00,.c00 a:link,a>u,a[href="http://www.ycombinator.com/apply/"],a[href="https://www.ycom... font,span.comment font a:link,span.yclinks a:link,table.fatitem tbody tr td,td.title a:link,td:nth-child(2):not(.subtext)>a:link,textarea,u a:link{color:#ccc!important;font-size:15px}table.fatitem tbody tr:nth-child(n+3):not(:last-child) td{color:#bbb!important}.admin td{color:#aaa!important}table.fatitem{margin:auto}table.comment-tree{margin:auto;border-left:2px solid #444}input,textarea{border:1px solid #828282!important}a.togg.clicky{margin-left:4px;margin-right:4px;font-size:16px}
cuddlecake··on Ask HN: Is it a strength that HN's UI has not changed over many years?
> if HN is still one of the best places to communicate and post serious matters

citation needed.

Other than that, I would love to see a bit better semantic markup, not because I'm some sort of HTML purist who demands everything to be pure, but because it would make it easier to style with CSS (which I did, to add dark mode, bigger font sizes and max widths). Currently, it's nested tables with occasional classes and ids, but not for everything.

cuddlecake··on Ask HN: Is it a strength that HN's UI has not changed over many years?
The only cookie I see on hackernews is for authentication, so I don't think a cookie banner is neccessary (though I might be misinformed)
cuddlecake··on Angular without SSR is faster than Next.js with SSR
I'd be more interested in why you think DX in Angular is great (especially with Nx).
cuddlecake··on Safari: Point to specific bugs and missing support that frustrate you
In another tweet[0], Jen Simmons asks the question:

> Do we really want to live in a 95% Chromium browser world? That would be a horrible future for the web. We need more voices, not fewer.

It's difficult to become a voice for Safari, if Safari is hiding behind a hefty price tag.

Debugging Safari issues on Linux or Windows machines make it easy to grow a disliking for the browser. There are ways to do it effectively, of course, but no simple or pleasant ones.

[0]: https://twitter.com/jensimmons/status/1490747578526404608

cuddlecake··on Web3 is not going to change the world
Is there any need for the Blockchain for that? Like... Setup a server and host the content. I can't imagine it being simpler than that.

Why would I engage in the dance of crypto just to host some content no one will read anyway?

What's IPFS?

cuddlecake··on Web3 is not going to change the world
It is unfortunate that the one useful thing I have found about blockchain to be true is that it is great for gambling
cuddlecake··on Web3 is not going to change the world
But over long enough time it _must_ be somewhere where somebody can provide Computational power and evergrowing storage capacity, right?

So.. not anywhere.

Or can the data be available in a highly fragmented fashion _and_ still be useful? I just can't imagine any content system that does not end up being centralized or highly inconvenient.

cuddlecake··on Web3 is not going to change the world
They don't enjoy participating in the space, they enjoy avatars and art.

And probably spending an absurd amount of money for more or less Auto-Generated art?

cuddlecake··on Web3 is not going to change the world
But the infrastructure must be <somewhere>, right?
cuddlecake··on Simple.css – A classless CSS framework
> Bonus points if we agree onto some standard set for variable names

They try: https://www.w3.org/community/design-tokens/

cuddlecake··on Github Copilot Wants to Play Chess Instead of Code
I think IntelliJ generally has the feature to autocomplete code in markdown code blocks based on the current project. So that in itself is not a Copilot feature.

It's really useful because it will even understand Angular2 codebases and autocomplete custom components in html snippets.

cuddlecake··on Drgn: How the Linux kernel team at Facebook debugs the kernel at scale
As a current developer, what pisses me off about anyone is sweeping statements like this :(
Page 1 of 8Next →