Tomek Świstak
banner
swistak.codes
Tomek Świstak
@swistak.codes
🦫 swistak.codes author (Polish)
🤓 JavaScript Developer (10+ years in IT)
☁️ Software Architect
🎸 Writing mostly IT related stuff (English and Polish)
🎯 Also: games, music, movies etc

➡️ More: https://linktr.ee/swistak.codes
Pinned
I decided to make my profile more internationally friendly, so I'll start posting more in English 👋

As I'm new to the English audience, here's a bit about me:

➡️ JavaScript Developer (10+ years in IT)
➡️ Software Architect
➡️ I'm writing mostly IT related stuff

➡️ My links: linktr.ee/swistak.codes
Pisząc bezwzrokowo na klawiaturze, jedne słowa wpisuje się łatwiej, inne trudniej – niektóre niemal bez ruchu palców, inne wymagają gimnastyki. Czy można to zmierzyć? Sprawdziłem!

Zapraszam do lektury:
swistak.codes/post/trudnos...
Określanie trudności pisania słowa
Artykuł opisuje, w jaki sposób możemy mierzyć, jak ciężko jest napisać słowo na klawiaturze.
swistak.codes
November 11, 2025 at 10:58 PM
Silnia to jedna z szerzej znanych funkcji matematycznych. Z jednej strony podczas nauki matematyki kojarzymy ją mocno z kombinatoryką, z drugiej podczas nauki programowania stanowi sztandarowy przykład rekurencji. Ten temat jednak warto rozszerzyć.
swistak.codes/post/silnia/
Silnia i powiązane zagadnienia
Artykuł opisuje funkcję silni, jej zastosowania, obliczanie i powiązane zagadnienia matematyczne.
swistak.codes
September 25, 2025 at 6:01 AM
Wolfenstein 3D nie był pierwszą grą z trójwymiarowym światem, ale za to była pierwszą, która wprowadziła graczy w świat 3D w sposób przystępny. Technicznie najciekawszą rzeczą w tej grze jest renderowanie 3D. Omówmy je i zaimplementujmy w JavaScript.
swistak.codes/post/rendero...
Renderowanie grafiki w stylu Wolfenstein 3D
Artykuł przedstawia algorytmikę stojącą za renderowaniem grafiki w stylu Wolfenstein 3D. Pomija detale implementacyjne oryginału.
swistak.codes
June 25, 2025 at 8:23 AM
Wyszukiwanie obiektów w przestrzeni - przydatne przykładowo przy programowaniu gier. W artykule przedstawiam przykładowe podejścia do tego problemu, ograniczając się do przestrzeni dwuwymiarowej.
swistak.codes/post/wyszuki...
Wyszukiwanie obiektów w przestrzeni
Artykuł przedstawia algorytmy wyszukiwania obiektów w przestrzeni, które są wykorzystywane w różnych dziedzinach, takich jak np. gry komputerowe.
swistak.codes
June 6, 2025 at 9:36 AM
Z okazji 5-lecia bloga świstak.codes i 3-lecia jego przepisania postanowiłem udostępnić jego źródła na GitHubie. Jeśli jesteś ciekaw(a) więcej szczegółów, a także informacji o tym, dlaczego kod jest napisany tak, a nie inaczej, to zapraszam do lektury.
swistak.codes/offtopic/ope...
świstak.codes staje się open‑source!
W artykule opisuję przejście świstak.codes na open-source i dlaczego kod wygląda tak, a nie inaczej.
swistak.codes
April 17, 2025 at 7:41 AM
W informatyce bardzo często spotykamy się z pojęciem losowości. Tylko odpowiedzmy sobie na kluczowe pytanie — jak w ogóle komputer losuje? Czy komputer jest w stanie wygenerować coś, co jest naprawdę losowe?

Zapraszam do lektury!
swistak.codes/post/losowosc/

