The Best of the Week (Mar. 22-29): DevOps Zone
Join the DZone community and get the full member experience.Join For Free
In case you missed them, here are the top posts from the DevOps Zone this week--as chosen by yours truly. This week: Preserving type safety in functional programming, why Johnny can't do TDD (remember the book "Why Johnny Can't Read"?), reporting custom JVM metric sets, polishing your feature branch commits, and a Git pre-hook that fails in Jest and Jasmine.
Functional programming is a very important and powerful way of programming. Experts in the field have realized that applications written in a functional style tend to be more expressive, readable, and correct. Referentially transparent functions can have their result values substituted inline in place of the actual function call. Finally, using Optional can enhance your code in many ways by making it shorter to write as well as fluent.
The code we generate shouldn’t assume that people will take the code and adapt it into testable code, but that we should write testable code as our sample code. Maybe colleges should teach basic software architecture and TDD as part of the curriculum. Maybe those of us who know better should just start testing and figure this all out well enough to explain it to others.
I've always been missing possibility to configure custom headers in JStat. Of course there are a lot of predefined data sets, but it'll be nicer if we could create our own data set.
When you create your own, personal feature branch you're allowed to do as much commits as you want, even allowing kinda dirty commit messages.
One of the annoying things with Jest is that while it enables you to run only a single test by using it.only, it does not report this in any noticeable way. Thus you can end up in the same situation as we did, not running many tests without knowing it. (Oh yeah, if we only did review the code properly …).
Opinions expressed by DZone contributors are their own.