The GitHub issues for the copyfail PoC script are fun, including this one, aptly titled "Golf Harder": https://github.com/theori-io/copy-fail-CVE-2026-31431/pull/5

#copyfail #codegolf

Golf harder (-20 bytes) by yarienkiva · Pull Request #5 · theori-io/copy-fail-CVE-2026-31431

Thanks for this clean and well documented PoC that really helps defenders understand the root cause of the vulnerability. /s This commit refactors the PoC to remove 20 unneeded bytes, saving disk s...

GitHub

"Ermitteln sie aus einem gegebenen Array von int-Werten die kleinste Zahl."

import java.util.Arrays;

void main(){
int[] numbers = {11, 45, 28, 51, 72, 5, 3, 9, 19, 4, 12, 95, 4, 33, 8, 17};
System.out.println(Arrays.stream(numbers).min().getAsInt());
}

#codegolf #java #stupidinterviewrequests

"Schreiben sie ein Java-Programm, das die Zahlen von 1 bis 30 durchgeht. Ist der Wert durch 3 teilbar, soll statt der Zahl "Fizz" ausgegeben werden. Ist der Wert durch 5 teilbar, soll "Buzz" ausgegeben werden. Ist der Wert durch beide teilbar, geben sie "FizzBuzz" aus."

Mein Code:

void main(){IntStream.rangeClosed(1,30).forEach(i->System.out.println(i%3<1?"Fizz"+(i%5<1?"Buzz":""):i%5<1?"Buzz":i));}

#codegolf #java #stupidinterviewrequests

Code Golf (https://code.golf/) supports unrestricted execution and answer checking for their growing list of problems in #APL (Dyalog APL). APL is listed in the "experimental" section of the supported languages list – once a sufficient number of people have submitted solutions, it will move to the main list of languages and a leaderboard will be added. Please help APL achieve this by exploring the site and submitting APL solutions.

#Dyalog #DyalogAPL #CodeGolf

Код-гольф в Яндексе: как нерды развлекаются

Что такое код-гольф? Это соревнование, в котором надо решить задачу по программированию (как правило, несложную), используя наименьшее количество символов. Соревнование довольно известное. Можно поиграть, например, на одноимённом сайте , есть целая секция на CodinGame , иногда такие соревнования публикует kaggle , была такая секция на HackerRank (сейчас её я не нашёл). В чём особенность таких задач? Низкий порог входа: решение можно написать с мобильника и оно будет занимать 10 строк. Но при этом есть большая сложность: чтобы избавиться от какого-то символа, в этом соревновании приходится идти на такие ухищрения, что мама не горюй. Некоторые конструкции очень неочевидные. Временами мы развлекаемся таким форматом. В какой-то момент на внутренних ивентах подняли свою платформу для соревнований, а потом она протекла и на внешние конференции. Эта статья — смесь разбора задач и истории появления соревнования по код-гольфу на конференциях Яндекса. Про нас и кодгольф

https://habr.com/ru/companies/yandex/articles/961658/

#C++ #codingolf #codegolf #python #разработка #занимательные_задачи

Код-гольф в Яндексе: как нерды развлекаются

Что такое код-гольф? Это соревнование, в котором надо решить задачу по программированию (как правило, несложную), используя наименьшее количество символов. Соревнование довольно известное. Можно...

Хабр

Meet me and some #RetroComputing #hackers at the #VintageComputing assembly on this years #39C3 in Hamburg!

We will present some historcial running machines #AnalogSynthesizer patching, #AnalogComputer tinkering (with a #Vectrex as an #oscilloscope), and #BASIC #CodeGolf and #RetroGame workshops!

I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

discuss.python.org/t/allowing-…

#python #CodeGolf #PythonCodeGolf

Allowing indented code for `-c`

Jon Crall posted this feature proposal on the Ideas mailing list and a GitHub issue in April. It needs wider discussion, so I’m re-posting it here. I’ll add my own comment below. The Python CLI should automatically dedent the argument given to “-c”. I raised this issue on the Python-Ideas mailing list and it got some positive feedback, so I’m moving forward with it here and in a proof-of-concept PR. Pitch I have what I think is a fairly low impact quality of life improvement to suggest for t...

Discussions on Python.org

Yo Dawg! I heard you may want to #print a #poker #card sized version of a minimal #balatro like #javascript #game #sourcecode. So you can poker while you poker. #baatato #codegolf #deadmeme

More here: https://github.com/kesiev/baatato

It's time for a new #javascript #opensource #codegolf thingie. #Baatato is a 2KB reinterpretation of the iconic Poker-inspired deck-building game we all know!

Code here: https://github.com/kesiev/baatato
Play here: https://www.kesiev.com/baatato/index.html

(Resize your browser window to a square shape to see the full game screen. It should also be playable on portrait mobile devices.)

So I've been trying to code-golf a JS-free menu bar from my website. The <details> HTML tag proves very useful to have a JS-free foldable menu in mobile mode, however I still need to duplicate the whole menu for desktop mode as I couldn't lock <details> to the open state in desktop mode even with media queries.

The ::details-contents pseudo-element sounds promising though, let's see if it works! It's not widespread yet but just landed in Firefox 143: https://developer.mozilla.org/fr/docs/Web/CSS/::details-content

My bar for stability is at least some time in Firefox ESR, so it won't make it to my website for a year or two. #HTML #CSS #CodeGolf #NoJavaScript

::details-content - CSS | MDN

Le pseudo-élément CSS ::details-content représente le contenu extensible/collapsible d'un élément <details>.

MDN Web Docs