Overview The last post about reactive programming introduced an experimental library which, among other things, implements method references (aka function pointers) for Java. If Java allowed for such a syntax, I could imagine a succinct example: class TestClass{ int add(int a, int b){ return a + b; } public void test(){ FunctionPointer fp = TestClass.add; … Continue reading Function pointers in Java
Category: programming
AWS diaries: serving HTML from lambda
AWS lambda is a neat feature that runs code in response to requests and transforms the code's output into some response. Requests can be an event occurring in the AWS platform such as an S3 modification or an HTTP request. The response is an MVC-style model which needs to pass through some network component, like … Continue reading AWS diaries: serving HTML from lambda
The Model-View-Presenter-Controller pattern
In this post I'll talk about the MVPC (Model-View-Presenter-Controller) design pattern I use in client applications such as progressive web apps and mobile clients. It can be best understood as an evolution of the MVC (model-view-controller) pattern past the MVP (model-view-presenter) pattern. The basics: MVC and MVP You might want to skip this section if … Continue reading The Model-View-Presenter-Controller pattern
Book of dark arts: storing data in the view
Pentagram, source Wikipedia. Towards the end of the year I'll indulge in the dark arts, join the goblins and leave my white architect hat under the Christmas tree where it belongs. I'm helping a friend (a technically minded, non-programmer) write his first mobile app . We wanted to keep everything simple: use technologies which can … Continue reading Book of dark arts: storing data in the view
Thunderbird forgetting passwords
After a simultaneous Thunderbird upgrade and profile migration from Windows to Linux the mail program permanently forgets passwords. The setting: Thunderbird 52 on Windows Back up profile Restore profile to Thunderbird 60 on Linux Observe that all passwords to all accounts are lost even if entered again This seems to be some … Continue reading Thunderbird forgetting passwords