3 ms·
From an experiential perspective, here are paradigms that have resulted in me spending less time creating and hunting down bugs, which has made me noticeably mo
by pmarreck 10y ago
From an experiential perspective, here are paradigms that have resulted in me spending less time creating and hunting down bugs, which has made me noticeably more productive:
1) Unit testing/TDD, specifically setting things up where I am able to run a unit test in less than a second on any code I'm working on has been a huge productivity boost vs. running a whole suite periodically
2) Immutable variables (or generally avoiding mutation)
3) SRP and cyclomatic complexity reduction
4) Pattern-matching (Elixir/Erlang) which also reduces the amount of branching in code and thus its depth (reducing cyclomatic complexity further)
5) FP (which incorporates (2) and (4) plus generally constraining side effects and I/O to the smallest part of the code possible, and leaving the rest non-side-effecting)
I have done scrum, but I haven't seen it as directly effective as these other things, it's more for effective PM IMHO.
- maxxxxx 10y agoAll the items you list are useful things. But you probably have noticed that they work well in some cases but in others they don't. The problem starts when people declare that X is always the right thing even in situations where it clearly doesn't work.
- pmarreck 10y agoAgree, but I'm with John Carmack when Mr. C++ says something like: "My pragmatic summary: A large fraction of the flaws in software development are due to programmers not fully understanding all the possible states their code may execute in. In a multithreaded environment, the lack of understanding and the resulting problems are greatly amplified, almost to the point of panic if you are paying attention. Programming in a functional style makes the state presented to your code explicit, which makes it much easier to reason about, and, in a completely pure system, makes thread race conditions impossible." http://www.gamasutra.com/view/news/169296/Indepth_Functional_programming_in_C.php http://www.gamasutra.com/view/news/169296/Indepth_Functional...