Why should you learn and love to use Linux as a development platform?
This question will for sure be something any serious developer asks himself.
Yes, you could use Windows or Mac but why Linux for development?
The biggest reason is that everything is Open Source. This means you have access to binaries and the code to see how something works. Naturally, not anyone using Linux will look at all the source code. But compiling your own binaries from source is an essential skill.
This is Example 2 in the series about learning to program by making games with Tcl and Tk.
Today we will be creating a Tic tac Toe game.
Again as in the previous example https://andreiclinciu.net/number-guessing-game-tcl-tk/ we will be doing this in multiple versions
I won't explain everything, but what we will do is very simple:
- We draw a 3x3 grid of buttons
- When we click a button it switches by changing it to X or O
- depending on the previous setting, registering this in the global gameboard variable
- Switching X or O after each click, disabling the command ( so you can't click 10 times)
- Initialize the Gameboard
Linux is very stable and there are very few apps that can freeze the desktop. With the gaining popularity Linux has especially since the gaming industry is moving toward Linux it's quite necessary to know a few tricks.
As I've recently discovered Cinnamon has some issues. But running apps in Wine can also cause problems.
There is a very easy way to fix it without rebooting and losing all your open apps, files and tasks
GraphicsMagick is an enhanced version of ImageMagick which is a Image library used by many applications and websites to edit images.
The main strength of GraphicsMagick is the power it can harness on multicore devices via OpenMP.
You can download binaries and the source code from http://www.graphicsmagick.org/
This is a Game Coding Tutorial
If you got here by sheer luck please read through the introduction at : https://andreiclinciu.net/?p=80&preview=true
We will start with a simple game where the player guesses a random number between 1 and 100 (or anyother maximum value) generated by the computer.
We'll start small and as we code we will add more functionalities along the way, this will make it easier to understand the process and changes.
You'll see that at every revision and version we will change specific things, and even change the way we did something in a previous version.
It's very important to understand that programming is not something static but a dynamic action of changes and improvements.
As we advance with our games we'll explain the changes less and less and we won't talk about previous concepts unless there is a catch.
In normal projects you need to think out the project on beforehand with all the requirements and then start coding. Requirements can change, and the code will change too so always review the old version with the newer version and see what we've added.
These guides and tutorials will be written in Tcl/Tk. There are multiple reasons for this.
Tcl goes perfectly together with Tk, a toolkit for drawing User Interfaces.
Tk by itself may seem a little outdated compared to modern alternatives but it's the perfect choice for beginners who have no previous knowledge of programming.
Fossil is a great SCM Source Control Management system.
git remains by far the most used version source control system.
I still prefer to use Fossil for projects where I'm the only developer or we have a very small team of people working on a project. Fossil beats any other source control system. It's even better than git in many instances.
You should start using fossil for your next projects.
I'll explain why Fossil is so great. We'll be reviewing some of the awesomeness of Fossil
There is a very powerfull user Interface wrapped around youtube-dl which will allow you to download mass video's from youtube.
Any person that uses a pc for more than 2 hours a day should learn to use the command line. Why? Consider these reasons:
- Powerfull - The commandline is actually your friend, using It wisely will not only teach you to do your job faster and have fun while doing it!
- Endless functionalities - Most programs have an user interface which is actually hiding how the fun stuff works. And to do multiple things you would need to download 100 different programms. In the command line you have unlimited options
- Win Time - You can spend hours when you want for example to download 100 links with most programs which work 1 by 1
- Security - Most programs are not open source so you don't know if you're downloading a virus or a good working program
We will be using youtube-dl which is a Python script that can download video's from Youtube.com.