HackerTrans
TopNewTrendsCommentsPastAskShowJobs

peterbe

no profile record

Submissions

Show HN: Web app to make screenshots from a video file without a server

video-to-screenshots.peterbe.com
1 points·by peterbe·vorig jaar·0 comments

Show HN: You Should Watch

peterbe.com
5 points·by peterbe·3 jaar geleden·0 comments

Show HN: DocsQL

peterbe.com
3 points·by peterbe·4 jaar geleden·0 comments

Tips and tricks to make you a GitHub Actions power-user

peterbe.com
1 points·by peterbe·4 jaar geleden·0 comments

Look cool knowing where the word GREP comes from?

youtube.com
3 points·by peterbe·5 jaar geleden·0 comments

Thank You MDN

ilovemdn.org
1,283 points·by peterbe·6 jaar geleden·319 comments

comments

peterbe
·4 jaar geleden·discuss
Shameless plug if it helps anybody else, like it helped me; http://govspy.peterbe.com/
peterbe
·5 jaar geleden·discuss
What do you miss about it? Can you not find what you're looking for?
peterbe
·5 jaar geleden·discuss
It's pseudo code. The real code is TypeScript React and looks very different and it wouldn't serve the article to take snippets from that code to explain how it works.
peterbe
·5 jaar geleden·discuss
Getting accessibility right is hard. We very much care about that. One of the strong reasons for why we're using Downshift.
peterbe
·5 jaar geleden·discuss
> They hi-jacked the browser's `/` key to focus the field, which is something I hate.

You're not the first one to point it out. Please join github.com/mdn/yari to raise your voice. It's an Open Source project after all.

> They should have just had the search field focused automatically

Why? There's a lot of JS to load to make that work. If you never need to do a search (e.g. from a Google search) it would be a potential waste.

> Also, I'm confused, I thought https://mdn.dev/ was the new thing because Mozilla was stepping back from MDN. Is it a fork?

That domain is just an alias we don't currently use. It's still the old MDN from Mozilla. No fork.
peterbe
·5 jaar geleden·discuss
MDN has 2 search things: 1. client-side only which downloads a complete list of all titles. 2. full-text search on everything with Elasticsearch.
peterbe
·5 jaar geleden·discuss
Relevancy is the huge game-changer. MDN uses pageviews analytics to determine was a "popular" age is.
peterbe
·5 jaar geleden·discuss
(author here) We're still on FlexSearch 0.6 and the new 0.7 is a big refactor. I hope we can upgrade some time.
peterbe
·5 jaar geleden·discuss
<datalist> is awesome! But I find it works better for short options. See https://www.peterbe.com/plog/datalist-looks-great-on-mobile-...
peterbe
·6 jaar geleden·discuss
On every document, there are appropriate links at the bottom .
peterbe
·6 jaar geleden·discuss
Can you scroll to the bottom of that page and use the "Report a problem with this content on GitHub" link?

The raw content is not Markdown. It's HTML with some macros (called kumascript macros).

And yes, you can "host MDN locally" now. Before you had to write a web scraper, now you can just iterate over the files after a `git clone`. But you might need Yari to build the raw HTML to fully formed HTML that you can open in your browser.
peterbe
·6 jaar geleden·discuss
It's not that easy. We have 60+k pages carried over from 15 years of organic evolution. It's unstructured and messy. A move away from HTML to something "more popular syntax" (like Markdown) is NOT easy.
peterbe
·6 jaar geleden·discuss
MDN is powered by a mix of people paid (by Mozilla, Google, Samsung, Microsoft) and contributors who volunteer their time.
peterbe
·6 jaar geleden·discuss
Why would it be for the worse?
peterbe
·6 jaar geleden·discuss
Sorry(?) But it's still just MDN (or MDN Web Docs). Yari is just the code name for the code repo. Not a particularly important name.
peterbe
·6 jaar geleden·discuss
This is just the beginning. Finally we can do the kind of web performance improvements we couldn't do on the old platform. But to boot, we gained 10-20% on the First Render metrics. And because of the whole new way we deploy, we went from a 27% hit ratio (of popular pages) to 96% in the CDN. That means ~70% of the time you gain about 300-500ms on the initial load. And besides, before, cold cache misses in the CDN would result in a backend server rendering whereas now a cold cache miss just means an S3 lookup.
peterbe
·6 jaar geleden·discuss
PostgresSQL is better. We're all aware of that. But it's miniscule in importance. Especially if you use the ORMs and other decent tooling. The move to git isn't MySQL's fault. It's so more and bigger than that.
peterbe
·6 jaar geleden·discuss
1. That's right! But it's not really on the roadmaps either. One can hope that someone in the community writes a fancy web app wrapper for GitHub's API or something.

2. Yeah, it's really really convenient to submit a quick PR entirely in the GitHub Web UI. But I admit, we have some work to do make the previewing experience a bit better.
peterbe
·6 jaar geleden·discuss
What's cool about git as a persistent storage, is that you can use vscode, emacs, vim, or notepad. Or you can write a little web app that starts a WYSIWYG editor on localhost:8888 or Heroku and have it dump to the file system and then you just need to write a script that takes care of submitting the PR from there.
peterbe
·6 jaar geleden·discuss
Also, keep in mind all the tooling GitHub offers. Comments with reactions, quoting, permalinks, blocking, etc. Yes, it can be built in-house but would cost a fortune.