~/writing / tags / JavaScript

#JavaScript

9 writings

Differentiating Web Assembly with F#

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.

8 min1,430 words

Tensorflow with Fable-Elmish. A Failed Try

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.

6 min1,166 words

Opinionated Fable2 - Architecture & Performance

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.

25 min4,880 words

Angularjs and the Mess we are in

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.

5 min906 words

Why I moved away from Sencha to Phonejs?

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.

3 min513 words

Type Casting JavaScript with Typescript

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.

6 min1,167 words

JavaScript Diary II

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.

2 min238 words

JavaScript Diary I

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.

4 min683 words

Coffee with CoffeeScript

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.

10 min1,962 words

Search the site