Today we will talk about how to write a simple turn-based game engine with Go. While writing our character’s abilities and fights with each other, we will use Interfaces, channels, and concurrency with Golang.
“Reality is broken. Game designers can fix it.”
― Jane McGonigal
If you don’t have any idea about the turn-based game, it is about the different types of characters with different strengths, and different abilities fight and kill each other one by one. The winner is the survived last person.
This article will perform some operations on the data of products sold on an online shopping site and save them to the DB.
“Getting information off the internet is like taking a drink from a firehose.” — Mitch Kapor
We will get new product data with different currency prices by using .Net Core web API. But we will convert all product prices to ₺ currency and save on to the SqlDB. So we will parse a webpage and get Dolar, Euro, and British Pound currency value from the HTML and convert it to the ₺ Turkish Liras with Go lang. For all these processes, we will use Microservices. For improving the performance, we will use the Redis Cache. If there is no any Currency data in Redis, we will put all product data that we get from the .Net Core service to the RabbbitMQ. After all, we will get every product data one by one from the consumer and convert all product’s price currency to ₺ Turkish Liras with Go lang. …
Today we will talk about real-life requests, problems, errors. And we will find a solution all of them by one by, by using .Net Core Entity Framework. “Current .Net Core version 3.1.401”.
“We can not solve our problems with the same level of thinking that created them.”
— Albert Einstein
Firstly we must solve this problem globally and manage it from one place.
We will create CryptoData Attribute for signing the secret fields.
CryptoData.cs: This attribute is used for flagged to secret properties of the class.
using System.Text;namespace Dashboard.DB.PartialEntites
public class CryptoData : System.Attribute …
Today we will make a simple online multiplayer word game with Blazor. We will use SignalR for realtime communication between two players. All the words will keep in MongoDB. And we will support multi-platforms with .Net Core. “Current .Net Core version 3.1.301”
We do not stop playing because we grow old. We grow old because we stop playing.
— Benjamin Franklin
dotnet new blazorserver -o blazorWords
Today we will talk about how to manage distributed transactions between separated microservices. Commit and Rollback are the main two operations of the transaction. We will use .Net Core 3.1 and RabbitMQ for this application.
This article is the continues of my previous Multi Language Support With Angular article. In the first article, we wrote the front-end application. Multi Language Course Admin form. And now we will write backend with the new programming language Deno. And we will get the Html Element’s text by selected language from the Redis with Deno.
“In any given moment we have two options: to step forward into growth or step back into safety.”
Today we will talk about how to implement multi-language support on existing applications with taking data from the database. If you don’t think multi-language support before starting the project, you don’t care too much working with parametric components. In Angular, everything is a component. So, after deciding to support multi-language, you have to change all your components as a parametric(child component). Sometimes, you have to convert some Html-Elements to parametric components(child components) too.
We will do different something in this application. Generally, Multi-Language support is doing on the Page. But in this application, we will do multi-language support on the molecular part. …
Today we will talk about real-time information used in all areas of social life. Speed is the most important thing in the new technology century. In this article, we will try to informed customers who buy the stock papers when the price changed. It should be as fast and accurate as possible.
You can listen to the radio to get information about the exchange news once in a day like above the yellow taxi radio. But if you want to learn something in a real-time, you have to do more then this. You have to use technology. We will use “Socket.IO” …
Today, we will talk about how we can block the asynchronous working process in some special cases, which is a problem in lots of programming languages, and why we may need it.
“Do you have the patience to wait
Till your mud settles and the water is clear?
Can you remain unmoving
Till the right action arises by itself?”
― Lao tzu
Before talking about the “asynchronous” programming model, let’s talk about the “synchronous” programming model.
Everythings happen at one a time. The process runs only as a result of some other process being completed or handed off. When you call a function, which performs a long-running action, it returns results only when the operation has finished. …
Today we will talk about the clean code. Is it really necessary? If our codes look like messy, what is waiting for us in the future? Does clean code mean only, easy to read, and simplicity? Or much more than this?
There is, after all, a difference between code that is easy to read and code that is easy to change.
— “Big” Dave Thomas
First of all, I know, nobody has so much time. Boss waits for the see of finalizing the project. He or she doesn’t care about the details. You can think your self as a butcher in front of the customer. Boss is your customer, and you are the butcher. The customer doesn’t care about your hygiene. He only wants to take his meat as possible as fast. So the boss doesn’t want you to wash your hands for every customer. Why, because time is money. Finally, if you don’t wash your hands and not waste your time(unlike this example, you always wash your hands, please!), maybe at the end of the day, everyone could be happy except you :) But in the future, customers could be sick and sue the company. In the end, nobody will be happy. Boss doesn’t know the details. Only you know the risks. …