HackerTrans
TopNewTrendsCommentsPastAskShowJobs

wwalexander

no profile record

Submissions

Open-source game engine Godot is drowning in 'AI slop' code contributions

pcgamer.com
5 points·by wwalexander·5 miesięcy temu·0 comments

comments

wwalexander
·11 dni temu·discuss
Not really fixable, unfortunately. The API requires an network call for each comment:

> The v0 API is essentially a dump of our in-memory data structures. We know, what works great locally in memory isn't so hot over the network.

When I played around with making a client, I found the best approach was to only load the first level of comments, and asynchronously fetch children inside DisclosureGroups on appear.

Then I realized the only reason I was making an HN app was so it didn’t blind me at night, and then I realized Lobsters has all the same stories as this place but lets me filter out vibe coding articles, and I just gave up.
wwalexander
·12 dni temu·discuss
> It's the same thing. In the latter case, something has validated that your NonEmpty has a first and a last element.

No, it has parsed it into a structure that structurally has at least one element, not just the promise that there ought to be one. From the original “Parse, don’t validate” article:

    data NonEmpty a = a :| [a]
> your type still permits {name: "\0\0\0\0\0\0", host: "!"}

I actually originally wrote it with an array of EmailNameCharacters, etc but didn’t want to overcomplicate the example.
wwalexander
·12 dni temu·discuss
This is just validation that is using the type system to indicate the validation has already occurred. I think the real point of “parse, don’t validate” is to make the type system give you structural guarantees that couldn’t exist otherwise (e.g. always having a first/last element in the NonEmpty example from the original article). If you’re just branding the types as “parsed” (in reality, simply validated) you still have to know that the invariants you care about hold when using the “parsed” type (e.g. splitting the email type using “@“ will always yield 2 elements), instead of the structure of the type holding that info inherently (e.g. struct Email { name: String, host: String }).
wwalexander
·16 dni temu·discuss
> Japanese electronic tariffs in the 80s

Also motorcycles. https://en.wikipedia.org/wiki/1983_motorcycle_tariff
wwalexander
·19 dni temu·discuss
guard has two advantages: the compiler ensures that you exit the current scope if the condition does not hold (via return, break, continue, etc), and bindings established in the guard clause (e.g. let foo = optionalBar) remaining in scope after the guard block, rather than inside it like an if block.
wwalexander
·20 dni temu·discuss
You can configure macOS to switch between languages by pressing the globe key, but it’s a far cry from letting you type in any of your languages without it autocorrecting/red-underlining.
wwalexander
·23 dni temu·discuss
iOS supports using one keyboard for two languages (for me, a USA keyboard with English and Italian). Unfortunately this doesn't exist on macOS yet.
wwalexander
·23 dni temu·discuss
Will this support expansion in the case of all bays being filled?

EDIT: Nevermind, the product page has an option to add up to 32 additional drives via expansion units. Nice!
wwalexander
·w zeszłym miesiącu·discuss
> In addition, every software company seems to go their own way and have their own “style”

Hence Apple using the same set of SF Symbols across all their platforms. And I don't think icons are intended to be used to initially identify the purpose of a button, but instead to provide a quick visual anchor once you are already familiar. Sure, there are some buttons that everyone will use more (like Save or Open), but I don't think there's anything wrong with allowing every button to have this sort of quick visual lookup. Predicting user behavior is hard.
wwalexander
·w zeszłym miesiącu·discuss
What about toolbars? Those almost universally have both text and icons for each item. Why should menus be any different?
wwalexander
·w zeszłym miesiącu·discuss
I strongly dislike Ive's influence overall, but skeuomorphism made it incredibly difficult and cost-prohibitive for a single indie developer to make an app that felt like a polished first-party experience for iOS. I'm glad it's gone. You're still welcome to do it if you want and you have the whimsy and artistic talent (or design team) for it.
wwalexander
·w zeszłym miesiącu·discuss
Yes, I have been listening to Gruber complain about them for a year now. His critique is that "Apple's HIG used to say not to," not anything about what actually makes them bad.

Curiously, I haven't heard him talk about Apple Intelligence in Shortcuts, or any of the cool new features in Tahoe. Design is how it looks, I guess.
wwalexander
·w zeszłym miesiącu·discuss
Icons in menu bars serve the same purpose as icons elsewhere: quickly identifying buttons. I don't know why this is such a big deal.
wwalexander
·w zeszłym miesiącu·discuss
Poste Italiane is not.
wwalexander
·w zeszłym miesiącu·discuss
> This is about setting keyboard shortcuts for custom actions for applications, not window traversal on the desktop.

The "All Applications" section lets you define global shortcuts. As long as there is a menu bar item for it (in this case, one from the Window menu) you can define a shortcut for it.
wwalexander
·w zeszłym miesiącu·discuss
> cannot be traversed with keyboard shortcuts

Yes, it can: https://support.apple.com/guide/mac-help/mac-window-tiling-i...

You can define additional shortcuts in Keyboard settings: https://support.apple.com/guide/mac-help/create-keyboard-sho...
wwalexander
·2 miesiące temu·discuss
Who do you think is going to throw food at you?
wwalexander
·2 miesiące temu·discuss
AIs can barely handle PKCE OAuth flow. It’s not very hard to confuse them.
wwalexander
·2 miesiące temu·discuss
Thank you very much for this recommendation! Most of my work is in Xcode, and in an ideal world Xcode would just support third-party syntax highlighting (or LSP), and I've been looking for a Mac-assed simple editor for those scenarios where I just want basic syntax support for a random text file. CotEditor is perfect!
wwalexander
·2 miesiące temu·discuss
Arbitrary precision arithmetic (GMP, BigInteger, etc). Numbers can take arbitrary amounts of memory, instead of just a single machine word.