HNHacker News
TopNewBestAskShowJobs

wildpeaks

2,611 karma · joined December 12, 2012

https://twitter.com/wildpeaks https://bsky.app/profile/wildpeaks.fr

[ my public key: https://keybase.io/wildpeaks; my proof: https://keybase.io/wildpeaks/sigs/yQmAnhmw5ODzOpfBpYvX1T7owc-Fwoe6TpMkU8-94Ho ]

submissionscomments
wildpeaks··on Software development and screen readers at 450 words per minute
On a related note, I wish Youtube had an option to play a video faster than 2X (other then downloading the video to play in a local viewer like VLC).

Even as a sighted individual, listening to conference talks at high speed is convenient (and you can still pause if you want to look deeper into something).

wildpeaks··on The End of Arduino 101: Intel Leaves Maker Market
It's quite unfortunate as they were a convenient middle ground between amateur and "we'll sell to you only if you order 500+ units" boards, and the brand was famous enough in less technical circles to help prototypes being taken seriously (given the technical side is rarely what kills off a project).
wildpeaks··on React v15.6.0 Released
Personally, I kept the concept of unidirectional flow of data, but instead use a Web Worker as storage of state, which emits immutable props to render.

Components can post messages to the worker to request an action on the state that will most likely change its data, but they can't edit the data directly, and props are only emitted if there is really a change in data.

Inside the worker, state is stored as immutable data, and action handlers are only allowed to make one non-async change (because the return value is the modified state). If it needs to do multiple things (e.g. download then process the result), it must schedule another action when it's ready to do the sync operation. This splits into granular easy-to-test operations on the state.

That way, it limits React (or Preact) to rendering (so it can also be used with other libraries, e.g. WebGL), and you can record the messages going through the worker to replay and analyze a scenario.

So far I'm happy with this setup, but I can understand the allure of thirdparty libraries instead.

wildpeaks··on Turning Off GitHub Issues (2016)
A benefit of Github Issues is that users can also help each other.

For example, this happened recently:

User 1 kept having an issue, but no idea how to get debug infos.

User 2 had the issue once too and knows how to get debug infos, but can't reproduce the error.

By having both post in the same issue, the root cause and a matching solution were found before the maintainer even saw the issue :)

wildpeaks··on Using Deep Learning at Scale in Twitter’s Timelines
Exactly. Why should Twitter choose which of my friends' posts I'm allowed to see ?
wildpeaks··on Writing custom ESLint rules for your picky developers
Rather than trying to impose one style over another, (or worse, pretending one is standard and everyone else is wrong), it saves time to just let your devs set their editors to automatically open in the style they think best with (because the reason picky devs argue about syntax is to avoid frustration and losing focus when reading code), and let the commit hook format back to a common style.

Tools help you get the job done, not get in the way.

wildpeaks··on 3D scanning like a pro
That costs 1000 times the hardware described in the article, it's not the same target audience.
wildpeaks··on Getting Started with Headless Chrome
If you plan to use it for automated tests, note that headless Chrome is only available on Mac & Linux (in Chrome 59), not on Windows yet.
wildpeaks··on Read and understand code faster with programming ligatures in Fira Code font
If you want to use Fira Code in Visual Studio Code, use this in settings.json:

    "editor.fontFamily": "Fira Code"
    "editor.fontLigatures": true
