Developers Club geek daily blog

Book "We Study C ++ through Programming of Games"

2 years, 2 months ago
image
If you want to learn to program the first-class games, you need to learn language C ++. This book will help you to master development of games from the elements irrespective of whether you have an experience of programming. It is much more interesting to study when training turns into game. Each chapter of the book describes the independent game project. In the final chapter you should write difficult game which integrates all acceptances of programming considered in the previous heads. The book will be ideally suited for the beginning programmer who is going not only to master properly difficult language C ++, but also to practice in programming of games. The purpose of this book — to acquaint you with language C ++ in the context of programming of games. Though it is impossible to imagine such book which would make you the master in two so volume subjects as programming of games and language C ++, this edition is useful to you as an introduction course.

Read more »


Simple inlayn-vizitor for boost:: variant

2 years, 2 months ago
Hi, Habr.

One fine Friday evening I wrote error handling in one hobby project … So, this introduction for other article.
Generally, one fine Friday evening I needed to walk on boost::variant and to make something with the data lying there. Quite to a standard task for boost::variant, and kanonichny (but very verbose) a method of its solution — to describe inherited from boost::static_visitor structure with overloaded operator() and to transfer her in boost::apply_visitor. And this fine evening for some reason began to write me very much laziness all this heap of a code, and there was a wish to obtain some easier and short way of the description of visitors. What from this left, it is possible to esteem under a cat.

Read more »


Budget mailing of SMS

2 years, 2 months ago
I welcome all habrozhitel!

Of course, the licked subject about mailing of SMS messages, but how to be told: "more is better than less". Somehow so it turned out that it constantly pursues me: one, other kind people will ask to take part (council, for example) in implementation of budget mailing of messages. And therefore not to vanish to the saved-up good, I will leave here, and suddenly it is useful to someone …


So - with … We lower all options of implementation based on a normal computer and an axis of NT family. And we will pass to "autonomous" systems at once.

What arduino in this direction can brag of? I will answer immediately, IT works, but there are nuances about which I will write below. Generally, we have the Chinese arduino 2560 option (it was tried practically all line) and two additional modules — the W5100 network (the stablest option) and GSM SIM 900. All this business somehow so looks.

image

The task was following:
— the device has to be able to communicate on http
— to send the message
— to issue result in the json format

Google shares all necessary information, and on an output we receive the following code:

Sketch

Read more »


To the thirtieth anniversary of the first of C ++ compiler: we look for errors in Cfront

2 years, 2 months ago
Бьёрн Страуструп
Authors: Andrey Karpov, Byyorn Straustrup.

Cfront is a compiler for With ++, existing approximately since 1983 and developed by Byyorn Straustrup. At that time it was known as "C with classes". Cfront had the full-fledged parser, tables of characters, built a tree for each class, function, etc. Cfront was based on CPre. Cfront defined development of language approximately till 1990. Many not clear moments taking place in With ++ are connected with restrictions of implementation of Cfront. The reason is that Cfront performed broadcasting with C ++ in C. In a word, Cfront is a sacred artifact for any C ++ the programmer. And I just could not pass by, without having checked this project.

Read more »


Online compilation on the static website, the recipe for beginners

2 years, 2 months ago

You wrote several years the project and now want to attract users? I have an idle time as barchelor fried eggs with bacon, the recipe especially for you.

For preparation of the simple website it is required to you:
  • repository on GitHub — 1 piece
  • ready html a template, for giving of a pleasant type — 1 piece
  • piece fresh kompilirushchegosya C ++ a code — at least 1 code line
  • ready javascript sauces from shop — ~ 500Kb
  • pictures and animashka to taste

Change any components, experiment and prepare the websites for favourite language!

Read more »


30 years With ++

2 years, 2 months ago
On October 14 this year one of the most important anniversaries of the world of programming – the 30 anniversary of language C ++ took place. During this time it won huge popularity and still remains to one of the most demanded and widely used programming languages in the world.

In this regard anniversary we bring to your attention transfer of interview with the founder of language Byyorn Straustrup.


Read more »


Platform "1C: The enterprise" — that under a cowl?

2 years, 2 months ago
Hi, Habr!
In this article we will begin the story about how the 1C:Enterprise 8 platform is arranged inside and what technologies are used at its development.

image

Why we consider that it is interesting? First, because the 1C:Enterprise 8 platform is big (more than 10 million code lines) the application on C ++ (the client, the server, etc.), JavaScript (web client), and, for quite some time now also Java. Big projects are interesting at least owing to scale, the questions imperceptible in small code base, in such projects rise to the utmost. Secondly, "1C:Enterprise" is a replicated, "box" product, and it is not enough articles about such developments on Habré. And still it is always interesting to learn how there live in other commands and firms.

Read more »


Search of non-initialized members of a class

2 years, 3 months ago
Unicorn and class members
Clients and potential clients for a long time appealed to us to implement diagnostics for search of non-initialized members of a class. We long resisted, realizing complexity of a task, but after all gave up. As a result we created diagnostics of V730. Diagnostics turned out not ideal and expecting a set of letters that something works not so, I decided to write a note about technical complexity of this task. I think, this information will give to users of PVS-Studio answers to some questions in advance and will be just interesting to a wide range of our readers.

Read more »


To build in JSON Embedded? As easy as shelling pears

2 years, 3 months ago
image

Not so long ago I had had need to load application configuration at very limited resources. There was no access, practically, to any standard functions of C. It was very lucky that there were standard functions on work with memory of malloc () / free ().

There was the following situation: the configuration is read out from the file at loading of the application on system with limited resources. The configuration has to be edited easily on the normal computer up to that it will be necessary to correct quickly some value directly on object at demonstration for the customer.

From this it is possible to draw conclusion that is necessary or:
  1. To write the editor of binary format.
  2. To use text format.

Read more »


Converting of video of the file in gif

2 years, 3 months ago
My experience of programming on with ++ totals 5 months, till this time I developed about two years applications for mobile operating systems. At once it has bothered me, and I have decided that it is time to start achieving the youthful dream — to become the developer of games. And I have a little replaced the direction of the movement of the career.

Here somehow I sat and thought, what to write to me. I have selected for myself 16 aaplets, have several times thrown coin, and the lot has indicated to me aaplet of receiving gifka from video. Who wants to see amateurish cross code — I ask under kat.

Read more »