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 Yarn Plug'n'Play: Getting rid of node_modules
Thing is, node_modules isn't just thirdparty modules.

It's just what the Node path resolution standard uses, which is also how Local Modules (the "/src/node_modules" structure) allows you to import other files with clean paths, without having to add a config in every tool of the toolchain, post-install symlinks, or any other non-crossplatform tricks. It just works because it's literally what Node uses to resolve paths, and all build tools are based on Node, so when you stick to the standard resolution, you can add new tools to the toolchain without needing a bunch of configs for them to find your files. For example, it's now also the default resolution in Typescript as well.

The only time /src/node_modules doesn't work is when tool goes out of its way to break it, and wrongly assumes that node_modules can only ever be used for external thirdparty code (e.g. Jest).

So best of luck to make Node + NPM + Yarn to agree on a new path resolution syntax, but I hope we won't end up with another tool-specific resolution that only works in Yarn.

wildpeaks··on Things People Eventually Learn About JavaScript Projects
Or even both because Eslint has a Typescript parser too now.

This is the config I use with Typescript projects, if you're looking for inspiration: https://www.npmjs.com/package/@wildpeaks/eslint-config-types...

wildpeaks··on MoviePass couldn’t afford to pay for movie tickets on Thursday
The Nerdwriter has a good video (short, just 6 minutes) about it: https://www.youtube.com/watch?v=w876zZZIb10

The gist of it is, they're hoping to grow so big that movie theaters will have no choice but to negotiate with them, to share part of the revenues they bring theaters from people who normally don't come watch movies on a whim anymore.

wildpeaks··on Chrome will mark all HTTP sites as ‘not secure’ starting in July
If you wonder how to get HTTPS for your local virtual hosts:

1. create a local CA

2. create a certificate using that local CA

3. Then you can add the CA in your trusted authorities (Firefox does need an extra step: either enable the "security.enterprise_roots.enabled" flag, either import the CA certificate manually in it).

Details at: https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb...

wildpeaks··on There was a time when search engines were a thing, and it seems they still are
I wish Google would let us use both Verbatim (use all keywords I entered as-is instead of assuming you know better than I what I meant to be searching instead) and filter by date (to get most recent results first) because right now, you have to choose between relevant but outdated results, or irrelevant but recent results, both being frustrating.
wildpeaks··on ‘You can't use Brotli for dynamic content’ and other misconceptions
This still relies on a special build of Nginx (from the PPA repo) instead of LTS Nginx, although I agree that it's already more convenient than unpackaged sources.
wildpeaks··on ‘You can't use Brotli for dynamic content’ and other misconceptions
I wish there was a simpler way to use Brotli with Nginx: at the moment, either you have to compile from sources, either rely on a PPA to use a special build of Nginx (and an extra module) instead of the one from the LTS packages, even in 18.04.

I'd especially like to use Brotli because it has good support in modern browsers (pretty much everything except IE11) and would be good replacement for gzip (which should be disabled for HTTPS).

wildpeaks··on Certificates for localhost
Good timing, I was working on a short tutorial on how to setup HTTPS for localhost, including how to get a green lock even in Chrome 58+: https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb...
wildpeaks··on Partnership between Unity and Google
Especially as I seem to recall that Visual Studio is now the recommended editor in Unity 2018, so it would have made sense to pick Microsoft for this as well.
wildpeaks··on Stop Calling These Dark Design Patterns or Dark UX
If "Dark Pattern" is not strong enough a term, how about something like "Con Pattern"?
wildpeaks··on Windows chief Terry Myerson out as Microsoft reorganizes
I was the same (win10 pro as well, immediately customized options), then I saw a fresh install on a customer laptop to setup, and oh my god what a mess.

Thankfully for now there are still settings to turn off most of it, and removing all squares/tiles form the menu makes the Start menu look like the classic clean concise style, but it's frustrating that most people get stuck with the subpar experience.

wildpeaks··on Google Memory Loss
I wish you could use both Verbatim and Sort by date at the same time. Instead, you end up having to choose between recent but irrelevant results, or relevant but outdated results.
wildpeaks··on The State of JavaScript 2017
Regular Uglify vs Uglify-es, Babili, Closure Compiler, and I'm probably forgetting others.
wildpeaks··on Leica Adds 3D Laser Scanner with 1km Range to Product Lineup
That site immediately asks for your geolocation and opens a popup after a few seconds.

Better link to Leica directly instead: http://leica-geosystems.com/products/laser-scanners/scanners...

wildpeaks··on SAGE: A Test to Detect Signs of Alzheimer's and Dementia
It has both links to the tests and instructions on how to interpret the results.
wildpeaks··on How I built the Chrome T-Rex Game in real life
Here's a video of the project: https://www.youtube.com/watch?v=aOIL5mnZ_t0
wildpeaks··on Show HN: Node.js node_modules file pruning
It's more an issue with the modules authors, npm already has a documented way to exclude files from being published.

