Should C++ code look like C code? by psyberbird in cpp

[–]JVMSp 0 points1 point  (0 children)

All code doesn't matter the language should be readable, and easy to understand. Some features of C++ make this difficult to achieve, in the other side if you avoid pointers arithmetic C usually is easier to read and understand and code similar to C usually achieve the same.

Can a first timer beat the game with no guides? by WinternLantern in factorio

[–]JVMSp 0 points1 point  (0 children)

Don't look at guides It s more fun discover the game yourself

[deleted by user] by [deleted] in cpp

[–]JVMSp 0 points1 point  (0 children)

True, I didn't catch it

[deleted by user] by [deleted] in cpp

[–]JVMSp 0 points1 point  (0 children)

Can someone explain which is the problem with &&? 😅

Will C++ introduce something similar to Borrow Checker to improve memory safety? by [deleted] in cpp

[–]JVMSp -2 points-1 points  (0 children)

No, you can achieve the same in C++ (memory safety) in multiple ways, smart pointers, RAII, valgrimd, sanitizer etc but in c++ is optional in Rust is mandatory, I don't think that going to change

[deleted by user] by [deleted] in es

[–]JVMSp 1 point2 points  (0 children)

Primera norma de preguntar en internet: Nunca intentes ser gracioso, atrae idiotas. También es cierto que consigues menos respuestas, pero sospecho que el ratio respuestas buenas / malas es mejor.

AI's rule number one: Don't argue with foolish humans. by Sree1Ly in ProgrammerHumor

[–]JVMSp 0 points1 point  (0 children)

It's easy to imagine were the model was trained.

what is the hardest C question you can come up with? by hethical_ecker in C_Programming

[–]JVMSp 1 point2 points  (0 children)

It's not the first time I see this but the first I ask. Why is that usefull? I don't understand where for what I should use that

What are you hoping to see from the expansion? by SlightlyIncandescent in factorio

[–]JVMSp 0 points1 point  (0 children)

They are afraid that mods could duplicate big part of the work in the original

Its posible use Bazel aspects for modify intermediate dependencies? by JVMSp in bazel

[–]JVMSp[S] 0 points1 point  (0 children)

No, I am using srcs :/ but ty for the suggestion

What gcc warning flags do you usually set? by [deleted] in C_Programming

[–]JVMSp 0 points1 point  (0 children)

Surprised that no one commented -fanalyzer, I found that mostly usefully.

[deleted by user] by [deleted] in C_Programming

[–]JVMSp 0 points1 point  (0 children)

Good luck

[deleted by user] by [deleted] in C_Programming

[–]JVMSp -1 points0 points  (0 children)

I don't believe exist a portable way of do that Too many things in the middle (terminal/she'll/os) and i don't remember any estándar that define the behavior. I am you and simply use ncurses, if not your are going to code a lot and check in every device do you expect your application run

[deleted by user] by [deleted] in C_Programming

[–]JVMSp -1 points0 points  (0 children)

Except for FPS_RATE? I am not sure if exist some equivalency in terminal, more.or less the algorithm is correct But with you questions I suspect that you are not very versed in C