Oddbean new post about | logout
 So let me get this straight. Creating the default hello world react-native app with 2 views results in 0.5GB of data on the disk and 44k files? 
Are we serious?

#react #javascript #typescript 
 Javascript is not a serious language  
 I agree with that, but also that's an independent issue of the npm bloat that I'm highlighting 😄 
 "Assume someone is stupid on their own, but is now distracted by a mob of other stupid people.  

Now assume that person is writing your software."

Javascript...fixes this? 🤔

 
 The issue has nothing do with JavaScript and everything to do with the dumbasses building the frameworks.  

Just look at OG Java. Same thing. Fuck, they have frameworks to build other frameworks.

But yeah, JavaScript can be pretty stupid, too. 
 It is optimized for time to market and low cost. JS devs are a lot cheaper than the alternatives and the output (crappy and bloated as it is) runs ok-ish on most platforms without much effort if you have a new-ish fast computer with lots of cores, an SSD and 32+GB RAM, which most of the developers and execs ofc do.

The end user on the other hand often uses a device that's a lot slower and/or older and are often running lots of these turd apps at the same time eating up ressources and bogging their system down.

Fuckers should be forced to use a 5 year old laptop with 4GB of ram a few days a week 😆 
 I like the Go approach more where they suggest against importing dependencies for simple functionality that can be copypasted or written better.   
 How do you write mobile apps in Go? 
 There are some ways [1], but I didn't mean that. I meant more generally Go as a programming language has that culture that's instilled in the initial Go documentation (and talks from Rob Pike...). 

1) While there are some libraries to do mobile UI in Go, they are not great, but often you deploy Go code onto mobile phones wrapped in another language. For example multiple lightning wallets include lnd, which is writen in Go.  
 We’re not comparing the same things. I agree Go is generally more lightweight, but it’s not often used for the same kind of software. 
 I'm comparing the DRY ideology that's heavily applied in the JavaScript and npm world to the Go ideology pushed by Rob Pike and Ken Thompson.

https://medium.com/@scott.boring.sb/dont-write-reusable-code-a857e925b683 
 And then there's https://www.npmjs.com/package/is-even 😆

Any good ressources to get started with go you would recommend? I primarily do js, python and php at the moment, want to broaden my horizon a bit 
 The nested hell of node_modules...