Code With MEMO
200 subscribers
428 photos
14 videos
88 files
183 links
Join a community of passionate learners and builders! We dive deep into:
๐Ÿ”น Machine Learning (Algorithms, Models, MLOps)
๐Ÿ”น Coding Tips & Best Practices (Python, AI/ML, Automation)
๐Ÿ”ธ collaborative problem solving (challenges ,Q&A....)
@codewithmemo
Download Telegram
Back to work ๐Ÿ’ช๐Ÿ”ฅ
I hope this year will be a special one. ๐Ÿ™
๐Ÿ’ฏ4
แˆ˜แˆแŠซแˆ แˆฐแŠ•แ‰ แ‰ต Fam
really?๐Ÿ˜Œ
๐Ÿ˜ข1
Forwarded from Dev Notes
You're killing your brain between prompts.

With agentic coding your brain already does less. You're not writing the code, you're reviewing structure and making architecture calls, and even those you brainstorm with the agent. An MIT EEG study confirmed it: the more the AI does, the less your brain engages.


And what do we fill that downtime with? Reels and tiktok. Scrolling short-form videos in that gap is becoming the normal thing to do. We barely notice it, but it slowly hurts our performance and hides what we could do with that time.

Two things fixed this for me.

1. The weekends-only rule. No insta, no yt shorts on weekdays, apps uninstalled. Any long-form video is fine, entertainment, podcasts, whatever. Preferably content that doesn't ask much of your focus, because that spends your focus too.

Everything comes back on weekends. You can't quit shorts completely (I couldn't), it's a source of info and entertainment as well. So don't quit, schedule.

3rd month on this rule and my focus is the best it's been.

2. Parallel projects. Takes some adjusting at first, but run multiple projects at once. I do 4-5 sometimes. While one agent works you switch to the next project, so there's no dead time to get pulled into a feed. I'll share the tools that made parallel sessions work for me (orca, herdr) in another post. But you can add claude notifications to whatever setup you have today, wrote about that here.

We can take on more work than we think. Instead of scrolling between prompts, say yes to that additional opportunity and fill that time with real work.

Follow for more: DevNotes
How do you explain this๐Ÿค”
๐Ÿคฃ1
Good Morning ๐ŸŒž, Fam. Choose your direction before you go!
แŠฅแŠ•แŠณแŠ• แˆˆแ‹ฐแˆ˜แˆซแŠ“ แˆˆแˆ˜แˆตแ‰€แˆ แ‰ แ‹“แˆ แ‰ แˆฐแˆ‹แˆ แŠ แ‹ฐแˆจแˆณแ‰ฝแˆ
แˆ˜แˆแŠซแˆ แ‰ แ‹“แˆ แ‹ญแˆแŠ•แˆ‹แ‰ฝแˆ ๐Ÿฅฐ๐Ÿฅฐ
โค3
Python allows you to create enumerations that are also regular strings!

Previously, when working with APIs, JSON, and configurations, it was often necessary to manually extract the value from an Enum.

For example:
class Status(Enum):
ACTIVE = "active"

When serializing, you would get an enumeration object:
Status.ACTIVE

rather than a regular string:
"active"

In Python 3.11, StrEnum was introduced to solve this problem.
from enum import StrEnum

class Status(StrEnum):
ACTIVE = "active"
BLOCKED = "blocked"

Now, the value can be used wherever a string is expected:
json.dumps({"status": Status.ACTIVE})

The result:
{"status": "active"}

At the same time, the advantages of enumerations are preserved:
Status.ACTIVE
Status.BLOCKED

You cannot accidentally pass an incorrect value:
Status("unknown")

will result in an error.

๐Ÿ”ฅ StrEnum allows you to combine the strict typing of enumerations with the convenience of regular strings, without manual conversion when working with APIs, JSON, and configurations
well well well๐Ÿ˜
๐Ÿคฃ4