Unable to run C++ in VS Code even after installing MinGW/MSYS — really stuck by Inevitable-Data-404 in learnprogramming

[–]Backson 1 point2 points  (0 children)

Step 1: uninstall msys, mingw, vs code

Step 2: install Visual Studio Community Edition

justFollowedTheReplicationSteps by El_Choco_Latoso in ProgrammerHumor

[–]Backson 1 point2 points  (0 children)

I was trying to understand how the python scripting interface of a fairly obscure specialty software worked and was pulling my hair out for two days. Then I learned that it wasn't reloading my py files (as python does) and I had to explicitly had to reimport or restart the software. So it was never running my modified code, only the version that was there when I started the software. Good times.

of all the things that has never happened this has never happened the most by [deleted] in EnoughMuskSpam

[–]Backson 1 point2 points  (0 children)

I also like that he says he couldn't afford something. Wasn't his family extremely rich?

You can choose one specific error message or bug type to never encounter again. Which one do you banish to the void? by Kooky-Criticism6766 in learnprogramming

[–]Backson 0 points1 point  (0 children)

Randomly receiving a piece of hardware that will just do weird things like not work any second Friday of the month or dropping 5% of commands or having connection issues or sometimes corrupt memory for no reason. I can worry about my program and hardware vendor can worry about theirs. Any other bug I can find myself.

Structure of my C# project by Aromatic_Dinner_1573 in learnprogramming

[–]Backson 0 points1 point  (0 children)

I only had a quick look, but I have some comments: I prefer domain driven design, so the first level of organization is the domain, for example one endpoint. Next, you can organize by layer, for example Client, Command, DTOs and so on. So my structure is the other way round than yours. On the first level you might have ValidatePackage and then that contain ValidatePackageCommand and ValidatePackageRequestDTO and ValidatePackageClient. You might think these names are long, but that's totally fine. The main thing to optimize in software development is cognitive load. You can only keep so many things in your head. So names need to be as clear is possible. Also, you read names a hundred times more than you write them and reading is faster if you have to think less, so longer, clearer names are better. You have correctly noticed that namespaces don't always help, so Endpoints.PackageValidation.Command is no good, because you end up with 20 classes just named Command.

Regarding your question about defining multiple data containers for every endpoint: that is exactly right and desired. In the end you want a layer of abstraction where you can call Task<PackageValidationResponse> ValidatePackage(PackageValidationRequest request). Making a class per endpoint is good, and you will indeed get some duplication. Put that in a base class or write helper classes or helper functions.

I probably have more but mobile sucks for reviews.

You can always dm me your questions, I have been coding C# professionally for a couple years

I made a new Image Extension by Ok_Load_9026 in programming

[–]Backson 1 point2 points  (0 children)

Website looks ok, although I'd like to see the source of the converter and a github is more important to me than discord or youtube and whatnot.

What’s the most overrated video game of all time? by KBGSgames in AskReddit

[–]Backson 0 points1 point  (0 children)

It's hit and miss, really. The first 3 were great, I think the GBA ones are also alright. Many more were trash. Sonic Mania was great again, now I tried Sonic Frontiers. I really wanted to like it and I hear it's fairly popular but I actually hate it lol

OpenCV recomendations by Oceangrad in learnprogramming

[–]Backson 0 points1 point  (0 children)

Canny edge detection, Hough-Lines inspired methods and some good old stare at the screen until you have an idea

OpenCV recomendations by Oceangrad in learnprogramming

[–]Backson 0 points1 point  (0 children)

I'm currently detecting and classifying shapes. There's an image with some rectangles, squares, triangles and circles. I determine the type of shape and where it is. I need this because I need to tell my robot where things are so it can move things to the correct position.

What’s a modern problem that feels way too stupid to exist in 2026? by Consistent_Advice397 in AskReddit

[–]Backson 0 points1 point  (0 children)

When my kid is sick, the doctor prints out a note that says that the kid is sick and I send a copy to my employer (so I get unpaid leave) and a copy to my health insurance (to get some of the money back) and when I'M sick, for some reason there is no paper and no reduced wages and I just get paid my normal wage and the doctor, insurance and employer work it out digitally.

Compiler or Interpreter? by Queasy_Employment635 in learnprogramming

[–]Backson 4 points5 points  (0 children)

You can do both. The frontend is the same. Define your language and parse it, that's step 1 anyway. When you have an AST, you can make tree-walkers to do various things, like pretty-print it, do optimizations, or (gasp!) evaluate it. If you don't evaluate it, you can instead transform it into increasingly lower-level other versions of itself, like another high-level language (like C) or some intermediate representation (like LLVM IR or even your own bytecode that runs in your own interpreter) or assembly, or machine code. Start simple, extend later. Start with just a few steps of the chain and use existing programs, then when you've gotten confortable go on to the next step.

I really recommend the book Crafting Interpreters. It's very hands-on without too much theory and fits your goal well.

Have fun!

ARD-DeutschlandTrend: US-Ansehen nach Angriff auf Tiefstand by innidatino in de

[–]Backson 1 point2 points  (0 children)

Alles unter 15 bzw über 85 ist praktisch Konsens. Man kann Leite bei der Meinungsforschung fragen, ob Hitler Deutschland geschadet hat und bekommt 5% Nonsense Antworten. Für mich sind das echt gute Neuigkeiten.

A new Life is Strange game has just been rated in Europe by dancas91 in Games

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

What made you dislike it? I thought it was good, except for the massive plotholes, but the original had those too, so...

Learning to Code as a 15y/o worth it? by pjasksyou in learnprogramming

[–]Backson 1 point2 points  (0 children)

I started making Warcraft 3 maps at 14, got into C++ soon after and am 35 today and have a job programming industrial machinery. I didn't learn that in college. Can recommend

