Brendan Graetz

  • tl;dr= Use ReactJs to publish static + isomorphic websites

    git push -> travis -> webpack -> reactjs -> gh-pages

    reactpub

    React can render both to in-browser DOM - which is the default use case - as well as to an in-memory string - which is usually used in server-side rendering. Thanks to static-site-generator-webpack-plugin doing the heavy lifting, and a few node modules of my own, it can also be used to generate static sites. This is perfect for hosting on Github Pages, or similar hosts.

     …

    continue reading »
  • tl;dr= Reference/starter project can be found at github.com/bguiz/front-end-js-testing

    Testing NodeJs vs Testing Front-end

    When developing a NodeJs application, testing it can be quite straight forward, in the sense that you simply need to to interact one thing: your Javascript modules.

    This is fairly easy to do if your test runner or framework is also written in NodeJs - all you have got to do is require() the necessary modules in, …

    continue reading »
  • Not a Windows or a .NET developer of any flavour, but I have been using Javascript to write applications that work on devices running windows.

    I have been packaging them up using Cordova/ Phonegap. This works well for Android and iOS, but not so well for Windows; but thankfully Microsoft has released a HTML + JS offering which it calls WinJS, and is essentially a tool chain which does what Cordova/ Phonegap do, from Visual Studio, building Windows 10 UWP apps. (There are also Windows 8 UWPs, but I won’t go into that here.) …

    continue reading »
  • What & Why Asynchronous?

    When you write a program, a lot of time is spent waiting for something. In fact, most programs spend most of their time idling, waiting for something to happen, and then burst into life in short spurts whenever things need to happen. The most common one is waiting for user input - for a user to type something into a form, or to press a button - but there are many other things that aren’t user-related that programs typically have to wait for: Reading or writing files to disk, …

    continue reading »
  • Let’s Encrypt is the new certificate authority in town, enabling developers to generate their own TLS certificates - which are necessary for running servers over HTTPS - and it just went into public beta a week or so ago.

    By default it is all set up and ready to go for Apache servers. However, for other varieties of servers - NodeJs included - a little more leg work is involved. That’s what this post looks at. Parts of it are specific to NodeJs, with the remainder are applicable to any other platform. …

    continue reading »

Copyright © 2008-present Brendan Graetz