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 Exploring ES6
If you stick to ES2015 features that Node 6/7 support, you can skip transpilation node-side though. Depending on the project, that can be quite convenient.
wildpeaks··on Webpack v2 is officially released
The headline is not wrong, it is 2.2.0.

The reason is there was apparently an earlier attempt some time ago to release a v2, but it didn't go through at the time: https://twitter.com/TheLarkInn/status/821451320137748481

wildpeaks··on PhantomJS 2.5.0 release
The announcement about the updated engine (including ES2015 support and native Promises): https://groups.google.com/forum/#!topic/phantomjs/AefOuwkgBh...
wildpeaks··on TV anchor says live on-air ‘Alexa, order me a dollhouse’
In a way, it's (probably unintentionally) training its human to use a narrower range of voice patterns (which is handy when collecting data to train a network with), similar to how we're more likely to write in sans-serif than cursive now that computers are ubiquitous.
wildpeaks··on GitHub Report Card
Looks like it's getting a bit overloaded at the moment, got the following error (and indeed, it's missing a good chunk of data):

  We ran into a small snag
  Some of your change information might be missing.
  GitHub didn't generate repository statistics fast enough so we gave up after a few tries.
wildpeaks··on GitHub Report Card
I wonder too, especially considering it's possible to have collaborators with read-only access to private repos.
wildpeaks··on Video Games Satisfy Basic Human Needs
Extra Credits had two episodes on that exact topic last year:

https://www.youtube.com/watch?v=yxpW2ltDNow

https://www.youtube.com/watch?v=1drDuaQXm_U

wildpeaks··on Ask HN: What are the most useful Chrome extensions in 2016?
"Empty New Tab Page", pretty self-explanatory: https://chrome.google.com/webstore/detail/empty-new-tab-page...

"Rapportive" shows LinkedIn profiles when you mouseover an email address in Gmail: https://chrome.google.com/webstore/detail/rapportive/hihakjf...

wildpeaks··on “Children of Men”'s vision of the future is now disturbingly familiar
Nerdwriter made a great review of it: https://www.youtube.com/watch?v=-woNlmVcdjc
wildpeaks··on 15 years trying to make everyone separate HTML, JavaScript, CSS – and then
In short, Electron is a tool for running Node scripts in a real DOM in Chromium (so unlike PhantomJS, it can run things like WebGL).

You can also bundle it to generate distributable desktop applications (e.g. Visual Studio Code, Atom, or the desktop Slack client).

wildpeaks··on Fovea detector (2014)
Another example: you can't see all dots at the same time: https://twitter.com/ValakhP/status/810554137867915266

That's why foveated rendering done right is one of the next milestones for VR because you don't need to render the whole screen and everything at highest definition all the time.

wildpeaks··on Should a Programmer Learn to Design?
If not program, getting a better idea of the constraints of the final application / website would be a start.

For example, learning that web fonts render differently in each browser (so, even if the desktop font looks great in Photoshop, it might not be readable enough in the real application), or the concept of fallback fonts, could be an eye opener for more traditional designers that only deal with static mockups.

wildpeaks··on Should a Programmer Learn to Design?
I'm not sure they're uncorrelated, visual design is also about logic and consequences of structure.

In essence, it should be deduced from the end result, for example "the user wants to do X, so what does he need to do it, and what's the most efficient way to present it", similar to how you'd think about designing an API that other developers will use.

wildpeaks··on Jest – Painless JavaScript Testing
Jest sounds good on paper, it's great it exists and it definitely has potential and even improved a lot recently (and I usually try every new version that come up), however I have two pain points with it that prevent me from switching to Jest for now:

- it uses regexes instead of globs, so you can't just give it the list of tests like you would with Mocha or electron-mocha (e.g. something like "jest src/* * /*.tests.js")

- it excludes paths that include "node_modules" and it's not just a default (which would be fine), it's hardcoded, so you can forget about local modules, or dependencies that use local modules

Fortunately, there are already open issues for both, so that might improve in the future :)

---

Edit: I had to add extra spaces in the glob example (so it's slightly incorrect) because HN formatting seems to prevent using "double star".

wildpeaks··on Closure Compiler in JavaScript
Perhaps you meant UglifyJS or Babili instead?

Babel can be used in the same toolchain as Closure Compiler, they're not mutually exclusive or redundant as they perform different tasks.

wildpeaks··on Amazon LightSail: Simple Virtual Private Servers on AWS
Exactly, the lack of cost ceiling is the #1 reason I can't pick AWS.
wildpeaks··on Canada's Start-up Visa
Or for those countries to stop leaking talent to the US, at least.
wildpeaks··on The History of Paper Money – Extra History
It's fascinating that a system we take for granted is really less than a hundred years old.
wildpeaks··on Women rise through the ranks of IT more rapidly than men
.
wildpeaks··on Yarn – A new package manager for JavaScript
Note that it doesn't work with private modules yet, but it's coming soon: https://github.com/yarnpkg/yarn/issues/521
wildpeaks··on Should I Comment My Code? The Case Against Code Comments
A good rule of thumb is that code shows "what" it does, comments explain "why" (when it's not obvious).
wildpeaks··on Open Sourcing a Deep Learning Solution for Detecting NSFW Images
Direct link to Github: https://github.com/yahoo/open_nsfw
wildpeaks··on Node.js debugging with Chrome DevTools in parallel with browser JS
Note that --inspect has issues with Node 6.4+ at the moment: https://github.com/nodejs/node/issues/8155#issuecomment-2504...
wildpeaks··on Bringing WebVR to Microsoft Edge
So that's now WebVR coming to all three major browsers, that's great :)
wildpeaks··on Show HN: A JavaScript String replace API that challenges the status quo
Destructuring assignment could also helps readability, for example:

  function replace(text, {fromText = '', toText = '', caseInsensitive = false} = {}){
  	//
  	// ...
  	//
  }

  replace(
  	'Get on the Road',
  	{
  		fromText: 'road',
  		toText: 'bus',
  		caseInsensitive: true
  	}
  );
wildpeaks··on People disregard security warnings on computers because they come at bad times
It would be interesting to redo this study with multiple designs for the dialog box, because as others pointed out, the one pictured in the article looks like sketchy spam (although that doesn't invalidate the claim that people disreguard the dialog when it comes at a bad time if, for a given design, there is a difference in click rate).
wildpeaks··on Simpler GitHub Pages publishing
Beyond not managing an extra branch, the best benefit imho is when you work on a feature branch, you can also update the docs while working on the feature, so the docs are part of the pull requests and only merged once the new code is merged, so it stays in sync without an extra step.
wildpeaks··on Vizceral Open Source
Nice move Netflix, and I see it's using three.js, so the library might even get smaller once the next version of three (rewritten as ES6 modules, to make use of three shaking) is released.
wildpeaks··on Virtual Box 5.1
If you're using Vagrant, stick to 5.0.24 until this issue is closed: https://github.com/mitchellh/vagrant/issues/7411
wildpeaks··on HTC Vive Headset Nearing 100,000 Sales
Similar story: I backed the oculus kickstarter and one of the first thing I wanted to try it once it would be released is realtime 360 video (then move on later to realtime 3d 360). Not being in the Valley, obviously got zero funding, and now such cameras are commonplace; so frustrating.
← PreviousPage 14 of 21Next →