Date: Sun, 03 Jul 2022 17:00:00 -0400
<div class="wp-block-jetpack-markdown"><h2>Summary</h2> <p>Building a fully functional web application has been growing in complexity along with the growing popularity of javascript UI frameworks such as React, Vue, Angular, etc. Users have grown to expect interactive experiences with dynamic page updates, which leads to duplicated business logic and complex API contracts between the server-side application and the Javascript front-end. To reduce the friction involved in writing and maintaining a full application Sam Willis created Tetra, a framework built on top of Django that embeds the Javascript logic into the Python context where it is used. In this episode he explains his design goals for the project, how it has helped him build applications more rapidly, and how you can start using it to build your own projects today.</p> <h2>Announcements</h2> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python’s role in data and science.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. And now you can launch a managed MySQL, Postgres, or Mongo database cluster in minutes to keep your critical data safe with automated backups and failover. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> and get a $100 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!</li> <li>So now your modern data stack is set up. How is everyone going to find the data they need, and understand it? Select Star is a data discovery platform that automatically analyzes & documents your data. For every table in Select Star, you can find out where the data originated, which dashboards are built on top of it, who’s using it in the company, and how they’re using it, all the way down to the SQL queries. Best of all, it’s simple to set up, and easy for both engineering and operations teams to use. With Select Star’s data catalog, a single source of truth for your data is built in minutes, even across thousands of datasets. Try it out for free and double the length of your free trial today at <a href="https://www.pythonpodcast.com/selectstar?utm_source=rss&utm_medium=rss">pythonpodcast.com/selectstar</a>. You’ll also get a swag package when you continue on a paid plan.</li> <li>Need to automate your Python code in the cloud? Want to avoid the hassle of setting up and maintaining infrastructure? Shipyard is the premier orchestration platform built to help you quickly launch, monitor, and share python workflows in a matter of minutes with 0 changes to your code. Shipyard provides powerful features like webhooks, error-handling, monitoring, automatic containerization, syncing with Github, and more. Plus, it comes with over 70 open-source, low-code templates to help you quickly build solutions with the tools you already use. Go to <a href="https://www.dataengineeringpodcast.com/shipyard?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">dataengineeringpodcast.com/shipyard</a> to get started automating with a free developer plan today!</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Sam Willis about Tetra, a full stack component framework for your Django applications</li> </ul> <h2>Interview</h2> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you describe what Tetra is and the story behind it?</li> <li>What are the problems that you are aiming to solve with this project? <ul> <li>What are some of the other ways that you have addressed those problems?</li> <li>What are the shortcomings that you encountered with those solutions?</li> </ul> </li> <li>What was missing in the existing landscape of full-stack application development patterns that prompted you to build a new meta-framework?</li> <li>What are some of the sources of inspiration (positive and negative) that you looked to while deciding on the component selection and implementation strategy?</li> <li>Can you describe how Tetra is implemented? <ul> <li>What are the core principles that you are relying on to drive your design of APIs and developer experience?</li> </ul> </li> <li>What is the process for building a full component in Tetra?</li> <li>What are some of the application design challenges that are introduced by Combining the javascript and Django logic and attributes? (e.g. reusing JS logic/CSS styles across components)</li> <li>A perennial challenge with combining the syntax across multiple languages in a single file is editor support. How are you thinking about that with Tetra’s implementation?</li> <li>What is your grand vision for Tetra and how are you working to make it sustainable?</li> <li>What are the most interesting, innovative, or unexpected ways that you have seen Tetra used?</li> <li>What are the most interesting, unexpected, or challenging lessons that you have learned while working on Tetra?</li> <li>When is Tetra the wrong choice?</li> <li>What do you have planned for the future of Tetra?</li> </ul> <h2>Keep In Touch</h2> <ul> <li><a href="https://mobile.twitter.com/samwillis?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@samwillis</a> on Twitter</li> <li><a href="http://samwillis.co.uk/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Website</a></li> <li><a href="https://www.linkedin.com/in/samwillis?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">LinkedIn</a></li> <li><a href="https://github.com/samwillis?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">samwillis</a> on GitHub</li> </ul> <h2>Picks</h2> <ul> <li>Tobias <ul> <li><a href="https://www.themachinelearningpodcast.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Machine Learning Podcast</a></li> </ul> </li> <li>Sam <ul> <li><a href="https://en.wikipedia.org/wiki/Slow_Horses?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Slow Horses</a> TV Show</li> </ul> </li> </ul> <h2>Closing Announcements</h2> <ul> <li>Thank you for listening! Don’t forget to check out our other shows. The <a href="https://www.dataengineeringpodcast.com?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Data Engineering Podcast</a> covers the latest on modern data management. The <a href="https://www.themachinelearningpodcast.com?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Machine Learning Podcast</a> helps you go from idea to production with machine learning.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the mailing list, and read the show notes.</li> <li>If you’ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a> and tell your friends and co-workers</li> </ul> <h2>Links</h2> <ul> <li><a href="https://www.tetraframework.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tetra Framework</a></li> <li><a href="https://www.djangoproject.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Django</a></li> <li><a href="https://www.php.net/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PHP</a></li> <li><a href="https://dotnet.microsoft.com/en-us/apps/aspnet?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">ASP</a></li> <li><a href="https://alpinejs.dev/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Alpine.js</a></li> <li><a href="https://htmx.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">HTMX</a></li> <li><a href="https://www.ruby-lang.org/en/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Ruby</a></li> <li><a href="https://www.ruby-lang.org/en/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Ruby on Rails</a></li> <li><a href="https://www.flutterbox.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Flutterbox</a></li> <li><a href="https://vuejs.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Vue.js</a></li> <li><a href="https://laravel-livewire.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Laravel Livewire</a></li> <li><a href="https://docs.python.org/3/reference/import.html#import-hooks?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Python Import Hooks</a></li> <li><a href="https://github.com/samwillis/python-inline-source?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">python-inline-source</a></li> <li><a href="https://tailwindcss.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Tailwind CSS</a></li> <li><a href="https://postcss.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">PostCSS</a></li> <li><a href="https://docs.python.org/3/library/pickle.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Pickle</a></li> <li><a href="https://github.com/fernet/spec/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Fernet</a></li> <li><a href="https://esbuild.github.io/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">esbuild</a></li> <li><a href="https://webpack.js.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Webpack</a></li> <li><a href="https://rich.readthedocs.io/en/stable/introduction.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rich</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Ftetra-full-stack-component-web-framework-episode-369%2F&action_name=Tetra%3A+A+Full+Stack+Web+Framework+That+Doesn%27t+Make+You+Write+Everything+Twice+-+Episode+369&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />