PORTABLE GAME CONSOLE! #2


Hello again! So, as you remember in the last post - i started making an Arduino version for this game, and now i want to share with some mistakes I did, and WHAT I HATE in Arduino C++ language.

So, first up - I hate Arduino C. It is very hard to learn, almost every simple C solution becomes harder with Arduino C++.

Strings? Okay-dokey. String arrays? WHAT THE FUCK ARE U ADOPTED???????๐Ÿ˜๐Ÿ˜๐Ÿ˜

Basically, there is no strings. There is CHAR's. And with arrays *chars. What's the difference - with char you MAY read string "test" as "t", is something went wrong, cause length is NOT amount of elements, by the way, you can calculate it 2 ways, but result will be different!

First - gives you length of array (*char array[500]{}  = 500)

Second -gives you length of elements in array (*char array[500]{"test", "teest"} =9)

Why? Cause char variable should store char, not string! And string in it is an array of chars! THIS IS SO FUCKING HARD, AAARGH.

And, you can't "clean" array, or fill empty one. 

Also, i've made a big ass mistake. Sensors that i've made before are piece of shit. They false trigger, not trigger, or even worst. I was just coding and testing, and when i've touched the coil again - i have felt an little pain. The coil just sucked skin on my finger! It was not too bad, but i should find better for sensor..

Get Command_Line

Leave a comment

Log in with itch.io to leave a comment.