1,085 karma · joined December 3, 2014
Consistently ranked as a top city in the US, and world, to live in, in no small part due to the comparatively cheap cost of home prices, rent, and living in general. For example, there are nice neighborhoods in the city where one can buy a three bedroom, 2000sq foot house for < $150,000. I think that would buy a closet in the Bay area.
With Carnegie Mellon University here, the 'intellectual' and more specifically the tech scene is thriving. I work for (and take classes at) CMU and see this first hand. Numerous big tech companies have set up shop near campus (Google, Apple, Facebook, Amazon, Uber, etc). There are many, well funded, startups operating out of the city as well (e.g. Duolingo, Petuum), most of which have spun out of CMU.
Part of the current impl doesn't seem like it is going to scale as the DOM in a page gets larger and larger: he mentions that right now they are sending the full rendered HTML from the server to the client on every update, then doing the diff client-side. They are looking at optimizations, hopefully sending diffs from the server is one of them.
I think you mean "immaturity of the platform".
Also, native modules weren't the only "escape hatch". An Elm application can communicate with JS through ports.
As far as I understand it, the native modules lockdown had to take place. Period. The one thing that most attracts myself (and many others, I'm sure) to Elm is the guarantees that the compiler gives you towards ensuring no run-time errors. Give folks the ability to author and publish Elm native modules and the entire platform loses that guarantee.
Syllabus: https://canvas.cmu.edu/courses/603/assignments/syllabus
YouTube playlist: https://www.youtube.com/playlist?list=PL7y-1rk2cCsAqRtWoZ95z...
The parenthetical 'no more, no less' should be removed here as it is misleading. TypeScript interfaces do allow the objects that 'implement' them to of course have other properties defined. See the LabelledValue example in the TypeScript docs:
https://www.typescriptlang.org/docs/handbook/interfaces.html
One can get some of the same benefits of sum types in TypeScript using discriminated unions - but the syntax is cumbersome and requires boilerplate as compared to Reason.
A great resource on eating healthy is Michael Pollan's "In Defense of Food". Read the book or watch the documentary film version.
With Elm you will have a ridiculously stronger guarantee that what you write won't break at runtime. The type system and compiler also allows you to refactor with confidence.
Vanilla JS, unless you write exhaustive unit tests, gives you neither of these benefits.
I'd only add a mention of algebraic data types. I learned enough Elm and Haskell to realize the benefit that they bring to a codebase by allowing an expressive way to define the valid structure of an application's data and state.
To learn Elm (and to learn more about chess engine implementations) I wrote a pure client-side chess engine and game. https://github.com/darrensiegel/elm-chess
You can play it live here: https://elm-chess.com/
I've been using TypeScript with React now for about six months - prior to that I was working on a large React/Redux app written in ES6 using Babel.
In my experience, I have seen a significant increase in my productivity after embracing TypeScript. With the static type support I am fixing/avoiding more errors at 'authoring' time due to intellisense and the VSCode editor flagging what will be compile errors. I am able to refactor across files with a lot less fear.
The advanced types in TS (specifically discriminated unions) make Redux actions and reducer code a lot more maintainable.
Overall I'm very pleased with the transition to TS. I spent time learning Elm last year and simply fell in love with that development experience. For reasons out of my control I cannot use it in production but with my current TS+React approach I can at least get close to what Elm offers.
I heard a quote once that the The Velvet Underground and Nico album only sold 1000 copies when it came out. But every one of those 1000 people went and started a band.
Thanks!
"I might be an adult, but I'm a minor at heart"