- Working knowledge of Python or completing Python for Professional Developers
- Some familiarity with HTTP APIs and web frameworks
- macOS or Linux. On Windows, use WSL2.
- Docker Desktop
- Visual Studio Code*
- uv
- git (no GitHub account needed)
https://frontendmasters.com/workshops/professional-python/
| // ============================================ | |
| // 1. PAYMENT METHOD STRATEGIES (Strategy Pattern) | |
| // ============================================ | |
| // Payment Strategy Interface | |
| interface PaymentStrategy { | |
| void processPayment(double amount, String transactionType); | |
| } | |
| // Concrete Payment Strategies |
Setup instructions will be discussed during the workshop, but you are encrouged to do these steps in advanced.
| Mutation: { | |
| editIssue: async (_, { input }, ctx) => { | |
| if (!ctx.user) | |
| throw new GraphQLError('UNAUTHORIZED', { extensions: { code: 401 } }) | |
| const { id, ...update } = input | |
| const result = await db | |
| .update(issues) | |
| .set(update ?? {}) |
| /* Change the box-sizing so we don't have issues calculating the width */ | |
| * { | |
| box-sizing: inherit; | |
| } | |
| html { | |
| box-sizing: border-box; | |
| font-size: 16px; | |
| } |