Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mostlylurks
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
151.
▲
by
mostlylurks
4y ago
Games are a bit of an atypical case, since the overhead of runtime polymorphism (allocation, virtual function calls) motivate many to avoid runtime polymorphism due to the importance of performance in games, regardless of if that motivation
152.
▲
by
mostlylurks
4y ago
Those preferences come from experience. If experience tells you that code written in a certain manner consistently causes certain categories of issues later down the road, it's perfectly justified to be wary of such code.
153.
▲
by
mostlylurks
4y ago
It is a good thing that the documentation for different projects looks entirely different. I find that for me, it makes it much easier to keep track of and remember everything you're looking at if everything has a different aesthetic a
154.
▲
by
mostlylurks
4y ago
It is not the only thing, but rather the first thing that people often write. There is nothing particularly wrong with that, as forth is the kind of language where intimate knowledge of its internals is quite useful, perhaps even necessary,
155.
▲
by
mostlylurks
4y ago
>managing 80% of the info in double that time (20%) would surprise me. This isn't particularly difficult. If you skip the pleasantries at the start and end of a talk and use a playback rate of 4x, you'll more or less get that 2
156.
▲
by
mostlylurks
4y ago
I, too, would like to have per-dependency security policies. But I can't really see where you would realistically draw the line between dependencies, other dependencies, and your own code. Is a callback, created in your own code, that
157.
▲
by
mostlylurks
5y ago
With class components, lifecycle management is trickier to encapsulate and reuse since you have to split such things up and scatter them across several different methods or wrap the whole component in a HOC, and in general class components
158.
▲
by
mostlylurks
5y ago
>why would the country you are in and the language you are currently speaking NOT decide those things (which are defined by said languages.) Because these have no relation to how a particular piece of content should be formatted. The fun
159.
▲
by
mostlylurks
5y ago
That particular feature has been in place for years, at least for me, just for some subset of videos (maybe those which have been provided with translations for the title?). Luckily I've been seeing it less often recently, whereas when
160.
▲
by
mostlylurks
5y ago
>Forth doesn't really do data structures It doesn't hand you a ready-made solution due to its extreme minimalism, but that doesn't mean that you can't have arbitrary data structures (and have them be quite ergonomic).
161.
▲
by
mostlylurks
5y ago
>The authenticity of "primitive" art as being a reaction to the skill and western artifice remains controversial, as if the art does not express the skill of the artist, what does it represent? Not everything has to represent s
162.
▲
by
mostlylurks
5y ago
You could very easily make a browser that displays image links inline. Contrary to what is suggested in the sibling comments, you don't need to extend the format with special syntax for inline images.
163.
▲
by
mostlylurks
6y ago
It can actually represent all integers just fine. It works like any other base, except whereas for example in base 10, positions are multiplied by 10^0 = 1, 10^1 = 10, 10^2 = 100 and so on, in base 1 they are multiplied by 1^0 = 1, 1^1 = 1,
164.
▲
by
mostlylurks
6y ago
Except for base 1.
165.
▲
by
mostlylurks
6y ago
>I've got no idea how you'd do that in React. It's simple, you can place a component that provides dialogs near the root of your component tree and provide async functions which open such dialogs to the descendant componen
166.
▲
by
mostlylurks
6y ago
You can still do this with React, though. It's quite easy (and useful!) to have components which implement some dialog which pops up when you call an async function, which only resolves once the user has finished interacting with that
167.
▲
by
mostlylurks
6y ago
An underscore is primarily used as an identifier to denote a variable/parameter whose name does not really matter. It's more commonly used when you're not planning on using the aforementioned variable, but it's also some
168.
▲
by
mostlylurks
6y ago
The problem is that having a near system-wide locale setting is a bad idea; it necessarily causes friction because it is far less granular then it should be. Ideally, the locale should be a property of some piece of content, if that content
169.
▲
by
mostlylurks
9y ago
If I've understood this correctly, you can more or less do this in C++ by using voldemort types. Here's a nonsensical but demonstrative example program: #include <string> #include <iostream> auto polyret()