Are you part of the team?
Proposal to clarify what it is to be part of Python team
https://codeberg.org/guix/guix/pulls/6120
Infostealers without borders: macOS, Python stealers, and platform abuse - https://www.redpacketsecurity.com/infostealers-without-borders-macos-python-stealers-and-platform-abuse/
#threatintel
#macOS
#Infostealer
#Python
#Cross-platform
#Credential-theft
Cerca di qui cerca di là, ho trovato due libri che trovo validissimi per chi, come me, mai ha studiato programmazione ma vorrebbe approcciarsi ad essa, con Python, in età non proprio da studente.
Il mio approccio non è da "professionista", ma da curioso, appassionato di PC ecc.
Siccome per imparare a programmare gli algoritmi sono una nozione molto importante :
1) Grokking Algorithms
di Adithya Y. Bhargava
Gli riesce il piccolo miracolo di rendere la comprensione delle basi sugli algoritmi persino divertente. Sembra un libro per bambini, ma è fatto molto bene e offre un primo approccio concreto e persino divertente.
Poi passiamo a Python :
2) Python for Kids
di Christiam Morrison
Questo è proprio per ragazzini MA ha un pregio: nonostante tratti molti degli argomenti presenti in manuali più "solidi" e seri, lo fa con una certa rapidità, sorvolando molte complessità e dettagli (che ovviamente sono utili) ma cercando di portarti velocemente al punto in cui capisci qualcosa di come funziona Python.
BONUS, uniamo i due argomenti di cui sopra in un manuale solo:
3) Python Programming - An Intro to Computer Science
di John Zelle
Scritto da un prof di college che voleva insegnare computer science a dei ragazzini evitando di incentrarsi sul clasico C++, e scegliendo Python perchè meno ostico. Unisce Computer Science e Python, spiega in modo semplice senza dar nulla per scontato, come appunto si fa con ragazzi al college. Ottimo anche lui
#python #programmazione #imparare
Optional Chaining vs Try-Except: Null Safety Battle
JavaScript's ?. operator vs Python's try-except. Which language handles null/undefined more elegantly? Mind = blown!
#javascript #python #javascriptvspython #optionalchaining #nullsafety #errorhandling #programmingcomparison #codecomparison #javascripttricks #pythontricks #syntaxcomparison #viralcoding
https://www.youtube.com/watch?v=75DG9QlcvFM
LIFO, 3D и Динамический Шампур: как упаковать 6000 объектов в фуру за 12 секунд
В статье представлен подробный разбор разработки высокопроизводительного 3D-движка для оптимизации загрузки транспортных средств. Мы прошли путь от простого полочного алгоритма с КПД 58% до комплексной системы, обеспечивающей плотность упаковки до 90%. Автор делится уникальным опытом решения критических проблем: от устранения коллизий и соблюдения границ трюма до внедрения динамической балансировки веса и строгой очередности выгрузки по городам (LIFO). Особое внимание уделено оптимизации алгоритма Subset Sum, позволившего достичь скорости обработки в 14 000 объектов в секунду, и верификации логики через систему из 12 Unit-тестов. Внутри — чистый код на Python, математические выкладки и эффектная визуализация процесса упаковки
https://habr.com/ru/articles/992564/
#алгоритмы #программирование #математика #python #логистика #lifo #оптимизация #bin_packing #subset_sum_problem #динамическое_программирование
Property Decorators vs Getters - Setters: Accessor BATTLE!
Python's @property vs JavaScript's get/set - which property syntax is cleaner? EPIC!
#python #javascript #pythonvsjs #propertydecorator #getterssetters #accessors #computedproperties #viralcoding #oop #programmingpatterns #syntaxcomparison #mindblown
https://www.youtube.com/watch?v=jNo4mdvwG_I
"How to Install Python on Ubuntu 24.04"
"Covers Python 3.13, 3.14, and virtual environments. This guide explains how to install Python on Ubuntu 24.04 using the deadsnakes PPA or by building from source."
https://linuxize.com/post/how-to-install-python-on-ubuntu-24-04/
How to make minimalist city maps in seconds using a free #Python script
https://www.howtogeek.com/dont-buy-fancy-wall-art-city-maps-make-your-own-with-this-free-script/
sys.settrace: как устроены дебаггеры, coverage и profilers в Python
Когда запускаешь pytest --cov код выполняется как обычно, но в конце появляется отчёт о покрытии. Как pytest узнаёт, какие строки выполнились? Ответ в sys.settrace , это низкоуровневый хук, который позволяет перехватывать каждый шаг интерпретатора. На этом механизме построены coverage.py, pdb, PyCharm debugger, hunters, и десятки других инструментов. Разберём, как это работает изнутри и почему трассировка устроена именно так.
https://habr.com/ru/companies/otus/articles/988880/
#python #трассировка #интерпретатор_CPython #байткод #отладчик #покрытие_кода #профилирование
Hello #Fediverse
I'm building pokedev.ch, a tool designed to help developers and architects navigate tech stacks and analyze tool characteristics.
The project is in its structural consolidation phase, and I’ve reached the limits of my current expertise in ontology and data schemas. I need your help to make it a professional-grade tool.
The Current State:
Cards & Raw Data: The foundation of the project. I'm still refining the ontology to ensure data consistency.
The Builder: A UI to compose stacks, currently under heavy development.
The Oracle: A logic engine (using miniKanren) to analyze relationships between cards and provide insights.
I'm looking for advice from:
- Software Architects: To review my schemas and recommendation logic.
- Data Engineers: To help refine the technology ontology.
- Specialists in languages like #Ada, #Rust, #C, or #Python to validate our tech cards.
If you have a few minutes to check https://www.pokedev.ch and give me some feedback on the structure, it would be invaluable!
#SoftwareArchitecture #BuildInPublic #DevTools #SystemDesign #OpenSource #PokeDev
@Sabinchen_1402 Nun, @libreoffice erfüllt die Aufgaben ganz gut, und @nextcloud + @CollaboraOffice machen #Office365 richtig Dampf unterm Arsch!
Careful when using Python's `assert` statement: Normally you can use parentheses to wrap long lines in Python without using backslashes. For `assert` it doesn't work:
assert(some_condition,
"Some description")
This never fails, as Python's `assert` seens an `assert statement with a tuple as condition. This really has to be written like this:
assert some_condition, \
"Some description"
I just fell into that trap for you.