python

Back Open Paginator
19.01.2026 09:32
habr (@habr@zhub.link)

Код, за который стыдно: 5 ошибок, которые нельзя допускать в Python

Python прощает многое: здесь нет строгой типизации, компилятора и ручного управления памятью. Код пишется легко, запускается с первого раза и проходит Code Review. А потом на продакшене случается страшное: данные пользователей перемешиваются, сервер «замирает» под нагрузкой или биллинг списывает деньги не в тот день.

habr.com/ru/articles/986496/

#python #python3 #python_для_начинающих #python_class #backend #ошибки_программистов #jib




Show Original Post


19.01.2026 09:28
pwarren (@pwarren@mastodon.thewarrens.name)

Got my pyFroniusReg library in PyPi finally!

pypi.org/project/pyFroniusReg/

#python #modbus #fronius




Show Original Post


19.01.2026 09:20
gurutech (@gurutech@mastodon.uno)

TroveRAI è un piccolo tool in #python per cercare all'interno della programmazione dei canali RAI. Scritto #justforfun a quattro mani con #claudecode github.com/gianluca-mascolo/tr




Show Original Post


19.01.2026 09:01
gnulinux (@gnulinux@social.anoxinon.de)

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

gnulinux.ch/python-schneller-a




Show Original Post


19.01.2026 06:50
Python4DataScience (@Python4DataScience@mastodon.social)

The section on performance measurements and finding bottlenecks has been significantly expanded to include cProfile/profiling.tracing, tprof, and profiling.sampling/Tachyon: python4data.science/en/latest/




Show Original Post


19.01.2026 06:18
GripNews (@GripNews@mastodon.social)

🌗 純程式碼代理人:當程式碼執行成為唯一所需的工具
➤ 跳脫工具整合的迷思,回歸圖靈完備的開發本質
rijnard.com/blog/the-code-only
在現今 AI 代理人(Agent)開發日益複雜的趨勢下,作者 Rijnard van Tonder 提出了一個反直覺的簡化方案:拋棄所有繁雜的工具(如 `ls`、`grep`、`bash`),只給予代理人「執行程式碼」這唯一一項工具。這項策略的核心在於將不確定的語言模型輸出,轉化為具備確定語義且可重複驗證的「程式碼證據」(Code Witness)。當代理人被迫必須透過撰寫並執行 Python 或 TypeScript 來解決問題時,開發者能獲得更高的透明度與可靠性,徹底解決傳統代理人在處理大量檔案時容易產生的幻覺或偷懶問題。
+ 這套方法論非常大膽。對於工程師來說,閱讀 AI 產生的程式碼確實比去猜測它為何調用某個 API 來的直觀且可靠。
+ 雖然簡化了工具鏈,但這對模型本身的程式撰寫能力要求極高,且在處理非計算型任務
#




Show Original Post


19.01.2026 06:12
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

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

dev.to/om_shree_0709/beginner-




Show Original Post


19.01.2026 05:12
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

🚀 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




Show Original Post


19.01.2026 04:13
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

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 #




Show Original Post


19.01.2026 03:15
allwelikeworms (@allwelikeworms@mastodon.social)


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.




Show Original Post


19.01.2026 02:38
ubuntu_touch (@ubuntu_touch@mstdn.social)

Convertir una curva polinómica en N segmentos

#Numpy #python #Matplotlib
#SoftwareLibre #Flisol
Software Libre





Show Original Post


19.01.2026 02:26
chris_spackman (@chris_spackman@twit.social)

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!

#education #k12 #EdTech




Show Original Post


1 ...628 629 630 631 632 633 634 635 636 637 638 ...1584
UP