O'Reilly logo

Scalable Cloud Ops with Fugue by Josha Stella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing Less Code with Functions

Most data-declaration and configuration languages allow for a way to write less code, to DRY up your configuration. (That is, don’t repeat yourself. Refer to The Pragmatic Programmer [HT00].) Ludwig also does this, in the form of functions. Ludwig is, in fact, built on top of a functional language known as lambda calculus. Don’t let that term scare you. Defining functions in Ludwig is straightforward.

Defining Functions

As you likely know from your experiences with Python, JavaScript, and most programming languages, functions are a useful tool for encapsulating instructions for reuse across a program. Write a function once and use it as many times and in as many places as you’d like. Functions are the quintessential ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required