Code lent ? 5 astuces : éviter boucles inutiles, structures de données adaptées (set), cache (lru_cache), bibliothèques optimisées (numpy), parallélisation. Gains : 10x-1000x plus rapide. #BackEnd #Tech #Optimisation #Code #Performance ... https://www.linkedin.com/posts/gabriel-chandesris_backend-tech-optimisation-share-7458070022393925632-kU9y
#backend #tech #optimisation #code #performance | Gabriel C.

⚡ "Pourquoi votre code est lent ? (et comment le rendre 10x plus rapide avec ces 5 astuces)" Votre code met **10 secondes à s’exécuter** ? Voici **5 astuces** pour le **rendre 10x plus rapide**, basées sur des **retours d’expérience clients** : --- 🔹 **Astuce 1 : Évitez les boucles inutiles** - **Problème** : ```python # ❌ Mauvaise pratique : Boucle imbriquée (O(n²)) for i in range(n): for j in range(n): print(i, j) ``` - **Solution** : ```python # ✅ Bonne pratique : Utiliser des listes en compréhension (O(n)) [(i, j) for i in range(n) for j in range(n)] ``` - **Gain** : **100x plus rapide** pour n = 10 000. 🔹 **Astuce 2 : Utilisez des structures de données adaptées** - **Problème** : Chercher un élément dans une **liste** (O(n)). - **Solution** : Utiliser un **set** (O(1)) ou un **dictionnaire**. ```python # ❌ Liste (lent) if "element" in ma_liste: # O(n) pass # ✅ Set (rapide) mon_set = set(ma_liste) if "element" in mon_set: # O(1) pass ``` - **Gain** : **1000x plus rapide** pour une liste de 1M d’éléments. 🔹 **Astuce 3 : Cachez les résultats coûteux** - **Problème** : Recalculer la même chose **plusieurs fois**. - **Solution** : Utilisez **`functools.lru_cache`** (Python). ```python from functools import lru_cache @lru_cache(maxsize=128) # Cache les 128 derniers appels def fonction_lente(x): return x * x # Exemple simple ``` - **Gain** : **Évite des calculs redondants**. 🔹 **Astuce 4 : Utilisez des bibliothèques optimisées** - **Problème** : Réinventer la roue (ex : trier une liste manuellement). - **Solution** : Utilisez **`sorted()`** (Python) ou **`numpy`** pour les calculs numériques. ```python # ❌ Lent def trier(liste): return sorted(liste) # Utilisez la bibliothèque standard ! # ✅ Rapide (avec numpy pour les tableaux numériques) import numpy as np tableau = np.array([3, 1, 2]) np.sort(tableau) # 10x plus rapide pour les grands tableaux ``` - **Gain** : **10x plus rapide** pour les grands jeux de données. 🔹 **Astuce 5 : Parallelisez vos tâches** - **Problème** : Exécuter des tâches **séquentiellement**. - **Solution** : Utilisez **`multiprocessing`** (Python) ou **`concurrent.futures`**. ```python from multiprocessing import Pool def traitement(liste): return [x * 2 for x in liste] if __name__ == "__main__": with Pool(4) as p: # 4 processus en parallèle result = p.map(traitement, [liste1, liste2, liste3, liste4]) ``` - **Gain** : **4x plus rapide** sur un CPU 4 cœurs. --- 💬 **Et vous, quelle est votre astuce préférée pour optimiser du code ?** Partagez en commentaire ! #BackEnd #Tech #Optimisation #Code #Performance

LinkedIn
This is an article where a bunch of academics are having a #debate over whether #AI can rewrite #code while forgetting humans have been doing it for decades. 🚀 Apparently, nobody told them that their favorite debugger is just one Ctrl+Alt+Del away from fixing everything. 🤖 #InnovativeYetObvious
https://arxiv.org/abs/2605.03546 #Rewriting #Academic #Discussion #Tech #Humor #HackerNews #ngated
ProgramBench: Can Language Models Rebuild Programs From Scratch?

