Blog

Thursday, 12 January 2023

Hello everyone! Happy new year!
I'm still alive and finally after 3 months break a new project is released. This time it is another classical game - Minesweeper!
Hope you enjoy it!

Tuesday, 6 September 2022

We are alive and we are back! Summer break was nice and now it is time to share some good news!
First of all, a couple of weeks back the channel has hit 200 subscribers and it is growing! I would like to thank again everyone who has sucbscribed, watched videos or left comments!
Next - we have a new project just released! This time it's about Wordle game that got popularity recently! Go check it out and learn how to build it yourself in just 5 minutes!
Another teaser for Wordle - I'm already planning part 2 of this project as I see a lot of potential there! Stay tuned!

Tuesday, 14 June 2022

Another small but fun game is ready and you can check it out!
This time it's Dinosaur Game that is embedded into Google Chrome. You can play it when you don't have internet connection.
I was surprised how easily it can be done and I want to share my excitment with you! Go check out the video and breakdown

Thursday, 26 May 2022

This is huge! I posponed this project for a long time and finally completed it!
This time it is classic Tetris game!
Initially I was sceptical that it can be done in just 5 minutes, but it turned out that it is possible (ok, I just missed by some 20 seconds)!
I encourage you to check the video and follow along the breakdown!

Thursday, 19 May 2022

As promised last week - a 100 subscribers special project is ready!
I thought it would be a great idea to celebrate it with some fireworks. But even better idea - to code own fireworks in just 5 minutes!
Let's target for the next milestone together!

Tuesday, 11 May 2022

A couple of days back the Youtube channel hit 100 subscribers mark!
That's a huge achivement for such hobby project and I'm really proud of it!
One of the benefits it brings - nice and easy to remember channel URL - now it is https://www.youtube.com/c/5minutesofcode
Feel free to like/subscribe!


And by the way - 100 subscribers special video is coming soon!

Wednesday, 27 April 2022

Today another video hit 1000 views on YouTube!
This time it is about Conway's game of life.


Feel free to like and subscribe (if not done so yet)!
Looking forward for other videos to break such milestone!

Saturday, 23 April 2022

It was another quite long break without any uploads, but today the break is over!
Today we will take a look at another classical game - Tic-tac-toe. You may know it as "3 in a row" and I'm sure you played it before.
This time the game will come with a solid AI that plays optimal strategy.

Another fact I wanted to mention - the 5 mins of code Youtube channel is approaching 100 subscribers mark! For that milestone I'm also preparing a special project.
If you are not subscribed yet - fell free to subscribe and help me to achive this important milestone!

Wednesday, 30 March 2022

Around a month ago a project related to Twitter bot was released and it got some interested. Also people in video's comments asked about follow-up.
And here it comes - part 2 of Twitter bot! This time we will extend original bot by calling external HTTP service and tweet the dynamic message.
There are lots of APIs available but I decided to use Chuck Norris API - kudos to the authors of this amazing project!
Hope you like this video!

Thursday, 24 March 2022

Today I'm releasing a new project - Quine in 5 minutes.
If you don't know what quine is - it is a program that just prints to console own source code! That might look impossible, but it's quite fun to understand how it works. Even more - this approach is not limited to one or another programming language - this can be done using any language of your choice!

Thursday, 17 March 2022

One of my videos hit 1000 views!
For some of you it might seem like a small thing, but for me it is a huge achivement.
When I started this project - it was (and still is) purely for fun. I don't plan to become a blogger or influencer. But the fact that people are interested in the content I make - it makes me proud of myself and gives extra motivation.
By the way - this is the video (consider liking/subscribing):

Also check out the breakdown of this solution.
With that I would like to thank everyone who supported the channel and my content.
New video and new content will be released in coming days. Stay tuned!

Saturday, 12 March 2022

ASCII Art project is way to get 30 years back.
During that time the graphical capabilities of computers were quite low, but people wanted to use them to draw images. That times there was only a command prompt or a terminal. But people were eager to creativity.
Actually it is not very complex to convert an image into ASCII art. There is a nice technique that can be used - and I will teach you how to master it in this mini-project.
Hope you will enjoy it.

Sunday, 20 February 2022

Twitter bot project is available with video and breakdown.
Learn how to work with Twitter API using Golang and tweet some stuff to your account.
Also if we talk about Twitter - check out and follow the Twitter account for "5 minutes of code" project - https://twitter.com/5minsofcode

Friday, 18 February 2022

