Here's a Hello World web app for ES6 modules. It uses a module that defines one function, secsSince. It then calls that from another module, and displays the result on the page. It's as simple as I could make it and it works. Not sure I want to use ES6 modules, but at least now I know how to do it, and you do too. All the other tutorials were missing some information you need to understand how modules work. The most confusing thing about modules is that you can only invoke modules from other modules. That means all the JavaScript code in your web app has to be in a module. Not sensible imho, but also not much of a burden. BTW you can run the code without downloading. #
Today's Daily podcast about the Trump tax returns had a fair amount of info, but overall was disappointing. Barbaro never came to grips with a key idea: Trump is not a rich guy evading taxes. He's broke. He's a loser. That's his usual state, even though he's had two huge windfalls of cash, first from his father and then from The Apprentice. Each time he's invested in marginal businesses and his management turned them into failures. Then he borrowed, failed to pay back his debt, went bankrupt. He's about to go bankrupt again with the $400 million that comes due in the term he's running for now. But we don't know who he owes the money to, but we can take a good guess. The big takeaway from the tax returns is Trump is a loser. It's a shame they don't have a whole podcast series about what's in the returns. We've spent so much time speculating about the truth of Trump, now we have a huge load of data. Podcasts are the best medium for revealing it. Sadly only the NYT has this story, so it's not getting a deep dive. #