سرویسهای ابری، VPNها، بازیهای آنلاین و ارتباطات بلادرنگ هم از این وضعیت متاثر شدهاند. با حذف IPv6، مسیرهای ارتباطی شلوغتر شده و کیفیت بسیاری از سرویسهای حساس به تاخیر کاهش پیدا کرده است.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5
▫️قضاوت دقیقتر و خطای کمتر تو تحلیل مسائل
▫️حل پیچیدهترین مسائل در کمترین زمان
▫️صداقت بیشتر در جواب و دربارهی تواناییها
▫️کار طولانیمدت مستقل
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9
🤖 10 پرامپت Chatgpt که هر برنامهنویس پایتونی باید بلد باشه
You are a senior Python developer.
Analyze the following code, identify all bugs, explain why they happen, and provide the corrected version with best practices.
[Paste your code]Optimize this Python code for better readability, performance, and maintainability.
Explain every improvement you make.
[Paste your code]Explain this Python code line by line as if I'm a beginner.
Include simple examples where needed.
[Paste your code]
Write comprehensive pytest unit tests for this Python code.
Include edge cases and explain each test.
[Paste your code]
Refactor this Python code following PEP 8, SOLID principles, and clean code practices.
[Paste your code]
Analyze this Python code and identify potential performance bottlenecks.
Suggest faster alternatives with explanations.
[Paste your code]Generate professional docstrings and documentation for this Python code.
Follow Google style.
[Paste your code]
I'm learning Python.
Based on my current level, suggest 5 portfolio projects.
For each project explain:
- Difficulty
- Skills learned
- Estimated completion timeExplain this Python error in simple language.
Tell me:
- Why it happened
- How to fix it
- How to avoid it in the future
Error:
[Paste Error]Act as a senior Python mentor.
Review my code honestly.
Point out beginner mistakes, code smells, and suggest improvements as if you were reviewing a real pull request.
[Paste your code]
From now on, never give me the final solution immediately.
Instead:
1. Give me hints.
2. Ask guiding questions.
3. Let me think.
4. Only reveal the answer if I ask for it.
Teach me like a senior Python mentor, not like a code generator.Please open Telegram to view this post
VIEW IN TELEGRAM
❤21
1.
2.
3.
4.
5.
6.
7.
8.
9.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤16 2
دوستانی که پیگیر ثبت نام بودید
ثبت نام جدید دوره های تارس فردا در این کانال انجام میشه:
https://t.me/PythonJavad
ثبت نام جدید دوره های تارس فردا در این کانال انجام میشه:
https://t.me/PythonJavad
❤12🔥2
Media is too big
VIEW IN TELEGRAM
حدودا 500 تا 1000 دلار هزینه برداشته
Please open Telegram to view this post
VIEW IN TELEGRAM
👨💻10🔥2
If you are not confident about any part of your answer, do not guess.
Instead, explicitly say what you are uncertain about. If you need more information, ask a clarifying question rather than making something up.کارش چیه؟ مدل رو تشویق میکنه وقتی مطمئن نیست، بهجای حدس زدن یا ساختن اطلاعات، عدم قطعیتش رو اعلام کنه و در صورت نیاز سؤال بپرسه.
Never invent APIs, functions, libraries, classes, packages, documentation, or configuration options.
If you are not sure that something exists, clearly say so instead of making it up.کارش چیه؟ احتمال ساختن API، تابع، کلاس، کتابخانه، پکیج یا مستندات خیالی رو کاهش میده؛ یکی از رایجترین انواع Hallucination در برنامهنویسی.
For every factual claim, indicate your confidence level (High, Medium, or Low).
If your confidence is Low, explicitly say why and suggest how I can verify the information using reliable sources.
کارش چیه؟ مدل رو تشویق میکنه میزان اطمینانش رو برای ادعاهای واقعی مشخص کنه و اگر اطمینانش پایین بود، دلیلش رو بگه و راهی برای بررسی با منابع معتبر پیشنهاد بده.
این سه پرامپت واقعا جزو بهترین پرامپتهای عمومی برای کاهش احتمال Hallucination هستن، هرچند هیچ پرامپتی نمیتونه این خطا رو کاملاً از بین ببره.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤12
یکی از معروفترین تلههای Python:
def add_user(name, users=[]):
users.append(name)
return users
print(add_user("Ali"))
print(add_user("Sara"))
خیلیها انتظار دارن:
["Ali"]
["Sara"]
ولی خروجی:
["Ali"]
["Ali", "Sara"]
چون مقدار پیشفرض تابع
([]) فقط یک بار هنگام تعریف تابع ساخته میشه، نه هر بار که تابع اجرا میشه.راه درست:
def add_user(name, users=None):
if users is None:
users = []
users.append(name)
return users
این کد رو ببین:
import copy
data = [[1, 2], [3, 4]]
new_data = copy.copy(data)
new_data[0].append(5)
print(data)
ممکنه فکر کنی فقط
new_data تغییر کرده...ولی خروجی:
[[1, 2, 5], [3, 4]]
چرا؟ چون
copy.copy()
فقط لایه اول رو کپی میکنه.
برای آبجکتهای تو در تو باید از:
copy.deepcopy(data)
استفاده کنی.
یکی از باگهای عجیب Python:
functions = []
for i in range(3):
functions.append(lambda: i)
for func in functions:
print(func())
خروجی:
2
2
2
نه:
0
1
2
چون Lambda مقدار i رو همون لحظه ذخیره نمیکنه؛ زمان اجرا مقدار نهایی متغیر رو میخونه.
راهحل:
functions.append(lambda i=i: i)
فرق برنامهنویس حرفهای فقط این نیست که کد بیشتری بنویسه؛
اینه که بدونه کجاها ممکنه کدش رفتار غیرمنتظره داشته باشه.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10👍2
github.com/pazguille/offline-first
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥5👍3
مخصوصاً اگه با سرور، VPS، Docker و دیپلوی کردن پروژهها سروکار داشته باشی.
این ابزار خودش رو بهعنوان جایگزینی برای سرویسهایی مثل Vercel، Heroku، Netlify و Railway معرفی میکنه. یعنی بهجای اینکه پروژهت رو به این سرویسها بسپری، میتونی یه VPS برای خودت داشته باشی، Coolify رو روش نصب کنی و بعد همهچیز رو از طریق یه پنل گرافیکی مدیریت کنی.
نکته جالب اینه که Coolify از اتصال به سرویسهایی مثل GitHub و GitLab، دیپلوی خودکار، گواهی رایگان SSL و بکاپگیری هم پشتیبانی میکنه.
https://coolify.io/self-hosted
https://youtube.com/watch?v=6IZF_VOlOJM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5🔥3👍1
از فرم و داشبورد گرفته تا جدول، تقویم و کانبان؛ نمونه رو میبینید و کد هر کامپوننتی که خواستید رو مستقیم داخل پروژهتون کپی میکنید.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6👍1🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
همچین داکباری خواستید درست کنید (شبیه داکبار آپدیت جدید تلگرام) از این استفاده کنید :
🌐 http://jelly-docs.felipe.software
💻 TΔRS | تارس
Please open Telegram to view this post
VIEW IN TELEGRAM
❤6👍1🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
یه توسعهدهنده به اسم slvDev تونسته یک مدل زبانی با ۲۸.۹ میلیون پارامتر رو روی چیپ ESP32-S3 اجرا کنه.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍1🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
این ابزار کامپوننتهای مدرنی شبیه React داره، اما رابط کاربری، State و رفتار برنامه رو با خود Python مینویسید؛ نه HTML، نه CSS و نه JavaScript.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7 3🔥1
جذابترین بخشش اینه که میتونه رنگها و فونتهای سایتتون رو استخراج کنه و ظاهر دیاگرامها رو دقیقاً با هویت بصری برندتون هماهنگ کنه؛ طوری که انگار یه طراح حرفهای ساختهشون.
https://cathrynlavery.github.io/diagram-design
https://github.com/cathrynlavery/diagram-design
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍1🔥1
Media is too big
VIEW IN TELEGRAM
https://anatomyatelier.vercel.app
https://github.com/thebuggeddev/anatomy
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10👍2🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
https://upscayl.org/download
Please open Telegram to view this post
VIEW IN TELEGRAM
❤7👍1👨💻1
pip install cactus-needlehttps://github.com/cactus-compute/needle
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥5❤2 2
pip install opendataloader-pdfPlease open Telegram to view this post
VIEW IN TELEGRAM
👍14❤2