Profile cover photo
Profile photo
W.S. Hager
32 followers -
MA | Full-stack JS developer | Data dude
MA | Full-stack JS developer | Data dude

32 followers
About
Posts

Post has attachment
Trie Demo
This demo I made for a job application. Never heard from the guy again, but at least I have a nice demo. https://codepen.io/wshager/full/zWBzMV/ It says "directed acyclic word graph", which I think is the correct term, but I just found out on Wikipedia  tha...
Add a comment...

Post has attachment
Rich Reducers
Writing parsers is not for humans. Humans define grammars, and feed that to parsers. However, I was determined to try my hand at making a parser for XQuery in XQuery as a human, because I saw that the language is actually quite consistent. The same is true ...
Add a comment...

Post has attachment
Pleidooi voor een meer formele benadering van programmeren
Programmeren is zowel een wetenschap als een gereedschap. De "man van de praktijk" loopt gaandeweg tegen problemen aan die formeel allang verkend zijn. Deze zaken zijn veelal uitgewerkt in ingewikkelde wetenschappelijke publicaties. Dat niet iedereen die le...
Add a comment...

Mobile blogging apps suck ...
Add a comment...

Post has attachment
Forms as state containers Part 4: form generation
With form generation we leave the realm of functional form controls. In addition to barebones client logic, we have to focus on the User. Many programmers tend to forget that. However, the devil is in the details. You may just want to add a simple form to c...
Add a comment...

Post has attachment
Forms as state containers Part 3: validation
This is a small series on HTML forms. The previous post was Forms as state containers Part 2: managing complex data . A form is a schema Since HTML5 there are a lot more attributes avaiblable on form components for expressing constraints. This means forms c...
Add a comment...

Post has attachment
On unobtrusive javascript
This is a short rant that was originally part of my HTML forms write-up, but that I took out, because it became too long. I haven't been writing unobtrusive javascript for at least a decade, and perhaps that was a mistake, but it was also inevitable. In my ...
Add a comment...

Post has attachment
Forms as state containers Part 2: managing complex data
JSON? The value of a form can be seen as a key/value map, a plain object in JSON. From this follows that the value of a subform naturally becomes an object in the parent form. In HTML5 subforms can be expressed as a fieldset  element. However, the javascrip...
Add a comment...

Post has attachment
Forms as state containers Part 1: forms as a single source of truth
Please read the introduction  if you haven't already. Everything is a form HTML forms are an age-old standard, and by no means replaceable. I've created a form builder on Dojo Toolkit  some years ago, and for all its javascript fanciness, it was driven by t...
Add a comment...

Post has attachment
Forms as state containers (in stateless web apps)
When wiring up a web application there's a lot of state involved. Only recently I learned about state management libraries in javascript, but I won't be talking about them. But I think I don't need to introduce them, because I'm convinced you don't need the...
Add a comment...
Wait while more posts are being loaded