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
SamReidHughes2 replies#
> * Regular expressions > * Parser combinators > * Parser generators

I sometimes forget how I take regexes for granted, and how some people don't know them.
I would replace the combinator/generator stuff with "how to cleanly make a hand-written parser." Developers frequently stumble through that quite badly.

ZeroCool2u1 reply#
I'm actually just about to run into making a somewhat complex parser and haven't done it since school.

Any recommendations resources you'd recommend as a refresher?

SamReidHughes1 reply#
By basics I really mean extreme basics. The level of instruction I'm thinking is: A parser is a function that looks something like "optional parse_foo(const std::string& data, size_t *pos)", which increases the value of *pos. It chews off objects from the front of the string and returns std::nullopt upon error. It's easy to recursively invoke smaller parsers this way.

Just that alone would really help people out and avoid problems I've seen encountered, where a dev needs to parse something, and just kind of spastically traipses around the string.

ZeroCool2u#
Ah, well I’ve got that bit covered at the very least :)
screye#
You don't even need to know how to use regex well. If you know what to look for, tools like regexr.com practically create the regex for you.

I have often found that the ability to identify : "hey I can use regex here", is more useful than actually knowing how to use regex.

aj72 replies#
Being able to walk into a machine shop and make a part, right then and there.
JacobThreeThree#
General machining skills are excellent and they're being lost thanks to the shift to a CAD-based workflow.
wobbly_bush2 replies#
Where can one learn such skills?
carabiner#
Community college or a guy who knows how.
aj7#
YouTube, a garage, and a $5000 investment in small machine tools. Terrific resources on YouTube.
FL33TW00D#
1. Deep deep knowledge of your text editor. I am biased towards Vim, but many others can work if you know them inside and out.

2. Learning multiple programming paradigms, bare minimum 1 declarative and 1 imperative language. Build something substantial.
3. Understanding yourself, what times you work best, diet, fitness etc. I find where and the setting of where I am working is extremely important.
4. Broad (but not necessarily deep) knowledge of DS&A. Knowing a thing exists is enough to search it.
5. Broad (and preferably deep) knowledge of computers on a fundamental level. An approximate understanding of what the statements you are typing into the machine are “translated” to at each stage.

don-code1 reply#
Basic debugging knowledge is helpful, but I've found the ability to think about distributed, networked systems all the way down at the system level to be extremely helpful. We all encounter systems that are ill-documented, or complete black boxes, but peering at them with tools like `strace` / `jstack` (when a service is doing something itself with data) and `tcpdump` (when a service is asking another service to do something) opens up all sorts of possibilities.

Yes, distributed tracing tools do a much better job of this, but it's not always a given that a service will be instrumented. The generic tools (almost) always work.

warrenm1 reply#
It always amazes me the number of people - especially programmers/developers - who absolutely can NOT read a stacktrace of any kind
ozim1 reply#
Especially devs who have years of experience are surprising me when it turns out when I take over that error was abvious and right there in the exception with stack trace.
warrenm#
Sometimes it's the problem of not being able to see what's there because you already [mentally] eliminated it

But I agree - SO many times the error's hanging out right there in the stack trace, often to within a few characters or lines of the "real" error in the source!

Load more comments