Furthermore, it would be quite irritating if it started assuming specific file extensions are forbidden instead of using the explicit list provided by the author.

wildpeaks··on What boredom does to you
I'm not sure we have the same definition of boredom: I can't be bored when left to my own thoughts without external stimuli (which is precious time, you need to allow yourself to have time to "do nothing", otherwise you're only ever reacting to events), on the contrary.

The only time I can experience the brain-dead zombie state that is boredom is when I have to pay attention to a mind-numbingly inefficient task I am powerless to improve, like passively listening for hours to an auditorium university lecture that makes the mind rebel against the inefficiency (despite I love learning, but using other means).

Frustration seems more like one that stimulates creativity as it motivates to find workarounds or new directions.

wildpeaks··on Announcing TypeScript 2.6
Yes I know what Browserify (and Webpack, Require.js, Rollup, JSPM, etc..) are, I've used them extensively and even wrote extensions for them :)

What I was referring to is the the "lib" setting of tsconfig.json: when you have code that is meant for both Node and the web, it would be better tested only against the smaller scope of functions and globals that are shared by both (like the eslint env "shared-node-browser").

Right now, people add the "dom" lib even when they just meant the non-DOM subset common to both (such as console), so if for example you accidentally refer to a window method in a module meant to be usable in both contexts, it won't get caught until runtime.

wildpeaks··on Announcing TypeScript 2.6
I wish there existed a lib for code that targets both Node and the browser, something like Eslint's "shared-node-browser" env.
wildpeaks··on Things I Wish I'd Known Before Using Vagrant
A couple more for the list:

11. Shared folders get setup before provision scripts are run

12. You can detect provision has already run (https://github.com/hashicorp/vagrant/issues/936#issuecomment...) using:

  if File.exist?(".vagrant/machines/YOUR_BOX_ID/virtualbox/action_provision")
13. Vagrantfile configs are actually Ruby scripts, so you could do things like storing your box configs in JSON (like I did in https://github.com/wildpeaks/boilerplate-vagrant-xenial64 ) instead of hardcoding them in the Vagrantfile.

14. Virtualbox needs Hyper-V disabled whereas Docker for Windows requires Hyper-V enabled.

wildpeaks··on Microsoft Has Stopped Manufacturing The Kinect
Especially as it was a sharp contrast to the history of the Wiimote, where Nintendo had had the opposite reaction and tried to lock DIY makers out once they realized people were using it for unintended purposes.

I'm glad Microsoft was smarter about this, it enabled a lot of otherwise costly to develop ideas to emerge at the time and the gaming use of the Kinect is almost anecdotal in retrospect.

wildpeaks··on Oracle VM VirtualBox 5.2 Is Now Available
I wish I didn't have to choose between Docker for Windows (which requires Hyper-V enabled) and Virtualbox (which requires Hyper-V disabled afaik) on Windows 10, both are useful.
wildpeaks··on Half of UK adults are financially vulnerable, City watchdog finds
Those at the edge of not being able to afford rent already don't take vacations and don't spend frivolously.
wildpeaks··on IGN acquires Humble Bundle
Damn, I hope they won't close the section that lets you buy (most) Steam games all year round. Unlike regular Steam, it doesn't have the frustrating "geolocation-locked" limitation the Steam store has in Germany (which is very frustrating when you're not German, just an expat).

At least Apple's AppStore lets you buy from your own country's store instead of assuming the country from geolocation.

wildpeaks··on Video Games Satisfy Basic Human Needs
Extra Credits even has an excellent episode on Bartle's taxonomy: https://www.youtube.com/watch?v=yxpW2ltDNow
wildpeaks··on Microsoft acquires AltspaceVR
There were also all the blaxxun-based ones, such as Cybertown or the one from Canal+.
wildpeaks··on DigitalOcean Spaces
Is there a JSON version of this API, or is XML the only way: https://developers.digitalocean.com/documentation/spaces/ ?
wildpeaks··on Better Database Migrations in Postgres
Not OSS nor free, but I've always been happy with Navicat: https://www.navicat.com/en/products/navicat-for-postgresql
wildpeaks··on Flow and TypeScript
To be fair, one can also stick to .js files and use TS in checkJs mode, in which case it uses jsDoc comments to add types information, so there is no extra step to strip types.

The downside is that a few features don't have a jsDoc equivalent. But it would already catch most of the things you'd use a type checker for, without the hassle of going full Typescript: you could even completely remove typescript from the project and it would still work given they're just JS comments.

← PreviousPage 12 of 21Next →