Turning ideas into full software projects from scratch has become a popular use case for language models. Agents are being deployed to seed, maintain, and grow codebases over extended periods with minimal human oversight. Such settings require models to make high-level software architecture decisions. However, existing benchmarks measure focused, limited tasks such as fixing a single bug or developing a single, specified feature. We therefore introduce ProgramBench to measure the ability of software engineering agents to develop software holisitically. In ProgramBench, given only a program and its documentation, agents must architect and implement a codebase that matches the reference executable's behavior. End-to-end behavioral tests are generated via agent-driven fuzzing, enabling evaluation without prescribing implementation structure. Our 200 tasks range from compact CLI tools to widely used software such as FFmpeg, SQLite, and the PHP interpreter. We evaluate 9 LMs and find that none fully resolve any task, with the best model passing 95\% of tests on only 3\% of tasks. Models favor monolithic, single-file implementations that diverge sharply from human-written code.

arXiv.org
Hartmut Schwab, the president of the Federal Chamber of Tax Advisors, is calling for a fundamental simplification of Germany's tax laws, even questioning severa... https://news.osna.fm/?p=44788 | #news #code #consultant #demands #eliminating
Tax Consultant President Demands Eliminating Perks and Simplifying Germany's Tax Code - Osna.FM

Expert insights on simplifying German tax law. Learn why tax consultants are calling for major changes to commuter allowances.

Osna.FM

`window.innerWidth` in JavaScript wastes resources, use CSS instead ! 🦈EN

`window.innerWidth` en JavaScript malgasta recursos, mejor usa CSS ! 🦈ES

#programming #coding #programación #code #webdevelopment #devs #softwaredevelopment #css #html

Anthropic 宣佈 session limit 加倍放送

Anthropic 發了新的 PR:「Higher usage limits for Claude and a compute deal with SpaceX」。 其中 session limit 加倍放送: First, we’re doubling Claude Code’s five-hour rate limits for Pro, Max, Team, and seat-based Enterprise plans.

Gea-Suan Lin's BLOG

“Staff at #WiseTech have been waiting almost three months to be told if they are among the 2,000 people the logistics software company is to cut due to advances in #AI, with #workers criticising the wait as stressful and “ridiculous”.

The comments come as its founder on Tuesday told #investors an #AIAgent could learn a human’s job in just 15 minutes, according to the #AustralianFinancialReview.

The Australian Stock Exchange-listed company announced in late February that it would #LayOff almost 30% of its #workforce across 40 countries, with 2,000 of the 7,000 jobs set to go over the next 18 months.

Some areas would be hit harder than others, with product and development and customer service teams expected to be reduced by up to 50%, the chief #executive, #ZubinAppoo, told an investor briefing in February.

“The era of manually writing #code as the core act of #engineering is over,” Appoo said.”

#ZeroHourWork / #WhiteCollar / #AIAutomation / #ASX / #Australia <https://www.theguardian.com/technology/2026/may/07/your-craft-is-obsolete-wisetech-staff-in-limbo-as-ai-touted-as-better-than-humans>

‘Your craft is obsolete’: WiseTech staff in limbo as AI touted as better than humans

The software company said in February it would cut 7,000 jobs but, as it touts new technology, workers are still waiting to hear which roles will go

The Guardian
Learning more about Coding

A Critical Perspective from someone who doesn't Code

This is super cool. I’m gonna move to this model:

https://pridever.org

(Idea by @nikitonsky / site by @bison)

#Code #FrontEnd #Development #Design #LGBTQ #PrideVersioning

Pride Versioning - Pride Versioning 🏳️‍🌈 0.3.0

Forget semantic versioning, use PRIDE VERSIONING 🏳️‍🌈

#JCON2026 keynote is live: 'Code Is Cheap. #Software Isn’t.' by yours truly.

#AI can now write #code faster than most #developers can #review it. That sounds like progress. In many teams, it isn’t.
In real #Java systems, the problem was…

Grab your ☕️ and hit play: https://youtu.be/Di4ii6Xsb9A

Code Is Cheap. Software Isn’t. | Markus Eisele (EN)

YouTube

Our last #JCON2026 keynote is live: 'Code Is Cheap. #Software Isn’t.' by Markus Eisele

#AI can now write #code faster than most #developers can #review it. That sounds like progress. In many teams, it isn’t.
In real #Java systems, the problem was…

Grab your coffee and hit play: https://youtu.be/Di4ii6Xsb9A