Seven More Languages in Seven Weeks
eBook - ePub

Seven More Languages in Seven Weeks

Languages That Are Shaping the Future

  1. 318 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Seven More Languages in Seven Weeks

Languages That Are Shaping the Future

About this book

Learn from the award-winning programming series that inspired the Elixir language. Hear how other programmers across broadly different communities solve problems important enough to compel language development. Expand your perspective, and learn to solve multicore and distribution problems.

In each language, you'll solve a non-trivial problem, using the techniques that make that language special. Write a fully functional game in Elm, without a single callback, that compiles to JavaScript so you can deploy it in any browser. Write a logic program in Clojure using a programming model, MiniKanren, that is as powerful as Prolog but much better at interacting with the outside world. Build a distributed program in Elixir with Lisp-style macros, rich Ruby-like syntax, and the richness of the Erlang virtual machine. Build your own object layer in Lua, a statistical program in Julia, a proof in code with Idris, and a quiz game in Factor.

When you're done, you'll have written programs in five different programming paradigms that were written on three different continents. You'll have explored four languages on the leading edge, invented in the past five years, and three more radically different languages, each with something significant to teach you.

Seven Lessons from Seven More Languages in Seven Weeks

With each passing day, it is becoming more likely that new programmers will use functional programming, an entirely new programming paradigm. Each of the new languages has something unique to teach the next generation of programmers.

1. To learn functional programming, learn functional composition first.

Programmers who want to improve themselves are learning functional programming in increasing numbers. Factor is a great language for learning about the composition of functions. The concatenative language forces new users to think through how functions will work together.

2. If you want to learn JavaScript, learn how prototypes work first in a simpler language.

New JavaScript programmers are often better off learning a language like Lua first, which has the same overall model but fewer distracting concepts than JavaScript.

3. You don't need callbacks to build a beautiful user interface.

Reactive programming is a new style of user interface development that helps build highly interactive and reliable applications. The Elm programming language is a language with reactive concepts baked in, from the inside out, and it compiles to JavaScript.

4. To build better cloud applications, your applications need to know how to fail.

Applications are becoming more distributed than ever before. Elixir is among the most promising young languages for building cloud applications that scale well and handle failure in a sensible, reliable way. Elixir combines the natural syntax of Ruby with Clojure-style macros, all on the Erlang virtual machine for distribution and failover.

5. Technical computing will hit the limitations of multicore architectures before most other programming branches will.

Scientific computing is increasingly hitting a wall because existing languages don't take full advantage of multicore architecture. The Julia language is growing quickly, allowing familiar programming approaches but enabling much more scalable and powerful mathematical models without dropping into C++.

6. Use logic programming when you need to build applications that "think."

You don't need to know Mercury or Prolog to write logic programs. If you find yourself needing to occasionally solve logic problems, use a library instead. MiniKanren is one such library that is available in languages like Haskell and Clojure.

7. You don't need to use Haskell, Agda or Idris to take advantage of advanced type theory in your everyday job.

Sometimes, it's hard to see the forest for the trees. Languages like Idris are excellent for reasoning about typing. You can build a type model in Idris and adapt it to a language like C++.

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2014
eBook ISBN
9781680504743

Table of contents

  1. Seven More Languages in Seven Weeks

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Seven More Languages in Seven Weeks by Bruce Tate,Fred Daoud,Jack Moffitt,Erin Dees (formerly Ian Dees) in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over 1.5 million books available in our catalogue for you to explore.