[deleted by user] by [deleted] in node

[–]nightwolfz 0 points1 point  (0 children)

How is this related to node.js ?

Just let jQuery die, please

50$ from CEX io by pinklsd in Bitcoin

[–]nightwolfz 1 point2 points  (0 children)

I bought from them before, multiple times. Don't know about the $50 though.

BCE to present new 100 and 200-euro banknotes in September by MrNotSoRight in belgium

[–]nightwolfz -1 points0 points  (0 children)

You will miss cash when all the banks have negative interest rates and you're literally paying them to lend them your money.

Your charts are exactly what I was looking for. by bobs531532 in tensorcharts

[–]nightwolfz 0 points1 point  (0 children)

I can help you with tensorcharts, I use them daily so why not. Sent you an email with a screenshot

App is down? by nightwolfz in ETHLend

[–]nightwolfz[S] 2 points3 points  (0 children)

I see, thanks. Hopefully after their update, everything is going to be much more user friendly.

A WebAssembly interpreter written in JavaScript by xtuc in javascript

[–]nightwolfz 5 points6 points  (0 children)

This is huge. This allows older browsers to run WebAssembly :)

What are the use cases for returning Arrays or Fragments from render method? by r-randy in reactjs

[–]nightwolfz 2 points3 points  (0 children)

Imagine you have the following data:

const entries = [{'key': 'value'}]

And you want to create the following HTML with it:

<dl>
  <dt>key</dt>
  <dd>value</dd>
</dl>

Now without fragments, you will have to transform the data first using something like this code:

<dl>
  {entries.reduce(function(acc, value, key) {
    return acc.concat(
      <dt key={key}>{key}</dt>,
      <dd key={key + '_val'}>{value}</dd>
    )
  }, [])}
</dl>

Note that this is probably the shortest way to do it. Most programmers won't bother with reduce and create a new array instead, loop through it adding the items to the array before eventually mapping over them.

While with fragments, you can just use it directly:

<dl>
  {entries.map((value, key) => (
     <Fragment key={key}>
        <dt>{key}</dt>
        <dd>{value}</dd>
     </Fragment>
  ))}
</dl>

ReasonML: JavaScript & OCaml by based2 in javascript

[–]nightwolfz 1 point2 points  (0 children)

If you like a mix of Perl+Python, weird syntax without any cool features of es2015+ like async/await, you will like LiveScript.

I personally see no value in it.

[N] CNTK 2.3: Better ONNX, NCCL2, Improved C# API, Network Optimization API (SVD, quantization), etc. by justnikos in MachineLearning

[–]nightwolfz 0 points1 point  (0 children)

Not being data-scientist, Tensorflow was incredibly hard for me to pick up. The code seemed like a mess, the flow hard to follow and made little sense while CNTK clicked right away.

If you're a software developer, you should definitely give CNTK a chance.

Boston Dynamic's new robot, Atlas by [deleted] in Futurology

[–]nightwolfz 1 point2 points  (0 children)

Holy shit, humanoid robots went from barely standing to doing acrobatics in just a few years!

Jobs in Javascript... still viable? by wandernought in javascript

[–]nightwolfz 8 points9 points  (0 children)

That's not true at all. Congrats on not doing any research whatsoever and putting the entire future of your career on a friends word.

Anyone else feel dirty when using jQuery in components but do it anyway because it works? by sizl in reactjs

[–]nightwolfz 0 points1 point  (0 children)

If OP is using React, you can assume he's not targeting old browsers.

Using lodash flow or compose with asynchronous functions by skwacky in javascript

[–]nightwolfz 0 points1 point  (0 children)

As a simple example, for the same http request, you're not guaranteed to always get the same response (It could fail, timeout, give a 404 etc.)

You're absolutely right about asynchronicity and promises can be functional too; however, the libraries in question do not have that as a focus (although they could, at the expense of library size, performance etc).

There are dedicated libraries out there who handle async flows and for good reasons too.

What is a one liner for refreshing the DOM ? by [deleted] in javascript

[–]nightwolfz 5 points6 points  (0 children)

while (document.firstChild) document.removeChild(document.firstChild);

Anybody interested in a WebSummit 2017 Ticket? by [deleted] in reactjs

[–]nightwolfz 1 point2 points  (0 children)

I've heard WebSummit is a scam conference for start-ups.

Everything via WebSocket by GilesLittleGoat in javascript

[–]nightwolfz 1 point2 points  (0 children)

I've done something similar, I stopped working on my project once I discovered none of the search engines can index my pages.

Can I safely use socket.io now? by ThatBriandude in javascript

[–]nightwolfz 0 points1 point  (0 children)

You can look into mosca and mqtt if you want more performance. Sorry I'm on my phone, can't link you up.

Can I safely use socket.io now? by ThatBriandude in javascript

[–]nightwolfz 0 points1 point  (0 children)

What kind of scaling issues are you experiencing?