Fork me on GitHub
#off-topic
<
2018-05-08
>
soulflyer14:05:01

Just watch out for Maxwell and his silver hammer.....

flefik16:05:12

I found this article very heart-warming and entertaining: https://byorgey.wordpress.com/2018/05/06/conversations-with-a-six-year-old-on-functional-programming/

đź‘Ť 8
❤️ 4
hmaurer17:05:01

Random question: what is considered an “acceptable bundle size” for a javascript app these days? I just tried a “hello world” project and after importing React and ant design (UI library) I am at 1.5mb for the JS bundle after optimisation

hmaurer17:05:31

and 380kb of css

tbaldridge18:05:25

did you gzip the js bundle?

tbaldridge18:05:28

that's a lot of JS

hmaurer18:05:32

@tbaldridge gzipped goes down to 450kb, roughly

tbaldridge18:05:00

that's not horrific, but depends on the app in question

hmaurer18:05:46

@tbaldridge it’s a resource management app for an NGO

justinlee18:05:59

@hmaurer fwiw, a gzipped bundle from create-react-app is 38k

justinlee18:05:23

an empty reagent project is about 80k iirc.

justinlee18:05:32

so something is adding a boatload of code into your project

hmaurer18:05:15

@lee.justin.m ant design is (the ui lib)

justinlee18:05:05

i ship pdf.js, which is similarly giant, so it is workable

hmaurer18:05:34

@lee.justin.m what’s the bundle size of pdf.js, out of curiosity?

justinlee18:05:28

it depends on what parts you use, but about 400k gzipped

john19:05:12

I'm exploring the use of code-splitting modules to keep artifacts small