Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stasm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
stasm
11mo ago
Thanks to OpenMW, my SteamDeck has become a "Morrowind machine" -- it runs so well and it's so convenient to have all that world with me on the go. You can use https://luxtorpeda.gitlab.io which registers as one o
2.
▲
by
stasm
3y ago
> They own the domain. It seems like a wasted opportunity to set up a new domain (in this case: wikimedia.social) rather than use an existing one with a subdomain, e.g. social.wikimedia.org or social.wikimediafoundation.org. With a new d
3.
▲
by
stasm
4y ago
> - # private... not sure why they didn't just use the "private" keyword, but I don't care. I almost always use TypeScript anyways One of the reasons was to allow private and public fields of the same name, so that su
4.
▲
by
stasm
4y ago
> When you rename or move a file that you're editing, its window instantly reflects the new name and location. How does macOS achieve its reactivity? Is it two-way bindings? Events/messages? Immediate mode re-renders?
5.
▲
by
stasm
4y ago
Tangentially related: https://js13kgames.com is currently going on -- the challenge is to build an HTML/CSS/JS game which compresses down to 13,312 bytes or less.
6.
▲
by
stasm
4y ago
If it's something I want to read and then be done with it, I keep the tab open. If it's something I may want to come back to, or something that I'd be sad if it disappeared from the web, I save it to a synced folder using the
7.
▲
by
stasm
5y ago
Type inference is one good reason. Similar syntax exists in a few modern languages, too: e.g. Rust and Swift. In languages with type inference it can be convenient that type annotations are in the postfix position relative to variable names
8.
▲
by
stasm
7y ago
> The second option shouldn't need to match as it is the default value anyway (signified by the *) That's an interesting suggestion! Right now, the identifier between the brackets is required, but we could relax this in the fu
9.
▲
by
stasm
7y ago
The (2..4) range would work for Czech in this example (if I'm reading the CLDR right), but I'm afraid it wouldn't be sufficient for languages with more complex plural rules. Take the rule that returns "one" in Latvi
10.
▲
by
stasm
7y ago
You can get decent highlighting for basic Fluent messages by setting the editor to a mode for Properties files. For instance, whenever I type Fluent examples in GitHub, I use the following markdown: ```properties # A comment h
11.
▲
by
stasm
7y ago
It's up to the localizer to define variants corresponding to the language's plural categories. For Russian, that's (one, few, many). Interestingly, this particular example could simplified to (few, *), because "раз"
12.
▲
by
stasm
7y ago
Thanks! > And it would result in combinatorial explosion of translation message versions if source code had to add special case for each quirk in each language. This is the exact problem we designed Fluent to solve. If you get a chance t
13.
▲
by
stasm
7y ago
Our goal was to design a simple DSL which is easy to read and make small edits to. Copying and pasting is a powerful learning method :) We're also working on creating richer and more streamlined authoring experience in Pontoon, Mozilla
14.
▲
by
stasm
7y ago
When Fluent formats translations, it returns simple strings (in the sense of primitive computer types). They can include markup which is parsed by a higher-level abstraction responsible for actually showing the translations somewhere in the
15.
▲
by
stasm
7y ago
It's possible to build this message in Fluent with nested selectors, or with adjacent selectors. I built an example using Polish, since that's a language I know best. (To be 100% correct in Polish, I'd need to use a different
16.
▲
by
stasm
7y ago
This is an excellent question and a very good use-case. I'm a Polish speaker myself, so I can definitely relate. It's also a good excuse for me to talk a little bit more about the advanced features of Fluent. The Fluent Syntax is
17.
▲
by
stasm
7y ago
There's a tool written by a Udacity developer which can be used to autoextract copy from React source code: https://github.com/udacity/fluent-react-utils/tree/master/pa...
18.
▲
by
stasm
7y ago
It's something that I definitely plan to add. There's even an open issue about it! https://github.com/projectfluent/fluent.js/issues/185
19.
▲
by
stasm
7y ago
This is a great point and something that we've seen come up very often in building UIs. The good practice which we recommend to developers at Mozilla is to avoid splitting or nesting messages, because it makes it harder for translators
20.
▲
by
stasm
7y ago
(Author of the blog post here.) Great question, thanks! Unicode defines six categories of plural forms: zero, one, two, few, many, and other. The names of these categories always appear in English. Unicode also maintains a collection of all
21.
▲
by
stasm
8y ago
http://gamasutra.com/blogs/KylePittman/20150420/241442/CRT_S... is a well-explained and and a copiously illustrated write-up about why CRT emulation is essential to many pixel-art retro games.
22.
▲
by
stasm
9y ago
I'm one of the creators of 'A moment lost in time.' Thanks for playing it and for the feedback. Are you on Linux by any chance? I've had some issues with the Pointer Lock API in Firefox on Linux.
23.
▲
Show HN: Innerself – React/Redux distilled into 50 lines of code using innerHTML
(github.com)
5 points
by
stasm
9y ago
|
0 comments
24.
▲
by
stasm
10y ago
I found that the one of the best ways to combat jetlag (at last on transatlantic long-haul flights) is to completely forgo eating on the plane. Instead, just drink a lot of water. In fact, I usually try to have my last meal in the origin t
25.
▲
by
stasm
10y ago
The problem with this customization is that different styles end up with different allowed character counts in a single line. For linters to work as expected you still have to hardcode the number of spaces a tab should count as in the lint
26.
▲
by
stasm
11y ago
I'd love to revive my N900. Do you have any recommendations about which OS to install on it these days?
27.
▲
by
stasm
11y ago
A similar project created by the National Library of Poland: https://github.com/Polona/malakh Example: http://polona.pl/item/8214762/2/
28.
▲
by
stasm
11y ago
You can use http://refract.mkelly.me/ to install Slack as a standalone web app (in Firefox and Chrome). I've done this to many service which I use frequently: Trello, IRCCloud, Messenger, Inbox, etc. and it works rea
29.
▲
by
stasm
11y ago
Maciej makes a great point about diminishing returns. We're quite good at extrapolating trend lines and yet we're terrible at predicting the future because it's very hard to guess where optimizations will happen. The '
30.
▲
Ind.ie drops other products to focus on Heartbeat for MacOS
(ind.ie)
8 points
by
stasm
12y ago
|
1 comments
More ›