wildpeaks··on TypeScript 2.3
It's a good thing, competition is a fuel of innovation :)
wildpeaks··on Why-did-you-update – Warnings about unnecessary React updates
Deeply frozen data is a good middle ground to have immutability without Immutable.js: during development, automated tests can catch code that would attempt to mutate, and you have the option to remove the deep freezing in the release version to have no runtime penalty once you're confident that nothing can mutate the data.
wildpeaks··on Why Recorded/Playback Tests in Selenium Break
Personally I prefer Protractor (wrapper for Selenium / WebDriver) to Selenium IDE: despite being officially advertised for Angular, it works just fine for non-Angular as well, and takes care of installing and updating webdrivers, and the tests are code instead of a wysiwyg UI.
wildpeaks··on Prettier 1.0
It would be useful to compare with "eslint --fix" given Eslint can already reformat (on top of linting non-style things, and projects usually already have Eslint settings).
wildpeaks··on Closure Compiler vs Rollup vs Webpack
You can also use Closure Compiler (instead of UglifyJS) with Webpack: https://github.com/roman01la/webpack-closure-compiler
wildpeaks··on Using A-Frame for WebVR and AR
VRML both had node definitions and a scripting part, it's not just a 3D file format in the sense that it's not just describing 3d meshes but also how to interact with it.
wildpeaks··on Ask HN: Is there room for another search engine?
I wish there was a way to use both Verbatim and Date Range at the same time: you end up having to choose between recent but irrelevant results, or relevant but obsolete results.
wildpeaks··on The Biggest Difference Between Coding Today and When I Started in the 80s
I assume you meant Leap Motion instead of Magic Leap?
wildpeaks··on Guetzli: A New Open-Source JPEG Encoder
Thanks, I'll give it a try :)
wildpeaks··on Guetzli: A New Open-Source JPEG Encoder
Just tried the precompiled binary from:

https://github.com/google/guetzli/releases

and I'm getting "Invalid input JPEG file" from a lot of images unfortunately.

wildpeaks··on Chromium: Add support for Animated PNG
I'd be curious to know why they chose APNG over MNG.
wildpeaks··on How can a programmer help The New York Times report stories?
I recall the creator of the open source library D3.js also used to work there and did a lot great interactive pieces for articles.

Their open source blog is also quite interesting: https://open.blogs.nytimes.com

wildpeaks··on Twitter Takes Aim at Anonymous Egg Accounts
I hope they took into account that blind users usually also don't upload avatars.
wildpeaks··on Ask HN: How would you turn Twitter around?
I would gladly play to remove sponsored tweets and just display all tweets from the people I follow, in chronological order (because even with the preference turned off, I still see tweets being moved around in the timeline x.x)
wildpeaks··on Seven earth-sized planets discovered circling a star 39 light years from Earth
That's exactly the premise of the (good) movie Another Earth: http://www.imdb.com/title/tt1549572
wildpeaks··on Callback Hell (2016)
As much as I enjoy async/await, the filesize penalty once Babel-ified can bloat up your bundles; better stick to Promises-only for now, even if it's slightly more verbose.

However they can already be used in Node with the "--harmony-async-await" flag (and without flag in the upcoming Node 8).

wildpeaks··on Node v7.5.0 Released
The 250Kb extra weight to the Babel bundles (compared to the equivalent callback version) is quite frustrating though.
wildpeaks··on Selenium IDE alternatives for UI regression testing
I'd recommend coding the tests instead of using the IDE, much less frustrating.

Protractor (http://www.protractortest.org) is a good wrapper for Selenium: despite the name, you can totally use it with non-Angular pages (I'm a Preact person myself). It's convenient because it handles installing and updating webdrivers (which was especially handy on Windows), and seems well-maintained. And if you're using only Chrome and Firefox, it even has a direct connection mode to skip having to run a Selenium server (example: https://github.com/wildpeaks/threejs-examples-screenshots).

Otherwise if you just want to run tests in a real browser environment but don't want to test in multiple browsers, you could run them in NW.js, Electron, SlimerJS, or PhantomJS.

wildpeaks··on Intern Impact: Brotli compression for Play Store app downloads
No, Google interns are paid more than most devs in Europe.
wildpeaks··on “We have decided to disable IMDb's message boards”
Another piece of Internet History gets deleted, that's a pity. Personally it literally was the very first url I memorized back in IE3 times, and eventually first online user account as well (June 1999, wow, time flies).
wildpeaks··on [dead]
That XKCD comic with only part of the background removed before it was pasted on the shirt mockup in the header seems odd.
← PreviousPage 13 of 21Next →