CW45 Weekly Digest

Table of Contents

Hard Skills

Continue with working on restShuffler. It seems that I want to add there workShuffler as well. And I’ve stucked with a problem. Or two. The first one - I don’t know python OOP. And the second one - I don’t know how to separate by business logic and data. Yes.. I know about MVC, but it seems this pattern is not so suitable for my needs, so I started to search better solution.

And here what I’ve found..

Database Patterns

In short. My task was to separate my app logic and database’s requests, because I need to create more tables with similar queries and in future change SQLite with Postgres. So I urgently need to change my app design. The problem was - I didn’t know the well-known methods.

This week was mainly about searching the materials. I’ve found the book - Patterns of Enterprise Application Architecture, which gave me an idea about ORM systems. And a good example of such system is SQLAlchemy. It’s built on Enterprise Application Architecture ideas and next week I’m planning to research more and probably I’ll try to create a separate article about this.

Currently I’m focusing on two problems:

  • how to open and close database (without passing it as a paramether everywhere)
  • how to separate the code (so I don’t need to repeat code for each request).

I’m planning to create a tutorial with Python to try different enterprise patterns.

Resources:

First point - it seems most of the patterns are in the Martin Fowler’s book: “Patterns of Enterprise Application Architecture

So I highly recomend to start with this. But… from my point of view there’s too much text but too little code.

Here I’ve found UML Diagrams based on this book. And code examples

And here PHP source code for database patterns. But the description goes in russian.

Also I’ve read SQLAlchemy code and it’s architecture decisions.

And the best resource, which I’ve considered to dig into is this tutorial.

Python OOP

Right now I’m reading Python 3 Object-oriented Programming. And Fluent Python.

I’ll add notes from it next week.

VS code and UML

Also I want to leave a not about PlantUml. This tool is really nice because I can create and read UML diagrams directly in my VSCode. And syntax is so simple.

Python Patterns

Last but not least. Here’s samples with source code of Python Patterns from Gang of Four.

That’s it for technical stuff. Let’s move on the opposite stuff.

Soft skills

Right now I’m trying to create a stretching flow for me, because it’s really important thing for my weightlifting stuff.

Stretching routine

I’d like to use 1hr stretching routine combined from this 15 minutes flows

And during my free time I’m continue to work on my handstand V-Sit

Soft Skills

This video is ukrainian but let me list at least 5 habits to be charismatic person (Ukr)

1. Find the balance between expertise and warmth
- You can’t be trusted if you don’t have an expertise but you’re so warm
- You can’t be trusted if you have a lot of cold expertise

2. Share information about yourself
- Well, what if you don’t know what to share about yourself
- And here’s my hint - imagine that you’re a characted from the RPG game. What is your BIO? Probably I’m gonna create mine very soon. Interesting task btw

3. Ask people to help you
- People like to give an advice or help so they authomatically will like you

4. Be with “your” people and know yourself (or learn about yourself)

5. Talk about what you think (Be honest, your thoughts are your truth)
- Here’s also one hint. A lot of people whom I know have really bad thought. I was as well. But I started to notice them, and asking myself “why?”. This technique can help to think in more positive way.
- Second way - read books about cognitive-behavioral therapy.
- Third way - find a good therapist.

Cooking

I want to cook this cake

Other

How to teach tech: I hope some time I’ll give it a try with a mentee.

Currently reading Tomorrow and tomorrow and tomorrow

Watched this week Killers of the Flower Moon: not impressed, like a classical thriller, no more. 3/5

And remember be kind: all else is details.