Connect with us


The market’s comeback from coronavirus lows caused two Wall Street greats to change their minds



Few traders have had careers as long and stellar as Stanley Druckenmiller and Paul Tudor Jones.

Rarer still, however, is for both of those investors in the same week to describe themselves as “humbled” by what they’re seeing in the stock market.

But both Druckenmiller and Jones said the S&P 500’s robust rally since March left them perplexed and wondering how, amid a global pandemic and civil unrest, the index could have rebounded with such strength.

After all, even with Thursday’s steep losses, the index is up 37% since its March low.

They and others now say that a combination of unprecedented monetary and fiscal stimulus appears to have pacified the market in a way they’ve never seen before.

“Let me tell you, if there was a franchise for humble pie, oh my lord there’d be a mile long to own that because we’ve all had huge gulps of it — me included,” Jones told the New York Economic Club on Wednesday. “You just had unprecedented times in every way, shape or form.”

Druckenmiller, who joined CNBC’s “Squawk Box” on Monday, expressed a similar view.

“I’ve been humbled many times in my career, and I’m sure I’ll be many times in the future. And the last three weeks certainly fits that category,” he said.

For those unfamiliar with the two investors, Druckenmiller — who said as recently as mid-May that he thought the market was overvalued — and Jones aren’t the type to change their minds on a whim.

Jones, whose Wall Street fame can be tied back to his brazen and accurate prediction of the October 1987 crash known as “Black Monday,” has made much of his fortune by standing by his convictions.

Bets designed to pay off in times of market duress like Black Monday, when the stock market fell 22% in one day, or ahead of the Great Recession have solidified Jones’ prowess.

Fellow billionaire investor Druckenmiller also isn’t one afraid of taking a contrarian bet if he’s convinced of a good trade. His famous short bet against the British pound in 1992 netted George Soros’ Quantum Fund some $1 billion in profits.   

So when Druckenmiller said Monday that he’s been humbled by the market’s rebound and has only returned 3% since the March bottom, others tend to pay attention.

The Fed: They’re ‘everywhere’

Explaining the S&P 500’s climb since March is a tricky business with many possible answers, but Jones and Druckenmiller say the gains almost certainly have something to do with Washington.

Congress passed in March the $2.2 trillion CARES Act, a mammoth piece of emergency legislation that sought to inject the U.S. economy with a much-needed cash infusion. The law, unrivaled in American history for its scope and size, came as businesses closed and people sheltered at home to slow the spread of Covid-19.

It provided funding for hospitals and research labs, direct payments of $1,200 to individuals earning up to $75,000 and dramatically expanded jobless benefits for those the millions of Americans who’d find themselves without work in the weeks to come. It also established the Paycheck Protection Program (PPP) and sought to provide support to many of the smallest businesses in the U.S.

An additional piece of stimulus legislation, the $3.5 trillion HEROES Act passed by House Democrats last month, is stalled in the Senate, where Republicans thus far favor a wait-and-see approach to further fiscal stimulus.

But as helpful as the CARES Act was for individuals and commerce, investors have applauded perhaps even louder for the Federal Reserve. The Fed, led by Chairman Jerome Powell, announced throughout March and April a torrent of new lending powers designed to provide as much liquidity to the credit markets as possible.

This unparalleled response from the Fed has in effect drowned the market in cash and provided business owners with one of the most powerful safety nets in U.S. history, said Prudential Financial market strategist Quincy Krosby.

“Let me put it this way: The Fed’s balance sheet in December 2008 was approximately $880 billion. And then when they finished [with Great Recession stimulus] it was about $4.5 trillion,” she said in a phone interview on Tuesday. “Now this time around, in very, very short order, they’re above $7 trillion.”

But in addition to expanding its balance sheet and asset purchases, the central bank announced its own $2.3 trillion lending program that will extend credit to banks that issue PPP loans and purchase up to $600 billion in loans issued via the Main Street program to mid-sized businesses.

It also said it would expand plans to backstop lending to some of the country’s largest companies by supporting riskier bonds issued by firms that have lost their investment-grade status.

“Think about how fast they moved. And how quickly they moved into every nook and cranny in the market to stabilize financial conditions,” Krosby said of the central bank. “They’re everywhere, they’re everywhere. And they have made it clear they’re not going to stop.”

Not out of the woods yet?

But Krosby noted that while markets have been buoyant about the Fed’s monetary “bazooka,” recent economic data is beginning to show signs of improvement. She highlighted strength in the housing market — and specifically mortgage applications for home purchases — as evidence Americans are feeling at least somewhat optimistic about their year ahead.

