Pattern Programs has one goal: to help you think through a problem on your own. A school student, a college graduate preparing for placements and someone already working in IT all need the same skill to stay safe in their careers: understanding the logic, instead of just getting the answer.
Our mission is to combine the traditional way of learning, practising with your own head and hands, with the AI-ready skills the future needs.
AI tools can now write a pyramid pattern, a sorting function or a whole web page in seconds. That is useful. But if the tool writes every line for you, the problem gets solved and you learn very little. On the day the tool is not allowed, gives a wrong answer, or simply is not available, you are left with nothing to fall back on.
To be clear: we are not against AI
I am not against the use of AI, and this site is not either. Every article here has a “Read summary with AI tools” button, because a good explanation from an AI can help you understand a program faster. The problem is not using AI. The problem is using it instead of thinking.
A calculator did not stop people from learning arithmetic; we still learn to add before we use one. AI for programming should work the same way: first learn to solve the problem yourself, then use AI to go faster, check your work and learn more.
What the research says
Several studies from 2024 to 2026 looked at what happens to learning and thinking when people lean on AI. They do not say that AI “damages your brain”. They point to something simpler: a skill you do not practise does not grow.
1. Students who used GPT-4 as a crutch did worse in the exam
In a field experiment with nearly 1,000 high school maths students in Turkey, students who practised with plain GPT-4 scored 48% higher in practice sessions, but 17% lower in the exam taken without AI than students who never had it. A version of the tool designed to give hints instead of answers did not cause that drop. (Wharton summary, paper, published in PNAS in 2025.)
Lesson: AI that hands you the answer can hurt learning; AI that makes you think can help.
2. Developers who leaned on AI understood less of their own code
In a 2026 randomised trial by Anthropic, developers learned a new Python library with or without an AI assistant. Those with AI scored 17% lower on the quiz afterwards, and the biggest gap was in debugging. Developers who used AI to ask “why” questions kept much more than those who let it write the code. (Anthropic research)
Lesson: asking AI to explain is learning; asking it to do the work is not.
3. Essay writers using ChatGPT could not quote their own work
An MIT Media Lab study measured brain activity (EEG) while 54 people wrote essays with ChatGPT, with a search engine, or with no tools. The ChatGPT group showed the weakest brain connectivity, felt the least ownership of their essays, and many could not accurately quote what they had just written. It is a small preprint study, so treat it as a warning sign, not a final answer. (MIT Media Lab)
4. More trust in AI, less critical thinking at work
Researchers from Microsoft and Carnegie Mellon University surveyed 319 knowledge workers who use generative AI every week. People who trusted the AI more used less critical thinking; people who trusted their own skills more used more of it. The authors recommend keeping basic problem-solving skills strong to avoid over-reliance. (Microsoft Research, CHI 2025)
5. Experienced developers were slower with AI, but felt faster
In a 2025 randomised trial by METR, 16 experienced open-source developers took 19% longer on real tasks when AI tools were allowed, yet they believed AI had made them about 20% faster. The authors say this was one setting with early-2025 tools and does not apply to all work, but the gap between feeling and reality is worth remembering. (METR study)
6. Heavy AI use goes with weaker critical thinking
A study of 666 people found that frequent AI use was linked with lower critical thinking scores, mostly through “cognitive offloading”, letting the tool do the thinking. Younger participants relied on AI the most. The author notes it shows a correlation, not proof of cause. (Gerlich, Societies, 2025)
Why practising your own logic pays off
- You can work anywhere. In exams, coding tests, interviews and secure offices, AI tools are often not allowed. Your own logic always is.
- You can tell when AI is wrong. AI writes confident code with bugs. Only someone who understands the logic can spot them.
- You debug faster. The Anthropic study above found the biggest gap exactly here. Debugging is a skill built by solving problems yourself.
- You learn new things faster. Strong basics such as loops, conditions and data structures make every new language and framework easier, with or without AI.
- You get more out of AI. People who understand the problem ask better questions and get better answers.
Our approach: traditional practice, AI-ready
Everything on Pattern Programs is built around one routine:
- Think first. Read the pattern and work out the rows, spaces and characters on paper. Our row-by-row diagrams show how.
- Write it yourself. Type your own code in the free online compiler or the code playground and run it. No login, nothing to install.
- Compare. Check your output against ours. Every program on this site is compiled and run before it is published, in C, C++, Java and Python.
- Then use AI to go deeper. Ask it to explain a line you did not understand, suggest another way, or review your solution. Not to write it for you.
A simple rule helps: try for 20 minutes on your own before you ask AI. Even when you do not finish, those 20 minutes are where the learning happens.
Who this is for
- School and college students learning their first programming language and preparing for exams.
- Fresh graduates preparing for placement tests and technical interviews, where logic questions such as pattern programs come up again and again.
- Working professionals in IT who want to keep their problem-solving sharp while AI tools take over more of the routine work.
Start practising
- Star patterns: the classic first step for nested loops.
- Number patterns and alphabet patterns: the same logic with values that change.
- Tricky patterns: when you want a real challenge.
- Code playground: write and run C, C++ and Python in your browser.
Use AI, but use your own brain first. That is the mission of Pattern Programs.
Sources
- Without guardrails, generative AI can harm education (Wharton, about the PNAS 2025 study)
- How AI assistance impacts the formation of coding skills (Anthropic, 2026)
- Your Brain on ChatGPT (MIT Media Lab, 2025, preprint)
- The Impact of Generative AI on Critical Thinking (Microsoft Research and Carnegie Mellon, CHI 2025)
- Measuring the impact of early-2025 AI on experienced open-source developer productivity (METR, 2025)
- AI Tools in Society: Impacts on Cognitive Offloading and the Future of Critical Thinking (Societies, 2025)

