Summary

In this chapter, we took a look at web development. We talked about important concepts, such as the DRY philosophy and the concept of a framework as a tool that provides us with many things we need in order to write code to serve requests. We also talked about the MTV pattern, and how nicely these three layers play together to realize a request-response path.

Then, we briefly introduced regular expressions, which is a subject of paramount importance, and it's the layer that provides the tools for URL routing.

There are many different frameworks out there, and Django is definitely one of the best and most widely used, so it's worth exploring, especially its source code, which is well written.

There are other very interesting and important frameworks too, such as Flask. They provide fewer features but might be faster, both in execution time and to set up. One that is extremely fast is the Falcon project, whose benchmarks are outstanding.

It's important to get a solid understanding of how the request-response mechanism works, and how the web in general works, so that eventually it won't matter too much which framework you have to use. You will be able to pick it up quickly because it will only be a matter of getting familiar with a way of doing something you already know a lot about.

Explore at least three frameworks and try to come up with different use cases to decide which one of them could be the ideal choice. When you are able to make that choice, you will know you have a good enough understanding of them.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset