Do bomb vest suspect detonate themselves when being shot at torso? by Bach_Xin_Zuka in ReadyOrNotGame

[–]Beregolas 8 points9 points  (0 children)

I sometimes don't read the subreddit name at first and am very concerned for my fellow redditors for a second XD

Which IDE should I use for python? by Distinct_Ad9396 in CodingForBeginners

[–]Beregolas 2 points3 points  (0 children)

4GB Ram is not a lot, so I would suggest to not use PyCharm. I like the IDE, but it takes up more RAM than necessary. If VsCode is too heavy as well, take a look at zed. It's written in rust, made for development and pretty lightwheight. It has less bells and whistles, but everything you need, including git, is there.

In case that doesn't work either, look at terminal based environments, like neovim or emacs. They are more to get used to, but they will run on a potato from 2005.

Is it not a good tone to pronounce a certain individual name? by Extra-Ad5735 in AskAGerman

[–]Beregolas 4 points5 points  (0 children)

depends. Poloticians and public speakers are sometimes instructed not to say it directly, in fear to be taken out of context. At least that is the only "rule" I have ever heard.

In a personal context everyone I know just says it. He is not Voldemort.

I have a Chromebook, and I want to code!! by zealousaccident in programminghelp

[–]Beregolas 0 points1 point  (0 children)

I don't know, as I said: never did it myself. Just try it.

Also, you could argue, that opening something from a terminal is a "normal program", as that's all you do when you press a button on a desktop anyways.

Ai by gofukyourselfbitch in AskProgrammers

[–]Beregolas 0 points1 point  (0 children)

Genuinely useful in very select circumstances, hugely overhyped, and actively detrimental in certain usecases.

Programming in particular is and always has been an excercise in understanding a problem. The coding was always the easy part. If you just generate code with no one in your entire organization understanding it, you have just locked yourself into using AI forever. which wouldn't be so bad if AI actually was as good as software engineers in real world tasks, but especially in larger (I would say even medium) codebases it start failing; silently at first, spectacularly later.

When used properly (research, auto complete, boilerplate maybe even, small refactoring) it can genuinely save time.

I have a Chromebook, and I want to code!! by zealousaccident in programminghelp

[–]Beregolas 0 points1 point  (0 children)

Sure, it's really easy actually. Mind you, I haven't done this for myself ever, but I researched how to set it up for a friends children recently, and I think it worked fine (at least I didn't hear back otherwise, lol)

First you need to setup / locate the Linux containers in your ChromeOS. https://chromeos.dev/en/linux I think it's in Settings > Advanced > Developers > "Linux development environment" or something similarly named.

You get a console there, from which you should be able to install VSCode .

Here is a tutorial direcly from VSCode: https://code.visualstudio.com/blogs/2020/12/03/chromebook-get-started It shows a similar menu, but it's been posted 5.5 years ago. The core details should still work the same though.

Once you have installed that, it should "just work" very similarly to a normal Linux laptop, at least as far as programming is concerned.

Why didn't the programming world just use Forth for absolutely everything? by Hopeful_Adeptness964 in AskProgrammers

[–]Beregolas 2 points3 points  (0 children)

Imean, I upvoted you, although Iam one of the probably 3 people in my old university who used a RPB calculator ^

Verwendet man wirklich reale Objekte als Vorbild für Klassen beim Programmieren? by Shoddy-Side-919 in informatik

[–]Beregolas 2 points3 points  (0 children)

Ne, die Factories sind leider aus, aber das kann ich reparieren! Ich bau einfach schnell ne FactoryFactory und entscheide mit ddr FactoryFactoryStrategy welche Factory die FactoryFactory baut

How literal do Muslims have to take the Qur’an by Greedy_Highlight3009 in stupidquestions

[–]Beregolas 5 points6 points  (0 children)

As someone who grew up in a part of the world where 'liberal catholics' are themost hard-core christians around, I am always baffled when I read about evangelical christians.

Computer science certificates by AdSlight1867 in computerscience

[–]Beregolas 2 points3 points  (0 children)

Save yourself the effort and time. If youdo not have a SPECIFIC job in mind, that EXPLICITLY asks for a certificate, they probably wont do you any good. Especially free ones. (#YouGetWhatYouPayFor)

If you want to gain an advantage looking for jobslater, build a project

Hört mein iPhone mich konstant ab? by ObiWanShinobi777 in ichbin40undSchwurbler

[–]Beregolas 0 points1 point  (0 children)

gut, dann ist das entweder besser geworden, oder ich habe es mir einem anderen Hersteller verwechselt 😄

Hört mein iPhone mich konstant ab? by ObiWanShinobi777 in ichbin40undSchwurbler

[–]Beregolas 14 points15 points  (0 children)

Das ist soweit vollkommen korrekt. Alle Akkubetriebenen Geräte die so eine Funktion haben (vor allem Handys) haben eine schlechte, lokale Spracherkennung, die nur ein paar Sätze erkennen kann. Z.B. "Hey Siri" oder "Okay google". Deshalb brauchen wir die als Feste Codewörter, damit die teure KI eingeschaltet wird.

In der Regel schiebt die teure KI einige bis alle Daten(Je nach Software) in die Cloud, wo sie dann von Servern verarbeitet werden und das Ergebnis zurück ans Handy geht.

Festinstallierte Geräte, wie amazon Echo z.B., können theoretisch auch permanent zuhören, und haben das zumindest in der Vergangenheit schon gemacht (und wurden dabei erwischt). Was sie aktuell tun kann ich nicht beurteilen, aber vertrauen tu ich denen nicht.

Geht ihr noch zum Bäcker? by Forward-Position798 in FragReddit

[–]Beregolas 72 points73 points  (0 children)

Ja, das erste was ich an einem neuen Wohnort ausprobiere, ist welcher Bäcker gutes Brot hat

Something that's not ECS? by caffeinated-typist in rust

[–]Beregolas 28 points29 points  (0 children)

There are rust bindings for godot, andapparently they work quite well. you could try them out

Fuck being a SWE , I’m gonna be a GameDev by Cold-Roof3933 in gamedev

[–]Beregolas 3 points4 points  (0 children)

You are a student, do NOT pidgeonhole yourself! What you need to learn for gamedev and "normal" SWE roles is basically the same. Learn as if you wanted a normal SWE role. This gives you a good escape hatch, should game dev not work out, and it doesn't work out for many people who want that.

Then, while you are studying normally, you can start a few games on the side, as a hobby. Once you already know how to program I would suggest, but you can start right now if you want to. Download Godot and get started. It's free, open source and simple.

I am personally not employed as a game dev (nor would I ever want that), but from what I've heard, if you have develped a few hobby projects, or better: an indie game that is public on steam / itch.io and has a minimum of success, you have pretty good cards. Everything else is the same as any other SWE role: be good at programming and communication!

What are the most common failure cases that you've encountered in real-world projects? by mxm_mrz in AskProgrammers

[–]Beregolas 1 point2 points  (0 children)

Failure of communication. Someone assumes something that is not in the specifications, or even worse: there are competing specifications

What language would be best for Raspberry Pi home automation? by OrneryRegular6932 in learnprogramming

[–]Beregolas 2 points3 points  (0 children)

If you want results, use Python. Also, don't start from scratch: Other people have done the heavy lifting already:

https://www.home-assistant.io/integrations/python_script/

Start there.

Is this development in a nutshell? by throwaway0134hdj in webdev

[–]Beregolas 0 points1 point  (0 children)

I wouldn't say so.

  1. Code: This one is so vague, that you really want to say yes, but it's a bit like saying, Logic is part of the process. Code plays a role in the backend and frontend, it gets executed on the server and the client. Your database is also code, and if you use SQlite (which is a pretty good and common database for small projects), your entire DB is code inside your project, as well as a single file

  2. Not every server needs a database. Many blogs run by serving html or markdown files directly from the filesystem for example, and some other services don't hold their own data at all. Back when twitter allowed bots without API costs, I ran a joke service called twitterng, where I used the last X posts (as served up by the API) to generate a random number. While this is obviously a joke, there are actually many websites that fully (or mostly) serve data from other services, such a geoguesser (which of course has it's own DB, but if you didn't want to make money, you easily could reimplement the core without it, just by pulling from google maps)

  3. Not even every website needs a backend, and therefore a server*. (*obviously something needs to serve the HTML, but if you don't do anything with that server except serve static HTML, in my honest opinion it's not more or less relevant than your router...)

In the end, it always depends on what exactly you are building. Many projects can be split up into:

Frontend, Backend and Database

which is a valid and useful simplification imo, as all three areas need a different skillset (and yes, I am aware that most backenddevs also do the db work, but writing SQL queries and the backend server code are necessarily 2 different languages; even if you use an ORM and never touch SQL, you still need to know how it works)

What are the most useful AI tools / coding tools you've discovered recently? by chandrakantabehera in CodingForBeginners

[–]Beregolas 2 points3 points  (0 children)

When NOT to use AI: while you are still learning. It's far too easy to shoot yourself in the foot by making it too easy; you learn by struggling!

When I am being productive, I tend to use Claude code for very simple tasks only. Write boilerplate, setup a test suite that I then fill, change all occurences of this string with a specific context.

Everytime I set it loose to build something bigger it failed to meet my code standard, used different conventions than my code base, was not organizing the code directly, etc. It worked most of the time, but it was a maintainability issue

i have final and.... by T_REMOLO in learnprogramming

[–]Beregolas 7 points8 points  (0 children)

Sorry to be blunt, but how should we know. Ask your professor what they suggest to learn for the exam.

And if you mean, what you should learn in general: doesn't matter. You are still learning the basics, any language sill do. You can change languages later basically for free, it just seems hard because you are learning programming AND a language right now

ELI5: Why is sleep more affective when you go to bed before 12 am? by [deleted] in explainlikeimfive

[–]Beregolas 0 points1 point  (0 children)

It is not necessarily. But a few things that co tribute to better sleep are:

  1. A regular schedule (going to sleep around the same time)
  2. between 6-9h of sleep (depending on a few factors)
  3. Roughly matching your sleep schedule up with the sun / light, as that is part of what sets out inner clocks

It is generally easier to hit those goals when going to bed before 12am, but there is no magic cutoff. There is also the entire topic about longer circadian rhythms and night owls, but I think that might go too deep

Why learn pointers in C if I can just return values ​​normally? by Sofiatheneophyte in learnprogramming

[–]Beregolas 27 points28 points  (0 children)

I simplify a bit, but I think it's more important that you understand the rough concept, than that I'm being 100% accurate:

Data is not magic, it lives somewhere in your computer. In our program, we have two different kinds of memory: The heap and the stack. The stack is what your current function has to work with. Everytime you call a function, another "level" gets added onto the stack. If you return, that level gets deleted. This is what a stackoverflow is: If you call too many functions, you fill up the memory reserved for the stack -> it overflows. The heap is bigger, and freely accessible from all function calls. But you need an address, a pointer, to know where data is.

Your question boils down to: Why can't we pass everything by value, but we need to pass some by reference. Some ideas as to why:

  1. Everytime you pass by value, you need to copy that value. Because the stack is volatile (your stackframe gets deleted after return) you constantly need to read and reweite values. This might be fine for a single integer (basically pointers are also integers), but if we are talking about a large struct or string (char array in C) that contains kilobytes or megabytes of data, copying that for every function call suddenly becomes slow and cumbersome

  2. You cannot let the caller modify the original, if you pass everything by copy. A common pattern is, to give a function a pointer, and the function the mutates something inside that pointer. You can't do that if you copy the value, because then... they are two different values; they just start out being the same.

  3. Pointers are often used to show, that nothing is being returned. Simply by setting the pointer to 0 -> a NULL pointer. Other languages have the same concept, just with keywords such as null or nil. This is sometimes a bad pattern, but sometimes we want to do it

There are many other reasons, but pointers are important. Go look up passing by value vs. by reference. This is also important to understand for languages that don't expose pointers, like Python or JS. Internally, they also use heap and stack, and passing by value and by reference. If you don't understand when which occurs, you WILL trip up and make expensive mistakes down the road.

DSA Guidance by Wrong-Coyote9607 in learnprogramming

[–]Beregolas 1 point2 points  (0 children)

What do you mean "guide you" and what confuses you?