Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exogen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
301.
▲
by
exogen
11y ago
It's not so much that arrow functions "don't use it" that I'm complaining about but rather that they change the meaning and thus have confusing results. Also, changing that example to use rest parameters: func
302.
▲
by
exogen
11y ago
Is it common for people to enable these deoptimization messages (e.g. "Unsupported phi use of arguments") somehow when they're optimizing code? I know there are linters that might warn you about some cases, and the Chrome dev
303.
▲
by
exogen
11y ago
It's very tempting to say that, but that's a bit of a privileged stance. ("I wouldn't mind, so nobody else should mind either!") Analogy: Let's say you take a free intro taekwondo class. They outfit you with a
304.
▲
by
exogen
11y ago
Someone on my team has started such a project, encoding a few companies' style guides as eslint defaults: https://github.com/walmartlabs/eslint-config-defaults You can then use eslint's `extends` feature to u
305.
▲
by
exogen
11y ago
Also, it's simply just not the direction we should be going in (especially in the US, which is already overrun with cars and sprawl). We need to make the roads more bike friendly, and that doesn't mean adding bike lanes everywhe
306.
▲
by
exogen
11y ago
This would make it impossible to do any bike touring at all. The longest trip I did was 2,000 miles and I can tell you: you need to go on highways, period. Not the interstate, which is not allowed in many places (but is in some!) but highwa
307.
▲
by
exogen
11y ago
It does sound...vintage. The male voice (especially in The Chaos example) sounds exactly like the computer's voice in WarGames.
308.
▲
by
exogen
11y ago
per (1), these are my dotfiles and I use Bash exclusively, ergo, I use the syntax I consider better (because you can easily search for "function" and not the standard syntax with no keyword).
309.
▲
by
exogen
11y ago
I don't want to give it a YouTube URL though – with this I can type `play pixies debaser`.
310.
▲
by
exogen
11y ago
An outdated version of youtube-dl, is all I can think of – run `youtube-dl -U`.
311.
▲
by
exogen
11y ago
Some pro trips: by default it searches YouTube for the argument you give it, but if given a URL, youtube-dl will always use that instead. So `play <bandcamp URL>`, `mp3 <SoundCloud URL>` will work. If the first result for your s
312.
▲
by
exogen
11y ago
I have a similar function in my bashrc, which also relies on youtube-dl (which is amazing, btw, it does a LOT more than YouTube – bandcamp, SoundCloud, etc). `play` will instantly play any song (great for parties), and `mp3` will download i
313.
▲
by
exogen
11y ago
It does look bothersome, but if they moved the baseline down, then the 'q', 'g', and 'p' would be the problematic ones (they already look "too low" out of context with the rest, even shifted up).
314.
▲
by
exogen
11y ago
Because JSX is shorthand for the DOM, not for the HTML serialization of the DOM. In the DOM API (the official W3C one, not React's), the property name is className.
315.
▲
by
exogen
11y ago
Note for anyone else sent to the ChromaTouch article instead: Blogspot's JavaScript router is extremely broken. The actual article linked to can be found in the left nav.
316.
▲
by
exogen
11y ago
It's because anyone who has done any complex web app development knows that you don't have one button changing color. You have 100+ UI components whose state may depend on one another, and as the DOM nodes composing those UI eleme
317.
▲
by
exogen
11y ago
I mean, in the sense that technically when you publish anything on GitHub/npm/PyPI/RubyGems/etc. you're "offering" it to Windows and Linux users – sure. Given that the editor plugin is not a standalone sof
318.
▲
by
exogen
11y ago
Adding another good talk on the subject: https://www.youtube.com/watch?v=NoaxsCi13yQ Many people's gut reaction is that the folks doing inline styles just don't know CSS well enough and haven't learned the te
319.
▲
by
exogen
11y ago
Indeed, it's better in a bunch of ways! The one that finally got me to switch was that Jasmine didn't have an official CLI version for the longest time; it was browser-based and the CLIs were all third-party (and none of them very
320.
▲
by
exogen
11y ago
The polyfill implements setImmediate using postMessage in IE8, though. AFAIK it's not really possible to polyfill WebWorkers.
321.
▲
by
exogen
11y ago
Additionally, you can open the Help menu for any app by pressing Cmd-?, and the search box there will find any menu item for you.
322.
▲
by
exogen
11y ago
But, like the parent said, in Python 3: >>> (False, True) = (True, False) File "<stdin>", line 1 SyntaxError: can't assign to keyword
323.
▲
by
exogen
11y ago
Are you changing the code, or is it nondeterministic? I just reloaded and the last three pictures (cat, car, peacock) all had their vibrant color change. Edit: Interestingly, it looks like it may sample the image at its visible size and not
324.
▲
by
exogen
11y ago
Cool! A few years ago I was couch surfing at a stranger's house on the opposite side of the U.S. and found myself unable to find the house again after a late night at the bar. Didn't have the address because we had met on a bike t
325.
▲
by
exogen
11y ago
Still confusingly, when you do select Sheets, the domain is still docs.google.com (as is the URL for the sheet itself).
326.
▲
by
exogen
11y ago
Wow, you're right. It didn't even occur to me that the domain would have any effect whatsoever.
327.
▲
by
exogen
11y ago
I wasted a few minutes the other day searching for a spreadsheet in Google "Drive"...because by default only "Docs" are selected and for whatever reason that refers only to "Word" style documents now, not sprea
328.
▲
by
exogen
11y ago
If anyone is wondering what "become a villager" means on your phone or tablet – try it, it's cool! You are placed on the ground in the town, and physically move your phone around to control where you're looking. I could
329.
▲
by
exogen
11y ago
During a cross country bicycle trip my partner and I were camping just outside a tiny town in the middle of Colorado. I had trouble sleeping and kept getting out of the tent to look around due to what sounded like a large flag blowing in th
330.
▲
by
exogen
12y ago
Looking at the first few cars listed on that page – it looks like each has stats that sum to exactly 300, so this may have been a hardcoded limit preventing what you describe.
More ›