Ask HN: What Technologies to Learn in 2020?
428 pointsIt is always good to keep yourself up to date with the hottest tech stacks. So what are your suggestions for 2020?
For example:
Flutter / React Native ?
ML? Tensorflow / Keras ?
GraphQL ?
Vue JS?
Go or Rust?
+1 if you suggest something cutting edge that very less people know about!
Comments (433) 116 threads
Show all comments
Showing thread 14 of 116
I don't do this for every single project all the time - I do work on systems, that are, essentially, non-unit-testable. While refactoring could be done, clients/owners refuse to give appropriate time/resources to move in that direction. That's their choice, and they pay the productivity price (and often, are acutely aware of the situation but solider on anyway).
However, for my own projects, testing/testable code is an increasing focus, and has helped my own code/projects to be easier to think about up front, and easier to modify/maintain/refactor later.
Instead learn formal methods. Learn how to prove your code correct for all cases rather then verifying your code for one test case. This is learning and it won't be rehashing what you know like tdd. Formal methods is brutally hard.
You don't need a framework to do TDD. Can't you put your assertions and functions and tests in some iterative loop?
It's also trivial to create an absolutely brittle mess of a test suite. Building a solid, performant and reliable test suite is an art that, in my experience, the vast majority of devs do not seem to have much skill in.
If you want you can add fancy scoping and contexts and assertion shortcuts go for it, but ultimately this is also trivial. I wouldn't spend too much effort in this area.
It will be a very different and much more challenging path then learning another framework/language which is what most people just do over and over again.
Continue this thread — 2 replies
There's a bunch of made up patterns and techniques for writing testable code though. Most of these techniques are actually bad.
Dependency injection with mocks is the one I hear about the most and it is also the worst possible way to organize your code. Do not write your code using this pattern... the complexity of this pattern hides the fact that it is, in fact, not improving anything.
Continue this thread — 4 replies