In this F# Advent post, I ask what WebAssembly adds for F# beyond Fable’s JavaScript output. After failing to set up TorchSharp, I demonstrate DiffSharp derivatives and gradients in an FSBolero browser app and note WebAssembly’s initial-load cost.
I report an unsuccessful attempt to train a TensorFlow.js model from a Fable-Elmish app. I trace problems with generated TypeScript bindings, UI-updating JavaScript callbacks, and fitting that work into Elmish commands, then ask for feedback.
I revisit my Fable performance post while Fable 2 is in beta, comparing the JavaScript generated for records, validation types and domain models. The examples show less generated code and different output; I also keep my caution about using aether in Elmish code.
AngularJS gets work done quickly on a small project, but its scopes, directives and Service/Factory/Provider distinctions make larger projects harder to debug. JavaScript discipline matters more than expecting a framework to solve the problems.
I recount struggling with Sencha Touch’s boilerplate, command-line tooling, and Architect before completing an app with PhoneJS in about the same learning time. I note that PhoneJS starts slowly but let my development move ahead.
I compare TypeScript's types and editor support with CoffeeScript's stronger push toward a preferred style, and show how a TypeScript module compiles to JavaScript. I like TypeScript's tooling but note that it still permits JavaScript patterns I consider poor.
This follow-up to my JavaScript diary points readers to a 50-minute Channel9 talk about writing JavaScript. I came to the language from C# and C++, and wanted to call out the differences that caught me out.
In this first JavaScript diary, I explain why I use an immediately invoked function to keep declarations private, then show the Revealing Module Pattern for exposing selected functions. I also touch on constructor functions, single responsibility, and descriptive names.
I use CoffeeScript to make JavaScript easier for me to read and write, with examples of callbacks, loops, classes, inheritance, and binding. The post argues that CoffeeScript can help me learn JavaScript while still compiling to it.