Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ahoge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
31.
▲
by
ahoge
11y ago
Zen Garden is pretty much the opposite of what one should do nowadays. Someone wrote some markup and sprinkled a ton of CSS hooks on top and then someone else came along and wrote the CSS. It uses these 12 IDs: css-zen-garden, design-archi
32.
▲
by
ahoge
11y ago
The only problem with HFCS is that it's cheaper than dirt.
33.
▲
by
ahoge
11y ago
It does work, but you need a browser which supports all of the used ES6 features (even in sloppy mode). As far as I can tell, it should work in Microsoft Edge. It will work in Firefox once they enable `let` without specifying the script ver
34.
▲
by
ahoge
11y ago
The one at my local university dispenses chilled water with light carbonation. I wish I had one of those at home. Tap water doesn't get any fancier than this.
35.
▲
by
ahoge
11y ago
> But WebComponents aren't "new elements." How so? What's the difference? Just like native elements, Custom Elements work with any modern framework. You can just add them to the DOM and they will work fine. They hav
36.
▲
by
ahoge
11y ago
Interesting data, poor presentation. The tables need some formatting and colors would be nice, too. Instead of "slower" and "faster" it should be just a factor. So, 2x would mean that it takes twice as long and 0.5x woul
37.
▲
by
ahoge
11y ago
> new Array('a') ["a"] > new Array(2, 3) [2, 3] > new Array(2) [undefined, undefined] > new Array(2.3) RangeError: invalid array length > new Array(2.3, 4.5) [2.3, 4.5] The Array
38.
▲
by
ahoge
11y ago
It's not an issue since using a non-hoisted variable before it was declared is an error. Your editor should immediately highlight this error with a squiggly line.
39.
▲
by
ahoge
11y ago
> You can only compare things meaningfully when you have comparable knowledge of both. Lisp isn't the only language which allows you to nest things. You can nest function calls, lists, objects, tuples, and whatever in any language
40.
▲
by
ahoge
11y ago
> This is simply the case of getting used to something. My point was that other languages provide more visual hooks. Lisp is just words and parens. Nothing sticks out. Everything is the same. So, you can't learn this "visual
41.
▲
by
ahoge
11y ago
> I have no idea what you mean here. Nested lists are similar to nested function calls. Did you skip the rest of the paragraph? > the "things" are sticking out in a variety of ways No, they don't. Syntax-wise, every
42.
▲
by
ahoge
11y ago
> How can you be disliking it from a practical point of view if you don't use it in practice? I had plenty of exposure to deeply nested things. This is pretty much like nested function calls. "foo(a, b)" and "(foo a
43.
▲
by
ahoge
11y ago
> Firstly, Racket is not a Scheme. Did I talk about Racket anywhere? > Does this look like S-expressions to you? "MiniPacal implemented in Racket" Are you really arguing that implementing some other language is the way t
44.
▲
by
ahoge
11y ago
> [Scheme's syntax is] not that uniform, really. "Scheme's very simple syntax is based on s-expressions, parenthesized lists in which a prefix operator is followed by its arguments. Scheme programs thus consist of sequen
45.
▲
by
ahoge
11y ago
> You get to the end and all of a sudden the }(); With most code conventions, you wrap immediately invoked function expressions (IIFEs) in parens: var foo = (function () { ... }()); The only purpose of those extra parens i
46.
▲
by
ahoge
11y ago
Yes, I "dare" to have an opinion on that syntax. I like it from a theoretical point of view. It's very uniform which is convenient for implementers. It's brilliant, really. However, I dislike it from a practical point of
47.
▲
by
ahoge
11y ago
"This stuff" was referring to the entry point. I didn't complain about parenthesis. ASM's syntax is also extremely simple, but that doesn't make it easy to use, does it? If everything looks the same, it's hard
48.
▲
by
ahoge
11y ago
https://en.wikipedia.org/wiki/Scheme_%28programming_language...
49.
▲
by
ahoge
11y ago
> Or assuming hello is a global in your dart example The way it's written implies that it's somewhere inside some block, because "main()" is always the entry point. I wrote it like that because I couldn't be bo
50.
▲
by
ahoge
11y ago
The example was taken from Wikipedia's Scheme article. I do not know how to write Hello World in Scheme. By the way, I really like how everyone's Hello World looks different.
51.
▲
by
ahoge
11y ago
Best? If we'd all agree on what "best" means, we wouldn't discuss anything ever. Scheme and all the other Lisp variants look terrible to me. Having an excessively simple syntax doesn't mean that it's nice to us
52.
▲
by
ahoge
11y ago
They meant something like "var n = Date.now". However, there is no guarantee that this will work since it assumes that `this` isn't used by that function. E.g. if you want to do something like that with console.log or documen
53.
▲
by
ahoge
11y ago
Norwegian with Sámi has a lot of collisions. With the regular Norwegian layout, the only collision should be µ (M + AltGr).
54.
▲
by
ahoge
11y ago
AltGr is used by many layouts such as German, Turkish, French, Polish, and US International. https://en.wikipedia.org/wiki/AltGr_key Also, this was supposed to be fixed in 1.0. I don't know why they decided to rel
55.
▲
by
ahoge
11y ago
Eh. Why is 1.0 out already? Keyboard layouts which use AltGr are still broken. E.g. I can't type '@', '\', and 'µ'. Yes, I can't write metadata annotations or escape some characters.
56.
▲
by
ahoge
11y ago
Only a tiny percentage of websites uses a dark color scheme. I have a small bookmarklet for nuking colors, which I can run via some shortcut (ShortcutKey2URL). javascript:for(var e of document.querySelectorAll('*')){e.style.color=
57.
▲
by
ahoge
11y ago
If you are fine with bright text on dark backgrounds, sure. I'm not. Looking at this for a few minutes will impact my vision and it will most likely also cause severe headaches. Migraine is fun like that. Anyhow, the tddbin site uses a
58.
▲
by
ahoge
11y ago
Since ES5, you can't use `with` in strict mode. Well, you shouldn't use it anyways since it's confusing/ambiguous and it's also terrible for performance.
59.
▲
by
ahoge
11y ago
Hard limits aren't much of an issue if updates are rolled out ever 6 weeks.
60.
▲
by
ahoge
11y ago
I should have used Object.freeze(this) in the c'tor.
More ›