Lurker News
I recently realized that certain kinds of knowledge allow one to be significantly more productive when solving a large class of problems.

For example,
* Regular expressions for simple text processing.
* Parser combinators for parsing.
* Parser generators (esp. packrat variety) for parsing.
* The concept of fuzzing and property testing for testing code.
* Calculus for solving all sorts of problems.
* MCMC for solving a huge class of probability problems.
* Search algorithms for solving a variety of problems (e.g. all NP-hard problems, sudoku, HTNs, scheduling, planning).
* Gradient descent for solving a variety of optimization problems.
* Vector Space embedding as a conceptual tool for a variety of complex AI problems.
* Effect composition (Haskell's IO or Scala's ZIO) as an incredibly powerful paradigm for concurrency and parallelism.
What are some examples of 10x multipliers that come to your mind? Fundamental ideas without which you would be drastically less productive.

Comments (418) 135 threads

Earlier comments
oxff#
Process knowledge, ie. how do you effectively contribute to the organizational body of work, and how you can make it more effective etc.
throwaway67342 replies#
Cd -
brianhorakh#
Return to the previous directory
stragies#
alias c-='cd -'
mianos3 replies#
Never parse a data file with regex or string functions. Always spend the small extra time to at least write a state machine.
belkarx#
Could you elaborate on how this might be done?
wallscratch#
Why? Aren’t all regular expressions equivalent to some finite state machine?
rockemsockem1 reply#
Never is a strong word. If I have a data file that I'm not going to use very much I'm definitely going to write 10 lines of python using re.find and string.find to get what I want out of it.

Unless you have some nice way to quickly create a state machine besides using regexes?

mianos#
OK, you are right, never say never. For a once off, experiment or code never going to prod that you are always going to babysit, a regex is a good solution for speed and size of code.

The trouble with most simple regexes to solve this, is the state machine is often not closed.
A regex is way better than strcmp, ltrim, rtrim, mid and friends all held together with gum and tape.

28304283409234#
Knowing in which problems pace you are and which solution strategy works in that space. Basically: "cynefin".

Load more comments