#it #programowanie #algorytmy
Losowość w informatyce
Artykuł omawia temat losowości w informatyce. Opisuje, dlaczego losowość jest ważna w informatyce i jak ją osiągamy.
swistak.codes
March 12, 2025 at 7:56 AM
W aplikacjach graficznych jedną z dostępnych funkcji jest możliwość skorygowania perspektywy wykonanego zdjęcia. Robienie tego jest tematem tego artykułu. Zrozummy temat z punktu widzenia matematyki i zaimplementujmy wszystko od zera. Wskażę też, gdzie znaleźć gotowce.

swistak.codes/post/korekcj...
Korekcja perspektywy — algorytmiczne podejście
Artykuł przedstawia algorytmiczne podejście do korekcji perspektywy w grafice komputerowej. Rozpatrzymy problem z punktu widzenia matematyki i zaimplementujemy wszystko od zera.
swistak.codes
February 12, 2025 at 10:13 AM
Reposted by Tomek Świstak
CSS Custom Functions are coming … and they are going to be a game changer!

👉 brm.us/css-custom-f...
February 9, 2025 at 1:21 AM
Did you know that computing the remainder of a division varies across different programming languages, and that most implementations don’t align with the mathematical definition?

Read about it here: 4markdown.com/the-curious-...
Explore the complexities of division remainders in programming. Learn how different languages handle modulo operations and the math behind them.
Explore the complexities of division remainders in programming. Learn how different languages handle modulo operations and the math behind them.
4markdown.com
February 3, 2025 at 9:40 AM
Piąty rok istnienia bloga świstak.codes zacznijmy z przytupem. Czas więc poeksplorować chińskie twierdzenie o resztach. Dowiedzmy się, o co w nim chodzi, jak działa i jakie ma praktyczne zastosowania. Co najważniejsze dla programistów, pokażę, jak je zaimplementować.

swistak.codes/post/chinski...
Chińskie twierdzenie o resztach
Chińskie twierdzenie o resztach to twierdzenie matematyczne, które pozwala na rozwiązywanie układów równań modularnych. Dowiedz się, jak działa chińskie twierdzenie o resztach i jakie ma zastosowania.
swistak.codes
January 22, 2025 at 9:21 AM
Reposted by Tomek Świstak
😏
January 18, 2025 at 12:40 PM
Reposted by Tomek Świstak
I made a Doom source port that runs within a PDF file.

PDFs support Javascript, so Emscripten is used to compile Doom to asm.js, which is then run within the PDF engine. Input/output is done by manipulating text input fields.

doompdf.pages.dev/doom.pdf

github.com/ading2210/do...
January 13, 2025 at 4:16 AM
In case you missed it:

I've translated my article about measuring execution time into English. In it, I explain how to do it properly and interpret the results.

Check it out here:
4markdown.com/measuring-ex...
Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more!
Learn to measure execution time effectively, from profilers to manual methods, with practical examples in C, Python, JavaScript, and more!
4markdown.com
January 14, 2025 at 7:07 AM
This year, I’m starting to translate some świstak.codes content into English! It won’t be regular, and I won’t translate everything, but I think the English-speaking community might enjoy a curated selection of my (very subjective) “best-of.”
January 13, 2025 at 9:03 AM
Reposted by Tomek Świstak
Bad Apple but it's 6,500 regular expressions that i search for one at a time inside of vim

full writeup over here on my blog: eieio.games/blog/bad-app...
January 10, 2025 at 6:18 PM
Let's finish it.

Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

20/20
January 10, 2025 at 1:54 PM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

19/20
January 9, 2025 at 1:55 PM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

18/20
January 8, 2025 at 11:06 AM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

17/20
January 7, 2025 at 10:19 AM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

16/20
January 6, 2025 at 6:58 PM
Czas na małe podsumowanie roku 2024 na świstak.codes 🎉

Wrzucę w threadzie linki do trzech wybranych artykułów, które miały największe znaczenie w tym roku.

1/4
January 5, 2025 at 6:51 PM
Reposted by Tomek Świstak
tabs vs spaces
January 4, 2025 at 6:37 AM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

15/20
January 5, 2025 at 12:48 PM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

14/20
January 4, 2025 at 5:08 PM
Choose 20 albums that have stayed with you or influenced you. One album per day for 20 days, in no particular order. No explanations, no reviews, just covers.

13/20
January 3, 2025 at 1:32 PM