Yesterday a new video is released - this is about classic Space Invaders game.
Breakdown will follow shortly, but you can check the video already now - https://youtu.be/1l1snJZi9UU
Anoter teaser - next upcoming project will be related to Twitter API and how to build a simple bot application.
Stay tuned!

Saturday, 29 January 2022

After almost 2 months break a new video is released!
Go and check how to do Arkanoid game in just 5 minutes! It's a classical game with great gameplay.
Enjoy and stay healthy!

Tuesday, 1 December 2021

Another long-awaited project! This time is is a Memo game!
As always breakdown and source code are available.
Another update is that now all pages have possibility to add comments!
Now you can add your reactions, comments and suggestions directly here! Let's collaborate!

Saturday, 13 November 2021

I took a short break between projects, but now I'm back.
New project is on it's way - Burning Fire in 5 minutes!
It shows how to use HTML canvas to draw a relistic fire visualization.
The project was inspired by a more than 20 years old memory of mine when I saw the similar thing implemented in Borland Pascal. That time it looked like magic to me.
However there is no magic - just a thought-through implementation and careful choice of the pallete.

Wednesday, 27 October 2021

It is a first milestone - 10 completed projects!
Latest one is a fun - inspired by Buzzword Bingo, but applied to the SCRUM meetings.
Let me present to you - Daily Scrum Bingo in JavaScript in 5 minutes. As usual it comes with a recording and a full implementation breakdown. Enjoy!

Monday, 25 October 2021

Another short video uploaded. This time it is a classic combinatorical problem - 8 queens on a chess board.
Idea of the problem - put 8 queens on a chess board so that they don't attack each other. The solution is using a recursive backtracking approach.
This time I decided to try a #shorts format as the solution is pretty simple and can be done even in under 1 minute. I think there will be more videos of such format.
If you never heard about this problem before - check out an article on Wikipedia - https://en.wikipedia.org/wiki/Eight_queens_puzzle
Breakdown is also available here.

Sunday, 24 October 2021

I've uploaded one more video to YouTube. This time it is a short one - finding a Magic Square, but a slightly different one.
This problem originally comes from one of Latvian team competition from early 2000-s. A team of 3 people was given 8 to 10 problems (usually - logical or combinatorical) for 5 hours. Team had to solve as much problems as possible and can use only 1 computer to do any calculations and get the answer.
The goal of the problem is to fill a 4 by 4 square with numbers from 3 to 18 so that the following 2 conditions apply:

It is sufficient to find any solution.
That time the problem seemed very hard to me. Nowadays it can be done in a minute. I wish I could do it so easy that time.
This time I was using recursive backtracking and implemented it using Golang.
The sources can be found here - https://github.com/5minute/examples/tree/main/magic_square

Thursday, 21 October 2021

Another project released - URL shortener in 5 minutes.
This is an attempt to build a simplified but fully functional clone of existing services.
As usual the project comes with sources in Github, video recording and full breakdown.
I personally think it was one of most practical projects so far and feel free to use it as starting point and develop it further.

Monday, 18 October 2021

Releasing new project - Webchat in 5 minutes that is built based on node.js, express and socket.io.
Right now it is the first project with node.js. I would like to cover more stacks and platforms - there are already projects on vanilla JavaScript, Golang and now node.js. What will come next?

Friday, 15 October 2021

Two news for today.

First of all the site is moved to a separate domain - 5minsofcode.com.

Secondly - I decided that it makes sense to do solutions' breakdown to comment certain parts of it in more details and provide links to external resources if any. Decided to start with Sudoku solver in 5 minutes. I think it should provide more context.
Also the following mini-projects have breakdowns now:

Wednesday, 13 October 2021

I decided to start with the blog to write a bit about the current state of the project and also shed some light to the future.

Before doing it, let me recap how it all started. I mentioned it slightly in About page. Actual development work started a week or two back with a Snake in 5 minutes idea. It went surprisingly well and I really enjoyed this idea and thought "wow, that quite fun and can be really exciting". Uploaded a video to YouTube under my personall account, shared via LinkedIn, got some feedback.

Also while working on a Snake game I realized that I have a number of different projects in my mind that can be also done in 5 minutes or faster. That's how I decided to start this project.

What are my goals? I don't know now... But in reality I have around 20 mini-projects in pipeline and I want to make 20 'X in 5 minutes' videos.

Also today I'm publishing my 6-th video - this time it will be about viral 2048 game. Hope you enjoy it.