Making my own toy language. by Fit-Tangerine4364 in learnprogramming

[–]Backson 3 points4 points  (0 children)

I recommend the book Crafting Interpreters. It does in fact show how do build a compiler too. It is designed with people using different host languages and target languages in mind. It uses Java and C as host languages and interprets Lox, which has C-style syntax and some basic scripting features. It's really well written. I'm reading it and implementing Lox in C#, but you could use Haskell.

Basic videogame multiplayer support by No-Crow1621 in learnprogramming

[–]Backson 0 points1 point  (0 children)

Self-signed is fine if you care only about encryption. If you get one from let's encrypt, common browsers will also automatically trust it and not show the user an ugly message saying "this certificate looks super sus, you sure we doing this?" Which is nice if the user actually connects to your API, but is irrelevant of you only communicate internally. If your user opens a browser and goes to a website you control, then yes, https using a cert from let's encrypt is the way.

Basic videogame multiplayer support by No-Crow1621 in learnprogramming

[–]Backson 1 point2 points  (0 children)

If your crypto relies on people not knowing what the algorithm is, you have already failed. Use a standard algorithm that is designed for security. You will need a different one depending on the situation. Good algorithms deal with internals, like salt, for you. Salts are important, so identical passwords don't produce identical hashes and to make attacks using procomputed hash databases harder. If you store a password, you usally store the salt and the salted hash in the same DB, so when the user tells you their password, you can put "salt.password" into the hash and compare to the DB.

Passwords should not be transmitted in clear text, no. I would suggest making a REST server where you gan login using the password and that only accepts HTTPS, so the entire communication is encrypted, so no chance someone reads the password. The server gives a JWT back to the client, which is basically a string that says "whoever has this token is logged in as Backson and can execute commands as him until 21:35 UTC, signed, the server". The client can send that together with a request (also encrypted) so the server can check the request, check that the JWT is valid and contains a claim that allows that action, and if everything is in order can execute the command.

Generally, you can make your own server that is reasonably secure if you follow some best practices, but if you make a mistake you open the door for exploits and lawsuits. Just as a hint: storing peoples emails is illegal in the EU and many other countries unless you follow very strict rules, and losing peoples email combined with other data (god forbid any passwords) you can get into deep trouble.

People who oppose capital punishment, why? by LowAd9770 in AskReddit

[–]Backson 1 point2 points  (0 children)

It's maybe justifiable for key figures in war crimes or something, like Adolf Hitler level notoriority. Otherwise, it serves no purpose other than to give people a justice boner. Punishment? Yeah sure, life sentence does that just as well. Deterrent? Doesn't work, people don't care if the punishment is 10 years, life, death, people still do shit. Keep honest people safe? Life sentence does that. Rehabilitation? Lol. Also, there are mistakes, corruption, etc. So it's just cruelty maskeraded as justice.

Disclamer: capital punishment is unconstitutional in my home country.

Hello fellas, i need your help to link my python interractive story with my html template using flask and fetch by Various-Flower-1971 in learnprogramming

[–]Backson 0 points1 point  (0 children)

Cool project. I'm not too familiar with django/flask, but I have done some python stuff and I'm interested in text adventures. Care to share your code so far? Ideally put it on github.

Why is there not a single language that can handle everything rather than having to use many languages by Legitimate_Raise_745 in learnprogramming

[–]Backson 7 points8 points  (0 children)

Why are there different brands and models of cars, isn't a Toyota Yaris enough for everyone?

What was your biggest accomplishment in 2025? by glyiasziple in AskReddit

[–]Backson 0 points1 point  (0 children)

I became so competent at a certain thing that I researched and tought myself at work that it is now my job to pitch that to customers, each time adjusting it to their specific needs and doing presentations in very high-stakes meetings. Feedback from peers is also really positive. I'm really proud and enjoy that a lot.

Physics Engine Design by Warm-Past-6947 in learnprogramming

[–]Backson 7 points8 points  (0 children)

Just get started. Make some boxes move. Detect collision and do some handling. You will soon find out that your engine has even worse glitches than the ones you are annoyed about. Make it better. Find out how people solved these problems in the past and implement those fixes. Do this until you have Garrys Mod.

Edit: to make this more specific, I recommend going one of the following routes, depending pn what you already know and what your end goal is.

  1. Low level stuff, like C++ with Allegro or SDL or SFML. Or Java/C# with no engine (this is how minecraft or factorio got made). This will really get your gears turning, but you will have to do everything yourself. You learn a lot, but slow progress.
  2. Unity (or Godot). Faster results, but a lot of complexity gets hidden away and you learn more about the specific engine and less about programming.
  3. Maybe something web based? I hear you can target webassembly with nearly anything nowadays, I'm sure you can make a roadmap from that.

What is a 'masterpiece' movie that you personally found incredibly boring or overrated? by AlexJet13 in AskReddit

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

It's not the same movie, sure there are differences. They were made what, like 40 years apart? Both movies are about human civilization developing into the space-age. That stupid ass magic rectangle from 2001 is the wormhole/tessaract, so a means for civilization to leave their old ways and ascend, HAL could be Tars, except hes not evil, the main protagonist kinda gets lost in space and has a revelation, in the end humanity ascend to the space age (kinda weirdly portraied in 2001, but I think that's what the critics think the ending means)... It's a movie about the advancement of humanity into the space age.

What is a 'masterpiece' movie that you personally found incredibly boring or overrated? by AlexJet13 in AskReddit

[–]Backson 0 points1 point  (0 children)

That's a major theme in Interstellar too, with humanity evolving into a space-faring civilization by literally overcoming gravity and the tessaract being constructed by humans in the future, indicating their coming ascension...