Applications for mortgages for the week ended June 6 were up 13% from a year ago despite higher interest rates, the Mortgage Bankers Association said Wednesday. Last week’s far-better-than-expected May jobs report also lifted equities and the economic outlook for 2020.

But while a downtick in double-digit unemployment may have surprised investors to the upside, economists and politicians alike caution that coronavirus-related turbulence isn’t likely to go away so soon.

U.S. Senator Bob Menendez said that while he’s glad to see any signs of improvement in the labor market, more needs to be done to ensure those successes aren’t lost in the months ahead.

“I’m always happy when we get a good jobs report … but I think it’s way too early to claim victory” the New Jersey Democrat said when reached via phone on Wednesday.

Sen. Bob Menendez (D-NJ).

Adam Jeffery | CNBC

Those jitters were evident Thursday, when the Dow Jones Industrial Average sank 1,800 points and the S&P 500 lost 5.89% as new Covid cases in southern U.S. states sent investors running to take profits.

“I understand why people feel different than the last time,” Menendez said. “In 2009, the stimulus bill was less than $1 trillion. That’s a third of the size of what we’ve pumped into the economy since March.”

But, the senator argued, even more federal support is needed to help states like New Jersey that have borne an outsized proportion of U.S. Covid-19 cases and had to implement strict business closures to help slow its spread.

Menendez on May 18 introduced a piece of bipartisan legislation known as the SMART Act that would appropriate $500 billion to state and local governments based on infection rates and tax revenue losses.

“I have enough data to know that there are things that are coming at us that we need to resolve,” he said. “I would hope that there’s a sense of urgency of now. July’s going to be pivotal as to whether or not these things happen.”

Subscribe to CNBC PRO for exclusive insights and analysis, and live business day programming from around the world.



How To Use Decorators and Mixins in Salesforce Lightning Web Components



It’s safe to say that every modern web application these days relies to some degree on three foundational web standards: HTML, CSS, and JavaScript. While HTML has largely stabilized since the HTML5 standard, both CSS and JavaScript continue to evolve to meet developers’ and users’ needs.

The evolving nature of these three technologies has lead to the introduction of web components, a cross-browser solution for building complex web apps. On top of this open source standard, Salesforce developed Lightning Web Components (LWC) as a fast, enterprise-grade wrapper around vanilla web components. The result is a thin, performant, and feature-packed framework built entirely on the open web.

LWC is not only built on top of the ECMAScript standard, it also provides some nifty syntactic sugar that can transpile into standard JavaScript. Because of this, the LWC framework is able to incorporate proposed language features, which simplifies app development by future proofing your code in the always evolving JavaScript ecosystem. In this post, we’ll take a closer look at two relatively recent features—mixins and decorators—and see how they can be used in your LWC apps.

What is a Mixin?

In many object-oriented programming languages, classes can “receive” additional methods through a feature called inheritance. For example, if you have a


class with the methods




, subclasses like




can implement them directly:

class Vehicle { void go(); void stop();
} class Bicycle < Vehicle { void go() { usePedal(); } void stop() { stopPedal(); }
} class Car < Vehicle { void go() { useEngine(); } void stop() { stopEngine(); }

Inheritance affects the composition of an object by changing its hierarchy. Every




is now also a


. But what if you merely wanted to add in common methods to objects without dealing with any parent class? That’s what a mixin does.

In a JavaScript context, mixins can add behaviors to JavaScript classes, which is useful, because classes can only extend from one other class, while multiple mixins can be added to a class. Mixins take advantage of the


method, which copies all of the properties from one object onto another:

// mixin
let greetingsMixin = { sayHi() { alert(`Hello ${}`); }, sayBye() { alert(`Bye ${}`); }
}; class User { constructor(name) { = name; }
} // copy the methods
Object.assign(User.prototype, greetingsMixin);

can now call




natively. Per JavaScript rules,


can also inherit from just one class, while including properties and function) from any number of mixins:

class User extends Person { // ...
} Object.assign(User.prototype, greetingsMixin);
Object.assign(User.prototype, someOtherMixin);

However, writing out


is somewhat akin to littering your code. What’s worse is figuring out what the method is doing isn’t very intuitive. Through some native JavaScript syntax, you can actually create a “subclass factory” with mixins, and declare which mixins you’re using right at the top:

class User extends greetingsMixin(Person) { // ...

(For more information on this technique, check out this article.)



includes the


and inherits from the


class, all in one line.

This technique is more than syntactical sugar: it’s actually the one which LWC regularly prefers. For example, the

Navigation Mixin

provides methods that are useful to navigational UI elements, but ultimately, each class that includes it should also derive from a plain



import { LightningElement } from 'lwc';
import { NavigationMixin } from 'lightning/navigation'; export default class TestComponent extends NavigationMixin(LightningElement) { // ...

provides functionality that’s crucial to components dealing with navigating through pages, while


provides all the base functionality for every component. Thus,


will need to include


and subclass from


, and can do so in the easy-to-see, single-line format.

What is a Decorator?

Decorators are currently a proposal to add to JavaScript, but they’re so incredibly useful that many frameworks already support them. In essence, a decorator is a function that can modify a class, or any of its properties and methods. That’s a pretty high-level definition, so let’s take a look at what that means in practice.

Suppose we have a class like this:

class User { constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } getFullName() { return `${this.firstName} ${this.lastName}`; }

Now, any code which makes use of this class can create a user:

let user = new User("Jane", "Eyre");
user.getFullName(); // returns "Jane Eyre"

But because of the way JavaScript is designed, a developer could inadvertently change the


method if they so desired:

let user = new User("Jane", "Eyre");
user.prototype.getFullName = function() { return "not the name!;"
user.getFullName(); // returns "not the name!"

Now, this is obviously a trite example, but the danger still remains. You can write code to make a class property read-only, like this:

Object.defineProperty(User.prototype, 'gettFullName', { writable: false

This works, but it’s obviously cumbersome to write for multiple properties.

Enter decorators. You can define a decorator function to apply any behavior you want to a target property. For example, to set a target as

writable: false

, you could do this:

function readonly(target) { target.descriptor.writable = false; return target;

We just defined a decorator called


which, when passed a target, sets its


property to


. This can be applied to our


class like this:

class User { // ... @readonly getFullName() { return `${this.firstName} ${this.lastName}`; }

Voila! The same functionality, in a single line of code.

LWC provides several decorators for developers to use. They are:

  • @api

    : by default, every property is hidden and private.


    exposes it publicly.

  • @track

    : this marks a property as reactive, which means that when its value changes, the web component will re-render and display the new value.

  • @wire

    : this is a decorator which signifies that we want to read Salesforce data.

These three decorators, which are unique to LWC, aim to help reduce rewriting the same code while easily providing common functionality.


Since LWC is built on web standards, it can leverage native APIs and languages in order to make developers immediately productive, since they’re using existing skills rather than learning proprietary techniques.

If you’d like to take a closer look at Lightning Web Components, Salesforce has a boilerplate app that’s built in TypeScript. There’s also a Trailhead lesson to help you learn about web components in less than an hour. Or, feel free to check out the LWC dev docs for more specific reference information.


Join Hacker Noon

Create your free account to unlock your custom reading experience.

Coinsmart. Beste Bitcoin-Börse in Europa

Continue Reading


NAB’s API: The Big Reveal




Scott Middleton Hacker Noon profile picture

@scottmiddletonScott Middleton

Scott is the CEO and founder of Terem, Australia’s leading tech product development firm.

We’re working on a more detailed follow up to the high-level research we did into APIs and the ASX100. As part of the follow-up, I’m looking into the APIs offered by ASX100 companies and, for no scientific reason, chose to start with an analysis of NAB’s developer portal.

This post isn’t a strict analysis, rather it’s a sharing of thoughts as I step through NAB’s API with a longer view of gaining a better understanding of API best practices in the wild. 

Overall, NAB’s API is surprisingly good for a bank. Easy to follow, easy to get started.

First Impressions and Portal Home Page 

First impressions of NAB’s API are promising. 

Language is one of being product-led – “register, experiment, go-live” and “open beta”. There is even a hackathon tab.The registration link and documentation links are prominent and easy to navigate. You get the feeling that starting to use it will be straightforward.I get the sense that this is a modern API designed for developers. Actually a little surprised/impressed and excited to play around with it.


The registration process for NAB had a simple form that only required the most essential fields. It didn’t even ask for an organisation or phone number (quietly impressed). 


The process overall was:

Simple registration form (5 fields) – the name fields could be combined but that’s nitpicking

Verify my email addressLogin

The whole process took under 5 minutes. 

Getting Started

As soon as I logged in I could easily see where to get started. I clicked Getting Started and found my Sandbox API Key. You might wonder why this is worth noting, it’s because many APIs, especially those offered by enterprises and enterprise software providers are bizarrely not this straight forward.

I was able to query NAB locations (i.e. where there is an ATM) within 2 minutes in postman, but I wasn’t easily able to start querying anything that required authentication in postman. When I put my x-nab-key in, I got back “400 Invalid Request” and when I tried the sandbox OAuth flow, I had some errors come back. I could see how to resolve this by writing actual code.


API Documentation

The API endpoint documentation is broken up in an understandable way. It breaks up the API into some high-level, logical areas like Locations, FX and Accounts. It then uses verbs for the titles of the API endpoints themselves (e.g. “Get List of Accounts”) making it easy to see what I can do and what is relevant for me.

Verbs – like “Get” or “Delete” – are generally the actions or tasks that a developer is trying to do. So using language like this matches what they need.

Sample code is provided in multiple languages/technologies: json, curl, java. 


There wasn’t a way to test the endpoints inline. 

API Design

URL Standard

The NAB API follows the RESTful standard closely. Using the HTTP verbs to describe the action being taken – GET – and the URL to describe the resource the action is being applied to – e.g. GET …/accounts/

This makes the APIs easy to follow.

Other APIs sometimes include the verb in the URL itself or don’t follow any standard. The NAB API is a good example of a restful API in the wild.

Variable/Parameters Names

The NAB API’s parameter and variable names were mostly easy to follow and understand. They were usually full names that described themselves. 

There were some exceptions to this like the “apca” attribute on the Get List of Accounts endpoint. It’s unclear what this variable is.

There were some redundant descriptions – e.g. the attribute accountToken has a description of “Account Token” adding no additional information or insight into what this attribute is, what it’s used for or how it’s formed.


There is a bit of confusion on the NAB API endpoints with versioning. The version is listed in both the URL and at the end in the query parameters. On the Get List of Accounts endpoint, the endpoint seems to be both version 2 and version 1 at the same time. The variables need different names or the version in the query parameters needs to be removed (what is its purpose?).

Going Live to Production

I didn’t go down the path of getting production access due to time constraints on my part. 

Product Strategy

After walking through the API I stepped back, sipped my coffee and contemplated the API more broadly through the lens of the API as a digital product. Some thoughts:

  1. The API appears to be the same API they are using internally for their own digital experience. This is exactly what you want as a company and a third-party developer.
  2. The API appears to be useful to startups and more established partners making it more likely to be available in the long run. On the home page, some startups are shown but the functionality appears useful by an enterprise looking to incorporate NAB data into their digital product.


Join Hacker Noon

Create your free account to unlock your custom reading experience.

Coinsmart. Beste Bitcoin-Börse in Europa

Continue Reading


An Easy README Makeover In 3 Simple Steps




Oh yeah! We’re giving your README a makeover!

The README will be one of the first things someone sees when they view your project. Think of it as the subject line to your email, or the elevator pitch to your presentation. The README is the opportunity to get someone interested in your open source project, or to convince them that you’re an awesome developer or simply to show off the cool project you’ve been working on in your spare time.

Yet, sometimes the README is forgotten. I get it, the code just needs to work sometimes. But, I highly encourage you to take a look at your project’s READMEs and iterate on them.

Here are 3 areas to focus on when updating or creating your project READMEs.

Describe Your Project

I know, this probably sounds obvious, but you would be surprised. Dig deep enough into my Github profile and you’ll find a few repos with the default, outdated content, or—gasp—no READMEs at all. Writing about your work is a whole, big topic I’ll go into detail on another time. But, for your README, it can be straightforward.

Some questions to ask yourself when writing your project description include:

  • What technologies does this project use?
  • How can someone else use it?
  • Why was it created? Or, what problem does it solve?
  • Is this repo part of a bigger project or does it exist on its own?

Overall, a few lines explaining what your project is, what you used to build, and why, may be all you need to include. Think of the description as a concise, one-paragraph summary to your project to entice someone to know more.

Installation Instructions

Raise your hand if you’ve come across a README that had vague installation instructions!

To help save someone else from experiencing this, with my projects, I like to take a literal step by step approach to getting it up and running locally. I’ll start by doing a fresh clone of my repo on my Desktop or anywhere other than where I usually work on the project locally.

Then, write down exactly the next step is to getting it up and running. Include if there are any packages to include or API keys to fill in or if a certain command needs to be run in a specific directory. I like including the exact terminal commands in tick marks, for example 

git clone,

for easy copy and pasting from the README.

Link To a Live Version

This may not apply to all projects, but it’s something to think about. If the goal of creating personal projects is to have something to show potential employers, you cannot always expect someone to be able to—or have the time to—clone it to their machine, get it up and running and then navigate the codebase.

In my bootcamp experience, a stretch task was to have the portfolio project built deployed online so that they can be used/viewed in the browser. Not only does this make a project easier to look at, experience, evaluate by others, but it also shows additional skills at being able to use cloud applications like Netlify, Heroku or Amazon Web Services.


If you can, I encourage you to take a critical eye at your own READMEs and do an audit. Put yourself in the shoes of someone who is coming across your project for the first time, with no context on what it’s about.

Some things to think about:

  • Does your README accurately explain what your project is?
  • What about how you built it?
  • If the project is open to contributions, does the README clearly state that?
  • Are the installation instructions missing any gaps or not work as expected?

Consider getting a friend, technical or non-technical, to take a look at your README and offer their initial thoughts. Other developers will likely be seeing your project, but so may potential hiring managers and recruiters. They may only have a few seconds to look at your project’s README to evaluate if you have the technical and communication skills they are looking for in an individual contributor.

What updates will you make to your README today?

Previously published at


Join Hacker Noon

Create your free account to unlock your custom reading experience.

Coinsmart. Beste Bitcoin-Börse in Europa

Continue Reading


Tide is making the first laundry detergent for space



Astronauts don’t have the luxury of tossing clothes in the hamper after a single use — without laundry equipment, they’re often left wearing items multiple times. Tide thinks it can come to the rescue, though. The Procter & Gamble brand has teamed with NASA to develop the first laundry detergent meant for space. The fully degradable detergent should take care of stains and odors while working properly in a closed-loop water system like the one you’d find aboard the International Space Station.

It won’t take long before you see a rea world (or rather, real off-world) trial run. NASA will test Tide’s detergent aboard the ISS in 2022. “Mission PGTide,” as it’s called, will gauge ingredient stability in space as well as the effectiveness of the stain removal ingredients using Tide’s pens and wipes.

Other studies will explore the possibility of a washer-dryer combo that could be use for long-term Moon and Mars missions.

The advantages for space are fairly self-evident. Those lunar and martian explorers won’t have any choice but to clean their clothes — this detergent could make that possible without subtracting from their precious water supply. It could also save weight and space aboard both the ISS and cargo capsules, as NASA wouldn’t need to send so many clothes into orbit.

 This could also be helpful for laundry back on Earth, for that matter. A fully degradable detergent would be more environmentally friendly, reducing waste and conserving water. Don’t be surprised if you eventually buy detergent that’s kind to the planet precisely because it’s designed to be used off-planet.

All products recommended by Engadget are selected by our editorial team, independent of our parent company. Some of our stories include affiliate links. If you buy something through one of these links, we may earn an affiliate commission.

Coinsmart. Beste Bitcoin-Börse in Europa

Continue Reading
Esports3 days ago

Select Smart Genshin Impact: How to Make the Personality Quiz Work

Blockchain3 days ago

Bitmain Released New Mining Machines For DOGE And LTC

Esports5 days ago

How to complete Path to Glory Update SBC in FIFA 21 Ultimate Team

Blockchain4 days ago

Digital Renminbi and Cash Exchange Service ATMs Launch in Beijing

Aviation4 days ago

Southwest celebrates 50 Years with a new “Freedom One” logo jet on N500WR

Start Ups4 days ago

Zenefits Payroll Glitch Results In Delayed Paychecks For Small-Business Employees

Blockchain4 days ago

Bitcoin isn’t as Anonymous as People Think it is: Cornell Economist

Blockchain5 days ago

Blockchain Intelligence Firm TRM Labs Secures $14 Million in Funding

Aviation4 days ago

Delta Air Lines Drops Cape Town With Nonstop Johannesburg A350 Flights

AR/VR5 days ago

Larcenauts Review-In-Progress: A Rich VR Shooter With Room To Improve

Blockchain4 days ago

Index Publisher MSCI Considers Launching Crypto Indexes

Esports4 days ago

All Characters, Skills, and Abilities in Naraka: Bladepoint

Energy1 day ago

Inna Braverman, Founder and CEO of Eco Wave Power Will be Speaking at the 2021 Qatar Economic Forum, Powered by Bloomberg

Blockchain4 days ago

Paraguay Follows El Salvador In Tabling Bitcoin Bill, The Crypto Revolution Is Happening

Blockchain4 days ago

Paraguayan Official Confirms: In July We Legislate Bitcoin

Blockchain4 days ago

U.K’s crypto-users are growing in number, but do they even understand the asset class?

Aviation4 days ago

Breaking: British Airways 787 Suffers Nose Gear Collapse

Esports4 days ago

TFT Reckoning 11.13 patch preview highlights Nidalee, Kayle, and Trundle rework

Blockchain4 days ago

Spanish Banking Giant BBVA to Launch Bitcoin Trading and Custodial Services in Switzerland

Start Ups4 days ago

Clair Labs Targets $9M Seed On Contactless Patient Monitoring