Session
Let's make a sandwich: how to use abstractions to make your code readable
Writing code that a computer can understand is relatively easy. Writing code that is easy to read, understand, maintain and use for a human... is easier said than done. How much time have you wasted this week, this month, this year, squinting at a screen, trying your darndest to understand a particularly gnarly piece of code? A piece of code that very well might have been written by you, just a short time ago?
Meet Timmy. Timmy is a bot. Timmy is also a chef. In this talk, we'll try to get Timmy to make us a sandwich. We'll start with some low level instructions, written in an imperative style, which many will find hard to read and reason about. Through refactoring, we will progressively introduce layers of abstractions to end up with code that should be easier to read, understand and deal with. And hopefully, a sandwich.
Some of the things you might learn in this talk:
- How to write short functions, that do one thing.
- How to keep one level of abstraction per function.
- How to apply the Command Query Separation principle.
- How to avoid side effect proliferation in your programs.
- And much more.
![](https://sessionize.com/image/fe4a-400o400o2-RXkc1rtNPQCoTuEuB22WVg.jpg)
Philippe Vaillancourt
Senior Consultant at NimblePros
Montréal, Canada
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top