Код, за который стыдно: 5 ошибок, которые нельзя допускать в Python
Python прощает многое: здесь нет строгой типизации, компилятора и ручного управления памятью. Код пишется легко, запускается с первого раза и проходит Code Review. А потом на продакшене случается страшное: данные пользователей перемешиваются, сервер «замирает» под нагрузкой или биллинг списывает деньги не в тот день.
https://habr.com/ru/articles/986496/
#python #python3 #python_для_начинающих #python_class #backend #ошибки_программистов #jib
Got my pyFroniusReg library in PyPi finally!
https://pypi.org/project/pyFroniusReg/
TroveRAI è un piccolo tool in #python per cercare all'interno della programmazione dei canali RAI. Scritto #justforfun a quattro mani con #claudecode https://github.com/gianluca-mascolo/troverai
Python: Schneller als man denkt - Das Beispiel
Ich stelle das Beispiel vor, bei dem die Kernel Density Estimation als Referenz dient und im Artikel ausschließlich die triviale Implementierung betrachtet wird.
#Python #Mathematik #HPC #Linux
https://gnulinux.ch/python-schneller-als-man-denkt-das-beispiel
The section on performance measurements and finding bottlenecks has been significantly expanded to include cProfile/profiling.tracing, tprof, and profiling.sampling/Tachyon: https://www.python4data.science/en/latest/performance/index.html#performance-measurements
#Python #Performance
🌗 純程式碼代理人:當程式碼執行成為唯一所需的工具
➤ 跳脫工具整合的迷思,回歸圖靈完備的開發本質
✤ https://rijnard.com/blog/the-code-only-agent
在現今 AI 代理人(Agent)開發日益複雜的趨勢下,作者 Rijnard van Tonder 提出了一個反直覺的簡化方案:拋棄所有繁雜的工具(如 `ls`、`grep`、`bash`),只給予代理人「執行程式碼」這唯一一項工具。這項策略的核心在於將不確定的語言模型輸出,轉化為具備確定語義且可重複驗證的「程式碼證據」(Code Witness)。當代理人被迫必須透過撰寫並執行 Python 或 TypeScript 來解決問題時,開發者能獲得更高的透明度與可靠性,徹底解決傳統代理人在處理大量檔案時容易產生的幻覺或偷懶問題。
+ 這套方法論非常大膽。對於工程師來說,閱讀 AI 產生的程式碼確實比去猜測它為何調用某個 API 來的直觀且可靠。
+ 雖然簡化了工具鏈,但這對模型本身的程式撰寫能力要求極高,且在處理非計算型任務
##人工智慧 #AI代理人 #軟體工程 #Python #LLM應用
Bài toán LeetCode 1292: Tìm độ dài cạnh lớn nhất của hình vuông con có tổng phần tử ≤ threshold.
Ứng dụng:
1. **Mảng tổng tiền tố 2D** → tính tổng hình vuông trong O(1)
2. **Tìm kiếm nhị phân** → xác định kích thước tối đa hiệu quả
Ví dụ:
- Matrix [[1,1,1],[1,1,1],[1,1,1]], threshold=4 → kết quả: 2
#LeetCode #Algorithm #Python #JavaScript #Cpp
#ThuatToan #LapTrinh #CauTrucDuLieu #TimKiemNhiPhan
https://dev.to/om_shree_0709/beginner-friendly-guide-maximum-side-length-of-a-square-l
🚀 Giới thiệu **Forge** - công cụ CLI giúp sinh dự án FastAPI theo nhu cầu!
Thay vì cấu hình thủ công các thành phần lặp đi lặp lại như:
✔️ Kết nối CSDL (PostgreSQL/MySQL/SQLite)
✔️ Xác thực JWT
✔️ Tích hợp Redis/Celery
✔️ Docker + Alembic + pytest
... **Forge** tự động tạo bộ khung dự án *modular* chỉ với:
```bash
pip install ningfastforge
forge init
```
Chọn tính năng cần thiết → Forge sinh cấu hình tương ứng!
#FastAPI #Python #DeveloperTools #CLI
#LậpTrình #CôngCụDev #Viết
Crafting hệ thống xác thực AI với Temporal.io: Kết hợp workflow đáng tin cậy với AI (Ollama) cho phát hiện gian lận và tự động kích hoạt MFA. Giải pháp hybrid giải quyết hạn chế sandbox qua fallback và cấu hình bảo mật. Tech stack: Temporal.io, FastAPI, PostgreSQL, Docker.
Bài học: Thiết kế hệ thống hybrid từ đầu cân bằng giữa Temporal và phương thức truyền thống cho authentication hiệu quả + AI mạnh mẽ.
#TemporalIO #AIAuthentication #FraudDetection #DevOps #Python
#AnToanThongTin #CongNghe #
#python
What Python asshole decided a requirements file should be called "lockfile". NPM does this too. I assume the "geniuses" at Python pulled the term from npm.
It's not like lockfile has ever been used in computing for ages before this to mean something completely different of course. noooooooo.
Convertir una curva polinómica en N segmentos
#Numpy #python #Matplotlib
#SoftwareLibre #Flisol
Software Libre
For some reason, the #programming class for high school students spends time on pascal, cobol, and fortran, as well as the more popular ones, but not #rust.
I learned pascal in h.s. in the 80s. Even then, I think cobol and fortran were ancient languages. Why spend any time on them, in h.s., today?
To be fair, they spend a lot of time on #python. On websites, on MS Windows boxes.
Time on #Linux or bash? Zero time.
Compile something locally? Heaven forbid!