Codegolfing
Codegolfing is an interesting sport: You try to write a program in the fewest characters necessary. Do you want to ship this code to production somewhere? Probably not, but just by trying this exercise you will learn a lot about your favorite programming language. You will also be surprised by how much you can do in just a few lines of code while the constraints will stimulate your productivity. Ruby is surprisingly good for golfing due to its Perl heritage.
In this talk I will tell you a bit more about code golfing and then dive into some code I have golfed. I will show you some tricks I learned and how the desire to shave off a few more characters every time leads to new features in your tiny program that you thought would not fit in such a tiny program.
- Date
- 2015-10-08
- Time
- 19:30 - 22:30
- Conference / Event
- Ruby Sauna
- Venue
- Sauna2 Kamppi, Leppäsuonkatu 11, Helsinki
Swipe for more
Scroll or use your arrow keys for more
Scroll for more
Use your arrow keys for more