Couple hours ago I’ve left the peaceful environment I’ve been in for two days. Seminarzentrum Rückersbach was a great place to have an open space conference. It is isolated from all kind of side effect of the society, which makes it easier to focus and learn.
A couple of days before the conference, I thought if I wanted to host any session and I just didn’t want to. My aim was to understand the real-life usage of the purely functional languages and get inspired by the professionals in this area. Well, you can never know what would happen in an unconference. This time I’ve met with colleagues from Codurance and 8th Light, which are applying the apprenticeship program for years now. We’ve decided to host a session about the apprenticeship program in our companies.
The apprenticeship program is an interface that implemented by the companies according to their needs. Unfortunately, there are not so many companies applying this pattern, so I would say it is quite new. It was a great opportunity to talk about different implementations of the apprenticeship program. Right now, I have ideas to shape our apprenticeship program a little more.
I knew the concept of the Maybe from my prior studies with Scala -scala.Either-, but I’ve really liked the usage in the PureScript. The hardest part of my studies with Web Components was to make them testable. The problem is, most of the time your web component is highly dependent on the DOM. PureScript abstracts the DOM interface which I assume makes it more testable. However, this is not the only upside. DOM selector returns a Maybe which could yield the real DOM Object, or Nothing. Since the element wrapped within the Maybe, it forces the developer to handle all cases. This is a discipline one can also apply without Maybe. You just need to handle every possibility carefully. It’s easy to forget or neglect if the language doesn’t force you to handle every possible case.
Exhaustiveness check is another great topic that helps you to handle every single case. Check out my Case Classes In Scala post for more information about exhaustiveness check.
After BusConf 2018, I’ve decided to assess PureScript and TypeScript to feed my need for types. It was a great opportunity to learn for two days without any kind of disturbance.
See you in the JSCraftCamp next week(10-11 August 2018)!