out Can we please stop talking about Adele's body? | Arwa Mahdawi By www.theguardian.com Published On :: 2020-05-09T13:00:01Z You’d think during a pandemic we’d all have gained a little perspective – but policing female bodies and appetites is a timeless trendSign up for the Week in Patriarchy, a newsletter on feminism and sexism sent every Saturday. Continue reading... Full Article Adele Music Culture
out Cyclist, 16, critically injured after being hit by two cars in south London By www.theguardian.com Published On :: 2020-05-09T12:07:37Z Teenager remains in hospital as two men are arrested after collision on Streatham High Road A 16-year-old cyclist is in a life-threatening condition after being hit by two cars in south London.The boy was critically injured in the collision in Streatham High Road shortly before 11.20pm on Friday. Continue reading... Full Article UK news
out Thousands turn out for VE Day parade in Belarus despite Covid-19 concerns By www.theguardian.com Published On :: 2020-05-09T12:22:12Z Country’s leader Alexander Lukashenko boasts of holding only parade in former Soviet UnionCoronavirus – latest updatesSee all our coronavirus coverageThousands of people, including elderly veterans of the second world war, turned out for Belarus’s Victory Day military parade despite the coronavirus pandemic.Images from the parade showed crowds packed on to parade bleachers as the country’s leader, Alexander Lukashenko, boasted of holding the only parade in the former Soviet Union to mark the defeat of Nazi Germany. Continue reading... Full Article Belarus Europe World news VE Day Coronavirus outbreak Russia
out Coronavirus live news: thousands turn out for Belarus VE Day parade, as Russia infections near 200,000 By www.theguardian.com Published On :: 2020-05-09T14:54:29Z Belarus leader holds parade prompting safety concerns as other nations curb WW2 events; Russia records 10,000 new Covid-19 cases; Spain’s daily death toll continues to fall. Follow the latest updatesGlobal report: Trump says Covid-19 will ‘go away without vaccine’ Mike Pence press secretary tests positive to Covid-19Brazil’s Bolsonaro must ‘drastically change course’, says The LancetCoronavirus at a glanceAustralia – live news 3.54pm BST A child was among sixteen migrants rescued four miles off the coast of France when their makeshift vessel bound for Britain ran into difficulties in the middle of the night, authorities said.The group was picked up 3.8 miles off the French port of Calais after calling for help, French maritime authorities confirmed to AFP. A French maritime surveillance vessel rescued the migrants at around 5am and transported them to the Channel port of Dunkirk, where they were handed over to border police. 3.21pm BST Vladimir Putin has told Russians they are invincible when they stand together, as he sought to send a message of unity after the country’s tally of Covid-19 cases reached the fifth highest in the world. Addressing the nation in a speech as he presided over Victory Day celebrations, a sombre Putin invoked the memory of the country’s veterans who fought in the second world war.We are united by our shared memory, hopes and aspirations, as well as a sense of shared responsibility for the present and the future. We know and strongly believe that when we stand together, we are invincible.” Continue reading... Full Article Coronavirus outbreak Donald Trump Europe US news Infectious diseases Science World news
out Global report: Trump says Covid-19 will 'go away without vaccine', expects US death toll to top 95,000 By www.theguardian.com Published On :: 2020-05-09T04:13:31Z Mike Pence’s press secretary tests positive to coronavirus; China reports one new case; Russia reports 10,000 new cases for sixth day in a rowCoronavirus – latest updatesSee all our coronavirus coverageDonald Trump has said coronavirus will “go away without a vaccine” and is expecting 95,000 or more deaths in the US, as Mike Pence’s press secretary tested positive for coronavirus.The president’s comments, at an event with Republican lawmakers, capped a horror week in the US, in which it was revealed unemployment had risen to 14.7%, up from 3.5% in February, with 20 million people losing their jobs in April. Continue reading... Full Article Coronavirus outbreak Donald Trump Taiwan US news China Italy Russia Europe World news
out Cat Brilliantly Outsmarts His Giant Dog Brother By feedproxy.google.com Published On :: Thu, 07 May 2020 06:00:00 PDT When @DacotaLameHumor shared this cute video with the caption "My cat just locked up my dog lmfaooo", people on Twitter saw it as one more proof of cats' superiority over dogs. Full Article dogs smart cat cute cat videos Cats
out You should've thought about it... By feedproxy.google.com Published On :: Thu, 07 May 2020 15:00:00 PDT Full Article cat memes
out Brutally Honest Handmade Graphs About Animals By feedproxy.google.com Published On :: Fri, 08 May 2020 10:00:00 PDT The talented Instagrammer, Chaz Hutton has found a creative way to describe the perils of life with a series of brutally honest graphs to make you chuckle.We have gathered the funniest ones he created about animals. Full Article charts graphs funny animals animals
out Interesting Facts About Donkeys On Their Special World Day By feedproxy.google.com Published On :: Fri, 08 May 2020 11:00:00 PDT Found on every continent except Antarctica, donkeys are some of the most well-bred and well-known animals in the world. World Donkey Day is a show of respect for one of the most enduring and respectable animals in the Equidae family. Throughout history, it has served throughout the world as both a mount and a beast of burden in some of the most challenging terrains and forbidding climates, and has done so with pride and endurance. But how much do you know about these surprisingly deep and intelligent creatures? Here are some fun facts you probably didn't know. Full Article cute donkey animal facts true facts fun facts
out CHeck out my fic By www.mychemicalromance.com Published On :: Fri, 08 May 2020 21:30:11 +0000 i just wrote this super cute fic called bubbleyum and im actually super happy with it! give it a read: https://archiveofourown.org/works/24080149 the pairing is bert/gerard/double bubble bubble gum. xoxoz Full Article Blog
out Open Laser Blaster Shells Out More Bang for the Buck By feedproxy.google.com Published On :: Sat, 09 May 2020 05:00:55 +0000 [a-RN-au-D] was looking for something fun to do with his son and dreamed up a laser blaster game that ought to put him in the running for father of the year. It was originally just going to be made of cardboard, but you know how these things go. We’re happy …read more Full Article Arduino Hacks 9G servo arduino arduino nano laser neopixel ring servo
out GKIDS, Shout! Factory to Release Ride Your Wave Anime Film on Home Video By www.animenewsnetwork.com Published On :: Thu, 07 May 2020 15:00:16 -0400 English dub cast includes Joey Richter, Merit Leighton, Sarah Williams, Michael Johnston Full Article Anime
out Uzaki-chan Wants to Hang Out! Anime's 2nd Promo Video Reveals New Cast By www.animenewsnetwork.com Published On :: Sat, 09 May 2020 00:21:42 -0400 Yousuke Akimoto joins cast for series premiering in July Full Article Anime
out Shout! Factory Delays Release of Digimon Adventure: Last Evolution Kizuna Anime Film By www.animenewsnetwork.com Published On :: Sat, 09 May 2020 06:00:00 -0400 New release date yet to be announced Full Article Anime
out Plumber's Customer Won't Pay In Full, Sweet Grout Revenge Ensues By feedproxy.google.com Published On :: Thu, 07 May 2020 16:00:00 -0700 Man, this is a fine example of why it pays to be a reasonable, good human being, and not mess with your servicemen. This plumber was just doing his job, to the requirements asked of him, and the clients decided to make a mess of the whole peaceful operation. Clearly, they were trying to skip out on paying the whole bill. So, the plumber was extra sweet with finishing up the job. What might seem like a petty revenge on the surface, really evolves to be more of a cold and calculated pro revenge that likely haunted the folks for a long while after the job was "done." Full Article plumber satisfying revenge awesome petty ridiculous Reddit
out Manager Tries To Fire Employee, Ends Up Out Of Job By feedproxy.google.com Published On :: Fri, 08 May 2020 15:00:00 -0700 This manager was power tripping all over the place. Fortunately, the employee was ready to take their revenge, and the manager's fraudulent practices end up being their ultimate undoing. We love a good revenge story where the manager gets what was coming to them in the end. Full Article employee satisfying manager job revenge work awesome Reddit
out Smart windows can let visible light through while blocking out heat By www.newscientist.com Published On :: Mon, 27 Apr 2020 15:26:05 +0000 A 3D printed grate can be used to make a smart window that blocks heat from sunlight out in the summer while letting it through in the winter, conserving energy Full Article
out The past can help us deal with the pandemic’s mental health fallout By www.newscientist.com Published On :: Wed, 22 Apr 2020 18:00:00 +0000 Lessons learned from natural disasters and the military can help guide our responses to help people's mental health during the covid-19 pandemic Full Article
out Robot with pincers can detect and remove weeds without harming crops By www.newscientist.com Published On :: Wed, 29 Apr 2020 17:07:03 +0000 A robot that uses artificial intelligence to find and remove weeds could eventually be used as an alternative to chemical insecticides Full Article
out Coronavirus: What does evidence say about schools reopening? By www.newscientist.com Published On :: Wed, 29 Apr 2020 19:16:12 +0000 Many studies suggest coronavirus has low transmission rates among children, but there are still risks to reopening schools that were closed due to social distancing policies Full Article
out We can't rely on rampant consumerism to get us out of this mess By www.newscientist.com Published On :: Wed, 29 Apr 2020 18:00:00 +0000 Hyperconsumption adds to environmental destruction that brings people into contact with animal viruses that can spark pandemics. We have to avoid the temptation to rely on it to get us out, writes Graham Lawton Full Article
out How coronavirus is affecting your dreams – and what to do about it By www.newscientist.com Published On :: Thu, 30 Apr 2020 16:21:01 +0000 Lockdown measures and pandemic-related anxiety may be making you have more vivid dreams. Evidence suggests talking about them can help Full Article
out How to sniff out the good coronavirus studies from the bad By www.newscientist.com Published On :: Wed, 06 May 2020 15:35:41 +0000 With social media, newspapers and politicians all espousing unverified covid-19 findings, use these seven signs to tell if a study should be treated with caution Full Article
out The moon is emitting carbon, raising questions about how it was formed By www.newscientist.com Published On :: Wed, 06 May 2020 19:00:48 +0000 The leading hypothesis for how the moon formed involves a collision between a Mars-sized object and Earth that would have boiled away elements like carbon, making its discovery on the moon a mystery Full Article
out Brain cells reach out to each other through miniature cages By www.newscientist.com Published On :: Thu, 07 May 2020 14:17:06 +0000 Mouse neurons trapped inside cages grow long appendages to connect to each other. Trapping the cells allows us to precisely control their growth Full Article
out New Zealand is close to wiping out covid-19 - can it return to normal? By www.newscientist.com Published On :: Fri, 08 May 2020 06:00:42 +0000 New Zealand is on track to eliminate covid-19 altogether, but keeping the virus out for good will be a challenge, and the economic impacts are likely to hurt Full Article
out I only find out now about this? By freethoughtblogs.com Published On :: Sun, 03 May 2020 23:34:35 +0000 I grew up in the Pacific Northwest, and no one ever told me about the Pacific folding trap-door spider. I sure never saw one. But this lucky woman out walking her dog saw one on the sidewalk and — oh what a waste — ran away. Experts say the spider she spotted is a Pacific […] Full Article Science Spiders
out Corruptin’ the Youth By freethoughtblogs.com Published On :: Mon, 04 May 2020 16:35:32 +0000 Fortunately, I haven’t been made to drink hemlock yet, but I did get this nice message. Over a decade ago, I found your blog. I was an English major at the time, but I found the debate over science more intriguing and changed my major to biology. The course work was so fun, I sailed […] Full Article Miscellaneous and Meta
out Will no one point out that hosting rogue mercenary outfits is bad? By freethoughtblogs.com Published On :: Thu, 07 May 2020 14:01:42 +0000 “Venezuela!” is the reflexive argument of the right-wingers against socialism, so it’s not surprising that a cocky gang of American thugs would decide they could just swagger in and topple the Venezuelan government — 62 stupid mercenaries against a nation of 28 million people. They were so arrogant that the head of the mercenary organization […] Full Article Politics History and Law
out Friday Polynews Roundup — The dam bursts for poly on TV, what we offer everyone, when to stay away, and planted seeds are sprouting By feedproxy.google.com Published On :: Fri, 14 Feb 2020 10:00:00 +0000 Full Article Friday Polynews Roundup jealousy Trigonometry series TV What polyamory principles offer everyone
out THINGS I WORRY ABOUT VS AGE By feedproxy.google.com Published On :: Fri, 09 Jan 2009 13:26:45 -0800 Full Article age ladyfunbags wet bed worry
out All they talk about in Canada By feedproxy.google.com Published On :: Sat, 15 Sep 2012 11:46:39 -0700 Full Article Canada cheat sheet hockey replotted sports
out One of world's oldest men marks 116th birthday in South Africa By news.yahoo.com Published On :: Fri, 08 May 2020 21:15:57 -0400 South African Fredie Blom celebrated his 116th birthday on Friday unfazed by the coronavirus crisis, over 100 years since the Spanish flu pandemic killed his sister. "I have lived this long because of God's grace," said Blom, possibly one of the oldest men in the world. Lighting a cigarette, he recalled the 1918 pandemic that left tens of millions dead worldwide including his sister. Full Article
out Russia is fast becoming a coronavirus epicenter, with health workers still reporting PPE shortages. Putin is already thinking about reopening. By news.yahoo.com Published On :: Fri, 08 May 2020 07:19:00 -0400 On Thursday, the country reported its largest one-day increase in new cases of 11,231 — yet President Putin already has his eyes on reopening. Full Article
out Coronavirus: 'Virus not beaten' but UK can think about next phase, says Raab By www.bbc.co.uk Published On :: Thu, 07 May 2020 16:50:06 GMT The Foreign Secretary says the prime minister will outline what steps the UK "can responsibly take over the following weeks." Full Article
out Matt Hancock asks Julian Lewis about lockdown haircut By www.bbc.co.uk Published On :: Tue, 05 May 2020 14:05:14 GMT There was laughter in the Commons as minister asks MP about his "extraordinary" haircut. Full Article
out Coronavirus: Nicola Sturgeon sets out options for easing lockdown By www.bbc.co.uk Published On :: Tue, 05 May 2020 13:16:22 GMT The moves could include a gradual reopening of schools and allowing people to spend more time outside. Full Article
out Coronavirus: MP Nadia Whittome 'sacked' as carer after 'speaking out' about PPE By www.bbc.co.uk Published On :: Thu, 07 May 2020 08:06:17 GMT Nadia Whittome claims she was "sacked" but the care employer says she was no longer needed. Full Article
out Coronavirus: Private renters need more help to 'ride out crisis' By www.bbc.co.uk Published On :: Thu, 07 May 2020 01:11:17 GMT Almost half a million people are at "high risk" of homelessness, local councils warn government. Full Article
out Tracking the global outbreak By www.bbc.co.uk Published On :: Sat, 09 May 2020 11:04:09 GMT Key maps and charts explaining how the respiratory virus has spread around the world and how it is being dealt with. Full Article
out Souza out of UFC 249 after testing positive for coronavirus By www.bbc.co.uk Published On :: Sat, 09 May 2020 09:09:35 GMT UFC middleweight Jacaré Souza tests positive for Covid-19 and will no longer compete at the controversial UFC 49 show. Full Article
out Things that more developers should know about databases By dbweekly.com Published On :: Fri, 24 Apr 2020 00:00:00 +0000 #301 — April 24, 2020 Read on the Web Database Weekly 'Things I Wished More Developers Knew About Databases' — A Google engineer (whose name may be familiar to those Go developers amongst you) shares 17 insights about databases she’s picked up over the years. I strongly recommend this piece and I identify with lots of the points myself.. Jaana B. Dogan Lambda Store: A New 'Serverless Redis' Service — This seems a neat idea. Claiming to not be just another Redis cloud service, Lambda Store applies a serverless-style pricing model which opens up a variety of neat use cases for the popular data structure server (serverless caching, for starters). The underlying system appears to be a custom clone of Redis rather than the real deal, however. Sven Anderson ???? AWS, GCP, & Azure Punch Back at the 2020 Cloud Report — AWS, GCP, & Azure each responded to the Cockroach Labs 2020 Cloud Report with instructions on how to tune their respective clouds for optimal performance. Cockroach Labs sponsor How io_uring and eBPF Will Revolutionize Programming in Linux — Even more exciting times are coming for development on Linux thanks to these technologies. A good overview from an engineer at ScyllaDB. Glauber Costa kvrocks: An Open Source, RocksDB-based, Redis-compatible Database — You know Redis’s API is good when so many projects continue to implement it for themselves. kvrocks brings the Redis API (with pretty good support) together with the RocksDB persistent key-value store. Written in C++. Bit Leak Mireo SpaceTime: An Absurdly Fast Spatiotemporal Database? — The SpaceTime database provides unprecedented analytical tools speed, sometimes outperforming other state-of-the-art solutions by three orders of magnitude. Miljen Mikić Cloud GPUs Aimed at Data Scientists — Core Scientific, an AI and cloud infrastructure vendor, is teaming with GPU-accelerated analytics specialist SQream Technologies to deliver a “GPU Cloud for Data Scientists.” Datanami An Easy Postgres 12 and pgAdmin 4 Setup with Docker — Docker provides an easy and loosely coupled way to get things set up in a development environment. Jonathan S. Katz Why We Index Everything — Tired of constantly managing indexes to speed up queries? Learn about how Rockset automatically indexes every field in a row-based store, column-based store, and search index. Rockset sponsor Redis Labs Moving RedisJSON to a New Codebase Written in Rust — RedisJSON provides a JSON data type to Redis and it’s been ported from C to Rust for better safety and developer experience. Gavrie Philipson (Redis Labs) Replicate Multiple Postgres Servers to a Single MongoDB Server using Logical Decoding Output Plugin David Zhang xsv: A Fast CSV Command Line Toolkit Written in Rust — Another ‘Swiss Army knife’ for your slightly structured data. Andrew Gallant ???? Jobs DevOps Engineer at X-Team (Remote) — Join the most energizing community for developers. Work from anywhere with the world's leading brands. X-Team Data Engineer (Remote - USA Only) — Help us architect and design “big data” systems which require queries returning within sub-second response times. Social Chorus Full Article
out Coronavirus: Russian hospital staff 'working without masks' By www.bbc.co.uk Published On :: Thu, 07 May 2020 23:05:50 GMT As coronavirus spreads in the provinces, more and more health workers are getting sick - and dying. Full Article
out Ahmaud Arbery: Joggers out in solidarity with the killed 25-year-old By www.bbc.co.uk Published On :: Fri, 08 May 2020 22:58:30 GMT People have been dedicating their workouts to Ahmaud Arbery who was shot and killed while out jogging. Full Article
out Medium-hard SQL questions to think about By postgresweekly.com Published On :: Wed, 6 May 2020 00:00:00 +0000 #354 — May 6, 2020 Read on the Web Postgres Weekly pgModeler: A Postgres Database Modeler — An easy way to create and edit database models in a visual way. It’s packaged up as a paid product but is also open source so you can build your own. Raphael Araújo e Silva The Best Medium-Hard Data Analyst SQL Interview Questions — This article begins with a quote: “The first 70% of SQL is pretty straightforward but the remaining 30% can be pretty tricky.” True! This article focuses on the tricky ‘medium-hard’ area that few tutorials venture into. Zachary Thomas Monitor Custom Postgres Metrics in Real-Time with Datadog — Monitor and visualize Postgres performance in context end-to-end alongside the rest of your stack. Create custom, drag-and-drop dashboards to quickly view analytics on any Postgres metric. Try Datadog free. Datadog sponsor My Favorite PostgreSQL Extensions: Part Two — The second part of a series we linked to last week. This time, Nawaz takes a look at pgAudit, pg_repack, and HypoPG. Nawaz Ahmed Backup Manifests and pg_verifybackup in Postgres 13 — Postgres 13 will introduce two features to enhance the automated validation of physical backups: backup manifests and a new tool called pg_verifybackup. Gabriele Bartolini arm64 Packages Now on apt.postgresql.org — If you’re running ARM64 hardware and Debian or Ubuntu, you can now install Postgres via apt. Christoph Berg Speeding Up count(*): Why Not Use max(id) - min(id)? — A warning tale in case you decide to take this shortcut. While you might be able to estimate or fudge a number that’s close, you can’t guarantee sequences will give you an exact, correct answer here. Hans-Jürgen Schönig Using Postgres for JSON Storage — With JSON and JSONB types and associated advanced ways to query such columns, using Postgres as a store for JSON data is pretty simple. This is the briefest of overviews but leads into an interactive online tutorial. Steve Pousty How to Migrate From Inheritance-Based Partitioning to Declarative Partitioning — Partitioning was introduced in Postgres 10 and Postgres 11 improved the declarative partitioning support. This article demonstrates a move from inheritance based partitioning to declarative partitioning using the native features found in Postgres 11+. Caterina Magini Free eBook: How to Get a 3x Performance Improvement on Your Postgres Database — Learn our best practices for optimizing Postgres query performance for customers like Atlassian and how to reduce data loaded from disk by 500x. pganalyze sponsor How to Backup Multiple Tablespaces with pg_basebackup Ahsan Hadi ▶ Security and Compliance with Postgres — A recorded webinar that 2ndQuadrant ran recently. Boriss Mejías Oracle to PostgreSQL: ANSI Outer Join Syntax in Postgres — The latest in a series of blog posts about migrating to Postgres from Oracle which looks at what Postgres offers in place of Oracle’s join operators. Kirk Roybal An Interview with 2ndQuadrant's Jimmy Angelakos — The latest ‘PostgreSQL Person of the Week’ to face questions about his experiences with Postgres. Andreas Scherbaum dadbod.vim: A Modern Database Interface for Vim — A Vim plugin for interacting with numerous databases, including Postgres. Tim Pope ???? Upcoming Online Events Postgres Pulse - weekly at 11am ET each Monday. Weekly Zoom-based sessions with folks like Bruce Momjian, Vibhor Kumar, and other people at EnterpriseDB. ???? Postgres Vision 2020 on June 23-24. A full attempt at an online Postgres conference across multiple days with multiple tracks. ???? – requires e-mail address or registration???? – costs money to participate Full Article
out Life and struggle after YouTube fame By www.bbc.co.uk Published On :: Wed, 11 Mar 2020 00:43:14 GMT Dax was one of YouTube's first stars, but 13 years later, few people remember his name. Can a vlogging legend seize glory again? Full Article
out Coronavirus: The grandad who became a TikTok star without realising it By www.bbc.co.uk Published On :: Sun, 12 Apr 2020 23:42:47 GMT Joe Allington was persuaded to dance on TikTok for the first time in January. Now he's got 1.5 million followers. Full Article
out Why being gay in Russia is about "love and passion" By www.bbc.co.uk Published On :: Sat, 15 Feb 2020 00:19:02 GMT The secret moment between two gay Russian lovers that defied haters. Full Article
out Coronavirus: Brazil's outbreak 'threatens Paraguay's success' By www.bbc.co.uk Published On :: Sat, 09 May 2020 04:20:41 GMT Paraguay's president says he has reinforced the border with the worst-hit country in South America. Full Article
out React Router & Webpack in Production By reactjsnews.com Published On :: Sun, 13 Mar 2016 04:00:09 +0000 I’ve been working on a pretty large react-router codebase at work. Currently it has around 50~ code splits, which as you can imagine, is a lot of routes. This is going to be a post on the things I’ve learned throughout building out my development / production config and how we are using webpack in production. ###Initial Setup Before I really dive into how my webpack config is setup and the problems I’ve found, I’ll quickly go over how this app is setup. Currently, there’s one entry point and it looks like this: import React from 'react' import { render } from 'react-dom' import { match, Router, browserHistory } from 'react-router' import AsyncProps from 'async-props' import routes from '../routes/index' /* globals document, window */ const { pathname, search, hash } = window.location const location = `${pathname}${search}${hash}` match({ routes, location }, () => { render( <Router render={props => <AsyncProps {...props}/>} routes={routes} history={browserHistory} />, document.getElementById('app') ) }) It looks like a standard react-router setup, except a couple things are different. For one, there’s way too many routes to have them all in this file, so we are importing the main route object into this file. Second, we are using match on the client side. Without matching first, the client side would try to render before the splits were downloaded causing an error. You can read a little more about match on the client here. Next, we are using Ryan Florence’s awesome async-props library for loading data into components. It allows me to load data from an api before the server renders components. It will pass the data down to the client for the client-side render, and then data will load as you navigate to new pages automatically. ###Routes Our main routes file looks like this: export default { component: 'div', path: '/', indexRoute: require('./index'), childRoutes: [ require('./login'), require('./account'), ... ] } There’s a lot more require’s in our app of course. And these are nested pretty deep. The files referenced in the root file have more child routes, and those use require.ensure which you can read about in the webpack docs on code splitting. It tells webpack to make a new bundle, and then load that bundle when require.ensure is called on the client. Here’s an example: if(typeof require.ensure !== "function") require.ensure = function(d, c) { c(require) } module.exports = { path: 'account', getComponent(location, cb) { require.ensure([], (require) => { cb(null, require('../../views/master/index.jsx')) }) }, childRoutes: [ require('./settings'), ] } There’s a few things going on here. First, we have a function at the top that will polyfill require.ensure. Why? Well, on this project we are server rendering our whole site as well, which I would rather not do, but due to the type of site we are building: we have to. The next thing is the relative require path. I’m using this awesome babel resolver plugin along with webpack’s resolve paths so that I can import files like this: import Header from '../../master/header' //becomes import Header from 'master/header' Why do I have to use a babel plugin AND webpack’s resolve feature? Once again, doing a server rendered app, the code is ran on the server and also through webpack. In this particular app, I haven’t had time to experiment with webpacking the server. Anyways, if I didn’t use the babel plugin, errors would be thrown on the server, but webpack would work fine. This is one of the common things I have ran into while building this app. Realizing some things need to be done slightly different on the server or client. You may still be wondering why I am referencing the component as a relative path in the above route example, and that’s because the babel plugin I’m using only works with import and not require. My route objects are the one place that I have these “nasty” looking paths. ##Webpack I was prompted to make this article after tweeting this out: webpack splits vs AggressiveMergingPlugin({minSizeReduce: 1.0}) pic.twitter.com/b6kxHEqNcO— ReactJS News (@ReactJSNews) March 10, 2016 A couple people wanted a better explanation as to what’s happening here. When I was first building my production webpack config, even after using all of these plugins: new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js'), new webpack.optimize.OccurenceOrderPlugin(), new webpack.optimize.DedupePlugin(), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, comments: false, sourceMap: false, mangle: true, minimize: true }), My bundle looked like this: That’s pretty huge if you think about it. And I’m not talking about the amount of bundles. I’m talking about the file size. After searching everywhere for a solution to get the bundle size down further, I found webpack’s AggressiveMergingPlugin. This thing is a life saver. As you may have seen from the tweet, the output turns into this: Just having the main, vendor, and one other bundle brings the whole site under 1MB. I’m using the plugin to only merge files if the size reduction is more than 50%, which is the default. People talk about code splitting in webpack and think it’s really amazing to load the JS for the page you’re on and nothing more. It sounds great. The problem is that the file size is immensely bigger. If someone more familiar with webpack has a better idea as to why this is, I’d like a better explanation. It isn’t feasable to keep the splits instead of merging them. This site is pretty large, with a lot of routes as you can tell from the screenshots. Codesplitting without merging would cause way more waiting on the client side every time you navigate to a new page. Even if the JS was heavily cached, the first time you hit these pages it will have to load a 300kb bundle for some of them. ##Caching That takes us to caching. We are about a month away from publicly launching this site, so we haven’t setup the workflow for pushing updates through a cdn, but that will be the end result. For now, in my webpack config, my output object looks like this: output: { path: __dirname + '/public/assets/js/[hash]/', filename: '[name].js', chunkFilename: '[id].js', publicPath: '/assets/js/[hash]/' }, This is in the production config of course. This way I can cache the files and when I update the code, the hash will change and the browser won’t be caching the old code. I pass in the hash as an env variable at runtime to that the server has the correct path to the assets folder. ##Problems There were a few big problems I came across while building out a server rendered app with dynamic routes. The first was page titles. How am I supposed to have the right title on the client and on the initial server render? Thankfully, Ryan has yet another solution. react-title-component solves this perfectly. The next was, how do I hit an api, wait for the response on server render, load new data on route changes, and of course, do this at the component level. As I mentioned before, async-props solves this problem too. It will give you route info so that you can make requests based on things in the url. The next problem is one that I haven’t fully solved. Webpack is getting really slow. It takes around 20 seconds on a maxed out macbook 15” to build code in production. On the server, it takes more like a minute! If I’m in development mode, it takes around 10 seconds to make the initial build, and sometimes it lags on building the splits on code change. If anyone has insight into this I would love to hear it. This one goes along with the webpack one, and it is reloading the server. I haven’t tried to webpack the server but I hear doing so works great for this. I don’t think it would fix the problem with webpack being slow though, and in fact it would probably make it even slower. ##Folder structure I almost forgot to throw this one in here! I’m really happy with the structure of this project. I have a views folder that has all of the same folders and file names as the routes folder. It makes it really easy to find things. These also correspond with the URL to the page. /account/settings will be in views/account/settings.jsx and routes/account/settings.js. The same is true for my tests folder. ##Conclusion I hope this gave you a good glimpse at how webpack and react router work at a larger scale than you see most blog posts cover. If you have any questions or things that you would like me to talk about that I haven’t already, please leave a comment below and I will update this post! I’m sure that I forgot a few problems and tips writing this. I was thinking this would be a short post but it blew up on me! Full Article