Programmers of the world, unite!

Welcome to Garth.cz. If you are a programmer or you are interested in programming, programming languages and related topics, you will probably find some useful information here.

I work on the site in my spare time and add content gradually, so please be patient with the categories that fill up very slowly. If you would like to share your own findings, tips or experience, feel free to write to me.

Local spells: PHP, MySQL, (x)HTML, JavaScript, www and more

Broadly speaking, we talk about all IT topics you can come across in the real or virtual world. If it is worth a click, it is worth a conversation.

Latest articles on Garth.cz

AI · Introduction to AI

What a language model is and how it works

Tools such as Claude, ChatGPT or Gemini are built on so-called large language models (LLMs). What a model actually does, why it can write text as well as code and where its natural limits are.

read more →
AI · Introduction to AI

Tokens and the context window

Language models do not work with characters or words but with tokens. The number of tokens determines the price as well as how much text the model can hold at once. What that means in practice and why answers can get worse in a long conversation.

read more →
AI · Introduction to AI

Why AI makes things up (hallucinations)

AI sometimes answers confidently and to the point – and yet wrongly. It makes up a nonexistent function, parameter or source. Why this happens and how to catch such errors in time.

read more →
AI · Coding with AI

How to code with an AI assistant

AI can write a function, find a bug or explain unfamiliar code within moments. For the result to really save time, it pays to have a workflow – from the prompt through review to tests.

read more →
AI · Coding with AI

How to review code written by AI

Code from AI often works at first glance. That does not mean it is secure, correct in all cases and a good fit for the project. A checklist of what to go through in generated PHP code before you use it.

read more →
AI · Coding with AI

What not to send to AI tools

Everything you paste into an AI tool goes to the server of the provider. What does not belong in a prompt, how to remove sensitive data from code and what to watch out for with agents that have access to your computer.

read more →