Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
211.
▲
by
goto11
4y ago
Attributes exist because HTML is a markup language where text is the primary content and markup adds structure and metadata. Eliminating attributes would mean metadata should be expressed as text content, which in turn means it is not reall
212.
▲
by
goto11
4y ago
The element/attribute distinction is because HTML is a markup language, where the primary content is text and markup is used to add structure and metadata. You can eliminate attributes to get a simpler format, but it isn't really
213.
▲
by
goto11
4y ago
Why doesn't markdown qualify as a markup language?
214.
▲
by
goto11
4y ago
So am I correct in the understanding that Object.freeze in JavaScript does not provide any useful protection against malicious code? But in a different language, or a hypothetical future version of JavaScript, it might play a role in such a
215.
▲
by
goto11
4y ago
I guess I have a hard time seeing how Object.freeze() protects against malicious code, when any malicious script can still access the global object? I can understand something like the "Shadow realms" proposal, where a modules acc
216.
▲
by
goto11
4y ago
Interesting! But I have a hard time understanding the use case in the context of a web page. If you import malicious code in a web app, wouldn't it be able to wreck all kinds of havoc anyway?
217.
▲
by
goto11
4y ago
I'm unclear about what kind of threat "freeze" protects against. Is it just protecting against your own mistakes, or against malicious code somehow running in the same JavaScript process?
218.
▲
by
goto11
4y ago
C# also have great IDE support in VisualStudio especially with the ReSharper extension. Which is also developed by JetBrains.
219.
▲
by
goto11
4y ago
The original scriptures did not use Arabic numerals.
220.
▲
by
goto11
4y ago
Optimal for reading prose texts. I believe experiments have shown the optimal line width for reading speed and comprehension to be about 50-60 characters. But as far as I known this have only been researched for reading prose. I doubt the r
221.
▲
by
goto11
4y ago
> They are basically KeyValues, where the value is just always equal to True That would be a set of values :-)
222.
▲
by
goto11
4y ago
Great, I will tell that to my customers!
223.
▲
by
goto11
4y ago
> Obviously a string quartet doesn't normally play equal temperament This seem to refute the assertion by arxanas that "all keys sound the same (unless you have perfect pitch)".
224.
▲
by
goto11
4y ago
Exceptions are the worst, except for any other way of handling errors.
225.
▲
by
goto11
4y ago
Lets say I write a HTML page. <h1>Hello world</h1> Is less work and complexity than: <h1>{{ UserMessage("Hello world") }}</h1> Introducing this abstraction before it is needed is a
226.
▲
by
goto11
4y ago
This is still not YAGNI enough for me. Why introduce a wrapper you don't need? The thinking behind anti-YAGNI "future proofing" seem to be that it is cheaper to change something now than in the future. But I reject this premi
227.
▲
by
goto11
4y ago
Perhaps it is easier because Peyton Jones is a world class expert in Haskell and have 30 years experience refactoring it? In my experience the ease of refactoring is more depending on the quality of the code you are refactoring than the lan
228.
▲
by
goto11
4y ago
> policy making based on objective truth Policy making is not about truth, it is about values and priorities.
229.
▲
by
goto11
4y ago
Isn't equal temperament only possible for some instruments?
230.
▲
by
goto11
4y ago
Leaning new languages is great fun, but I do think it has diminishing returns when you have covered the major paradigms. The key to growth is to discover new "aspects" where you can broaden your experience, e.g. windows vs unix, d
231.
▲
by
goto11
4y ago
He wasn't condemned to death because of his annoying questions, he was condemned because he was considered partly responsible for the "Thirty Tyrants" rule of terror which replaced democracy in Athens. Socrates was vehemently
232.
▲
by
goto11
4y ago
The example described is the textbook definition of bias. Given the exact same text, the participants rate it higher if a male name is attached.
233.
▲
by
goto11
4y ago
The OP mention it is the same text which is rated differently depending on the gender of the author.
234.
▲
by
goto11
4y ago
Linus' point is that safety means something different in kernel programming than in PL theory, and that Rust have to be safe according to kernel rules before it can be used for kernel programming.
235.
▲
by
goto11
4y ago
Most importantly you should write in stone or clay in an arid climate.
236.
▲
by
goto11
4y ago
It is generally agreed that long narrative poems like Homer was transferred orally for centuries before getting written down the first time.
237.
▲
by
goto11
4y ago
Sure, but presumably the Sumerians also had a long oral tradition predating writing. It is just that we don't know anything about oral traditions thousands of years ago, since they leave no archeological trace. What we can know about i
238.
▲
by
goto11
4y ago
Gilgamesh has characters and a long story with character development, which makes it quite distinct from other kinds of writing like inventories, prayers, collections of advice etc. Typically it is called the first epic. The article is kind
239.
▲
by
goto11
4y ago
Depends on what you like I guess? But if you like ancient epics it is great. Monsters, friendship, sex, death, a search for immortality etc. Be aware that is is only partially preserved, so there is a lot of missing passages in the text whi
240.
▲
by
goto11
4y ago
> Maybe he doesn't have any close family and is referring to distant cousins. You are just making up stories. Of course you are free to make up any story you want if this helps with the cognitive dissonance arising the text.
More ›