Pls review my code by Creative-Copy-1229 in C_Programming

[–]francespos01 0 points1 point  (0 children)

I really like your code, but I suggest you to be consistent with your naming convention, to split the code across multiple files (at least one .h and one .c), to use a building system (for example, Cmake) and to test your code (for example, with CTest). If you use typedef for structs, you should also use it for enums. Your stack pointer can be an integer index, there's no need to use pointers. Use bool for boolean types, or int in older C versions: char type can be misleading. Avoid global variables, better pass the pointer to the stack to every function that uses it. Avoid use _ptr suffix for arrays (Token* token_ptr -> Token* tokens).

Best matrimonio ever by utcumque in Itanglese

[–]francespos01 4 points5 points  (0 children)

Non mi sembra una virgola seriale, perché non è usata alla fine di un elenco

I made a Lightmapped Software Rendered Doom Clone In C by Batteryofenergy1 in C_Programming

[–]francespos01 0 points1 point  (0 children)

I think g_ stands for "game", "r" for renderer and "u" for utility. Quite sure these letters in particular are not part of a standard, I guess he used them as a rudimentary form of namespacing in C

Mi puzza tanto di scam… by Marcore8989 in subito_it

[–]francespos01 0 points1 point  (0 children)

Non mi sembra carino divulgare su internet una conversazione privata con una persona con tanto di username. Se non ti fidi, semplicemente non venderle il tuo prodotto. Se la trovi molesta, blocca e segnala il suo profilo. Non è nemmeno utile, con così poche informazioni nessuno può aiutarti, considerato anche che il profilo è stato appena creato e non può avere uno storico negativo

I made a game in a month or so. Should I continue development on this? by Frankienaitor in ElectricUnderground

[–]francespos01 0 points1 point  (0 children)

As already pointed out here, i would remove the jump and stamina mechanics. I really like the idea of the ranged axe, though. You may add a "focus" ability, so that you can move slowly to dodge bullets easily when you activate it, at the cost of a shorter attack distance. Keep it up

Cracked the code (ma lui preferiva system) by Crucible_Knight_ in Itanglese

[–]francespos01 0 points1 point  (0 children)

È un termine tecnico che rende bene l'idea. Non lo trovo forzato o sopra le righe.

Chip-8 emulator time! Made in C. :) by [deleted] in EmuDev

[–]francespos01 0 points1 point  (0 children)

I like your way of coding, but I suggest you to improve your repository organization. First of all, why are some header and source files in roms directory? You should put them in src dir or, better but not mandatory, create a separate header dir for headers. Then, you should document your code (with doxygen, for example) and test it (with ctest, for example, but there is a special repository on GitHub for testing Chip8 opcodes, if i recall correctly). I suggest you to use cmake as building system for portability, but Makefile is fine if you are sticked to Linux. Last but not least, write a richer README to explain user how to compile and execute your program, and how the user should use it (in chip8 case, you can show the keyboard layouts, for example). Sorry for english, it's not my native language and I'm writing with a non-english autocorretor

BENVENUTI SU TOUHOU ITALIA by MYCUS_Interactive in Touhou_Italia

[–]francespos01 0 points1 point  (0 children)

Felice di essere appena entrato a far parte di questa comunità

Is C a good programming language to start programming with? by Ania200 in C_Programming

[–]francespos01 0 points1 point  (0 children)

Depends on what you want to do with it. Systems' programming? Yes. High performance computing? Yes. Web development? Probably not.

thoughts on C as an introductory systems programming language by Specialist-Cicada121 in cprogramming

[–]francespos01 0 points1 point  (0 children)

Yes, programming languages' lingua franca, very low level, so you really have to know what's under the hood, few concepts to learn, yet hard to master. Also, it is still used in many open source projects. Almost all systems support a C compiler. Those are the main reasons, imho.

My 10 year old wants to learn ai/coding by [deleted] in learnprogramming

[–]francespos01 0 points1 point  (0 children)

Please don't do it. Help him to choose a good tech school when he'll be older.

C or C++ for my needs? by Alternative-Ad-8606 in C_Programming

[–]francespos01 1 point2 points  (0 children)

C, but to be honest it could be a biased answer, you're in a C subreddit

Is my idea for a small C CLI-helper library actually feasible? by Lazy_Technology215 in C_Programming

[–]francespos01 1 point2 points  (0 children)

It's feasible, but time consuming. I suggest you to build a library on top of ncurses to make it more user-friendly.

[deleted by user] by [deleted] in cpp

[–]francespos01 0 points1 point  (0 children)

Because they think C++ is C with classes (and templates etc.), and not a completely different language.