HNHacker News
TopNewBestAskShowJobs

sim0n

761 karma · joined October 6, 2009

submissionscomments
sim0n··on Cloudflare Sandbox SDK
Looks perfectly fine in FF 144.0 on Mac OS.
sim0n··on VanillaJSX.com
I would assume that lot of people just find the JSX equivalent a lot more readable and familiar (a matter of opinion, of course.)

  <div>
    <p>this is easy</p>
    {list.map((l) => <li>{l}</li>)}
  </div>
> you automatically get loops, variable interpolation etc without having to invent a compiler and new syntax

To be fair to JSX, you use regular loops, interpolation, etc without any different syntax (`{}` accepts a vanilla JS expression), you just obviously need the compiler step to de-sugar the element tags to `createElement` calls.

sim0n··on Farm: Fast vite compatible build tool written in Rust
That's not particularly high for a large scale web application where every file is a ES module, especially so if it includes dependencies.
sim0n··on Cisco Webex launches real-time translation
Nothing is "wrong" with it, the design is just something from the 90s/early 2000s.
sim0n··on Voat Is Shutting Down
They haven't.
sim0n··on Show HN: Unifrost – Stream PubSub Messages to the Browser
One case I've come across them using it for is delivering updates for visible tweets in a timeline (e.g. like/retweet counts being mutated).
sim0n··on State of JavaScript 2019
Not exactly a framework, but a React app from 2014 will still work great in 2019 and can be updated with very little pain.

Build tools wise, a simple Webpack/Babel config from 2014 would be relatively straightforward to update to the latest versions.

sim0n··on Liverpool Football Club’s reliance on analytics
> Soccer would be a much better sport

Very subjective. I personally think having a limited set of substitutions helps keep the game more interesting as every change can be hugely impactful to the team's tactics and the result of the game.

sim0n··on PHP in 2019
Why is "map an array with a function" unintuitive but "filter an array with a function" isn't?
sim0n··on Facebook adds 5 divs, 9 spans and 30 CSS classes to every post in the timeline
I'm sure they do. This is pretty standard at lots of big tech companies (Airbnb, most likely Uber, etc).
sim0n··on About rel=noopener (2016)
> there should be a repository called mathiasbynens.github.io right

Not exactly - the subdomain is the account and the path name is the repository (and the repository's `gh-pages` branch is what's returned).

(https://github.com/mathiasbynens/rel-noopener)

sim0n··on The Brutal Lifecycle of JavaScript Frameworks
DOM APIs have much improved since jQuery first arrived, so while that was the case originally, it's become less true over time. It's definitely still less verbose though, for example:

  $('.my-component div').css({ background: 'yellow' })
vs.

  Array.from(document.querySelectorAll('.my-component div')).map(node => {
    node.style.background = 'yellow';
  })
sim0n··on Under iOS 11, authorities won’t be able to image your device without a passcode
The article says they will no longer allow Touch ID to trust a computer, I imagine they also won't allow Face ID.
sim0n··on WhatsApp Cofounder on How It Reached 1.3B Users Without Losing Its Focus
Is Symbian OS still a thing? From Wikipedia:

> Nokia terminated its support of software development and maintenance for Symbian with effect from 1 January 2014, thereafter refusing to publish new or changed Symbian applications or content in the Nokia Store and terminating its 'Symbian Signed' program for software certification. (http://www.allaboutsymbian.com/news/item/18502_New_Symbian_a...)

sim0n··on Async/Await will make code simpler
I personally think that the syntax is great considering it's being added to an existing language. await/async allows you to opt-in to having your code behave in a synchronous-like manner, when you want it to.

One of the best things about JS/Node is that you can wait on I/O from different sources at the same time and since the async/await syntax is just sugar over Promises, you can do things like:

  const [user, notifications, messages] = await Promise.all([
    getUser(),
    getNotifications(),
    getMessages(),
  ]);
Instead of having to wait on I/O sequentially like:

  const user = getUser();
  const notifications = getNotifications();
  const messages = getMessages();
if awaiting were implicit.
sim0n··on ES6 in Depth: Symbols (2015)
FWIW, you can use `Symbol.for` to reuse symbols in JS (`Symbol.for("a") === Symbol.for("a")` is true).
sim0n··on Why We Chose Typescript
Does any major tech company use Dart other than Google?
sim0n··on The state of JavaScript modules
You don't have to use the hottest new framework or language feature. The JavaScript you're writing now will still be supported while the language evolves and improves.
sim0n··on USCIS Will Temporarily Suspend Premium Processing for All H-1B Petitions
For anyone confused/concerned, the title of this thread is currently "USCIS Will Temporarily Suspend Premium Processing for All Petitions" despite only H-1Bs actually being affected. The title should probably be updated to clarify it only affects one category (H-1B).
sim0n··on Stop Fabricating Travel Security Advice
Are you mistaking this for the ESTA application form allowing people to enter their social media handles?
sim0n··on React Implementation Notes
The backend where I work (Airbnb) runs on Rails but most of my projects use node on the backend since they usually just expose a REST API.

Since it only cares about UI, React is obviously not opinionated about your backend/server environment unless you're trying to do server rendering (then you need something in your stack capable of executing JS).

sim0n··on React Implementation Notes
For view/UI, yes (if you can call React a framework). I personally do not use jQuery anymore as there is not much need to deal with the DOM directly when using React and when there is, I just use vanilla JS.

Since React only deals with UI, I use it alongside a bunch of other great libraries such as Redux (for state management).

sim0n··on React Implementation Notes
For me, once I started declaring my UI as a series of components that simply render what they are provided (the common `v = f(d)` expression), it was hard to go back to the Backbone/jQuery way of mutating things all over the place and manually updating DOM nodes to try and reflect the current app state.
sim0n··on Man Posing as Delivery Person Hides Resumes in a Box of Donuts
You don't need either to incorporate (at least not in my experience w/ Delaware).
sim0n··on An American Doctor Experiences the NHS Again
You are not taught how drive as part of the curriculum in England and is not offered to students by schools like it is in the US.
sim0n··on How Millennials Became Spooked by Credit Cards
Definitely still called debit cards in the UK.
sim0n··on CSS mix-blend-mode is bad for your browsing history
How could you take advantage of the leak without JavaScript?
sim0n··on 85 percent of Facebook video is watched without sound
Screenshot of what I can see: http://i.imgur.com/0F2Cjyv.png.
sim0n··on [dead]
Sounds like she imitated the behaviour of a 14 year old on the internet pretty well.
sim0n··on Netflix cracks down on proxy streaming
Thats the obvious solution, though how would that affect people using Netlfix while traveling?

For example, if you're locked to the US region and watch something that is only available in the US while visiting, say, the UK — would that break any of Netflix's license agreements?

Page 1 of 7Next →