Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
csande17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
811.
▲
by
csande17
7y ago
> What economies of scale and purchasing power would make for a differentiable competitive difference vs Local Coffee Co? If Starbucks spends less money buying coffee, that means they can afford to spend more money on nice decorations (a
812.
▲
by
csande17
7y ago
Yup, your understanding is correct. That code behaves equivalently to the synchronous version, and the only benefit is that the thread can run other tasks while it's waiting for the getStuff() and getMoreStuff() to come back. Async
813.
▲
by
csande17
7y ago
> Other languages require templating systems that won't allow you to dump variables because they won't be in scope in the first place. This isn't true of every templating system in popular use. Rails's Action View, if
814.
▲
by
csande17
7y ago
> [Embedding PHP in HTML] obviously has maintainability and security issues. Honestly, I'm not sure it does. The two main security issues in typical PHP software are cross-site scripting and SQL injection, and both of those could be
815.
▲
by
csande17
7y ago
My phone compass is pretty consistently wrong (probably because I use a case with magnets in it), but the AR navigation feature works well for me. It asks you to point your phone camera at "buildings and signs across the street",
816.
▲
by
csande17
7y ago
> Even a nutjob armed with the latest encryption, still needs a gun to kill people. I dunno, I'm pretty sure a determined enough assailant could beat someone to death with a hardcover copy of PGP Source Code and Internals.
817.
▲
by
csande17
7y ago
> Blockbuster was losing $1 billion a year charging those prices. Blockbuster was also running bricks-and-mortar stores, and buying physical DVDs, and replacing them when they broke/wore out/weren't returned. A digital &qu
818.
▲
by
csande17
7y ago
Right, I guess you'd actually want a measurement like "murders per population density" or "murders per (person per square mile)". Or, as it's more commonly known, murder-hectares per capita. Murder-hectares per
819.
▲
by
csande17
7y ago
The "murders per capita per square mile" metric really gets to the heart of the question on every American's mind: what percentage of face-to-face interactions are murders?
820.
▲
by
csande17
7y ago
I think web components fall back to regular elements if JavaScript doesn't run. So <twitter-tweet>Cats are the best!</twitter-tweet> and <button is="very-fancy-material-design-button">Click here!<&#x
821.
▲
by
csande17
7y ago
Web Components are a very good solution if you're YouTube or Twitter and you want to let people embed your content while providing your own styling/behavior for it. It's basically a lower-overhead version of <iframe> th
822.
▲
by
csande17
7y ago
> I don't see a world where Javascript vanishes and privacy gets any better. If JavaScript vanished, it would accomplish one huge win for privacy: it would split the "reading content and submitting forms" part of the Web o
823.
▲
by
csande17
7y ago
> CSS, cookies, external images and fonts, redirect links, referrer headers, browser caches Aside from CSS and redirect links, all of these features are fairly straightforward. The consequences of disabling the Referer header, for exampl
824.
▲
by
csande17
7y ago
I really, really want to see someone write a coin-miner using only HTML and CSS.
825.
▲
by
csande17
7y ago
People say React is easy to optimize, but many of the React apps I use in practice have crummy 50-100 millisecond response times on basic operations like "click button" or "press key in text field". And a significant p
826.
▲
by
csande17
7y ago
I think you're thinking of https://instant.page/ , which is pretty much as simple as "when link is moused over, tell browser to load the page in the background".
827.
▲
by
csande17
7y ago
I, uh, was kidding about Canada being a socialist state... For what it's worth, I had a 128 kilobit connection in Canada because American T-Mobile plans give you one for free when you're outside the country.
828.
▲
by
csande17
7y ago
> The browser has to download the entire document to construct the DOM Actually, the browser can construct the DOM for the first part of the page while it's waiting for the rest of it to download. Like, if the browser starts downloa
829.
▲
by
csande17
7y ago
As I mention in the article, I'm not really able to tell the difference between old MDN and new MDN on the fast network connection I usually use. They both load pretty much instantly for me.
830.
▲
by
csande17
7y ago
I made the video in the article using Chrome's "low-end mobile" throttling preset, which simulates a ~300 kbit connection IIRC. But I saw very similar behavior on my actual phone with an actual 128 kilobit connection in Canad
831.
▲
Browsers are pretty good at loading pages
(carter.sande.duodecima.technology)
592 points
by
csande17
7y ago
|
317 comments
832.
▲
by
csande17
7y ago
> At this point, I'm starting to suspect that most designers actually don't have any clue what they are doing and the entire discipline is 90% following the latest trends. You could say the same thing about the software develop
833.
▲
by
csande17
7y ago
So are desktop Linux users who don't use GNOME or KDE, if we're honest with ourselves
834.
▲
by
csande17
7y ago
> NVIDIA's solutions is so fundamentally different that you'd basically maintain two compositors internally: One that handles every sane driver, and one that handles NVIDIA. If Wayland had a standard compositor interface like X
835.
▲
by
csande17
7y ago
Are the technical problems documented anywhere where non-NVIDIA-driver-developers can learn about them? Most of the discussion I've read online argues that to support NVIDIA's solution, everyone would need to add if(nvidia) checks
836.
▲
by
csande17
7y ago
I'm not super familiar with the details of this stuff -- does this mean that there's basically no hope of any wlroots-based window manager ever working on non-Linux operating systems like BSD?
837.
▲
by
csande17
7y ago
The problem is that wlroots is one of several libraries with this goal. Say I wanted to roll up my sleeves and implement NVIDIA's proprietary interface myself. (Or say in a few years we come up with some new, even better way to allocat
838.
▲
by
csande17
7y ago
> By all means, if you want to do NVIDIA's job, be my guest. If I wrote an X compositor that supported NVIDIA's proprietary interface, it would work with pretty much every window manager that's ever been written. If I patc
839.
▲
by
csande17
7y ago
I would use Wayland, but the most actively-developed tiling window manager, sway, doesn't work with the NVIDIA graphics card I own. And come to think of it, isn't that a really weird problem to have? On X, the compositor (responsi
840.
▲
by
csande17
7y ago
> React, however, has reached a popularity many times larger than RoR ever did. > https://trends.google.com/trends/explore?date=all&geo=US&q=r... I'm not sure this chart is very good evidence of this
More ›