r/eli5_programming • • Feb 04 '22

How does antivirus software scan files?

8 Upvotes

If there was somthing malicious in there how would it recognise it?


r/eli5_programming • • Sep 22 '21

ELI5

8 Upvotes

Hey guys, what's a webhook?


r/eli5_programming • • Jun 15 '20

Question ELI5 If every software is written in code, why is it so hard to read the code from an executable?

8 Upvotes

A good friend of mine said that you would need to be very very good in machine language and even then it would be hard to read an .exe file. Then we got distracted in other questions and conversations...

I thought it would be a good question to see an ELI5 explanation :)

Is it a problem of encryption? Why it's so hard to read the code from an exe file?

Thanks in advance :D


r/eli5_programming • • Apr 25 '18

Meta [Meta] Growing the Community

8 Upvotes

This is a really cool Subreddit, but I noticed it isn't very active. I was wondering if we might consider doing a few things to get it going a bit more.

  • Add filters and flair for explanations versus questions

  • Add User flair for common languages or concepts you like to answer about

  • A little theme goes a long way!

  • Maybe a monthly "best of" thread?

Any other ideas?


r/eli5_programming • • Feb 27 '18

ELI5: Functions

8 Upvotes

Hello everyone!

"What is a function?", I get this question asked quite a lot. Figured some of the readers on this subreddit might want a simple answer and, since there's no other thread explaining it I will give it a shot.

A function is like a cook at a restaurant. What does the cook do? Well, he takes in some ingredients like sugar, dough, vegetables, meat, spices etc. and, through a specific process he creates a type of food like a cake.

In computer science the ingredients are the input while the cake is the output and the process would be the code inside the function.

Right on, let's give a real life example in C++ (don't worry, you can apply this in most other languages). Let's say we have this code:

float avg1 = (x + y + z) / 3;
avg1 = roundf(avg1);
cout << avg1 << endl;
float avg2 = (a + b + c) / 3;
avg2 = roundf(avg2);
cout << avg2 << endl;

As you can see, we have the average being calculated on the first line of code, then we round this average then simply print it on the screen on the third line. Then, on the fourth line we do much of the same thing, calculate an average (now with different variables: a, b and c instead of x, y and z) and print it on the screen.

Since the only difference between the first three lines and the last three lines are those variables that we calculate the average of we can define a simple function and copy-paste the first two lines in it:

int calculateAverage() {
    int avg1 = (x + y + z) / 3;
    avg1 = roundf(avg1);
}

I named it "calculateAverage". Now, we have to consider what are the ingredients. Since the only difference between the first two sections of code from up top are x, y, z and a, b, c we can consider them the ingredients like so:

int calculateAverage(int x1, int x2, int x3) {
    int avg1 = (x1 + x2 + x3) / 3;
    avg1 = roundf(avg1);
}

As you can see, we've added in the signature three variables (which they can have any name) and used them in place of our x, y, z and a, b, c respectively.

Right now we have the ingredients (our variables x1, x2 and x3) and the process (the code itself). The last thing that is missing is the cake which we can specifiy using the return statement like so:

int calculateAverage(int x1, int x2, int x3) {
    int avg1 = (x1 + x2 + x3) / 3;
    avg1 = roundf(avg1);
    return avg1;
}

note: the type of the return is specified as the first word in the signature (before the name) And now, our first section of code can become something like this:

cout << calculateAverage(x, y, z) << endl;
cout << calculateAverage(a, b, c) << endl;

As you can see we have only 2 lines of code instead of 6 and a function that can be reused later. Functions are a very good way for us, programmers, to not repeat ourselves too much.

Hope this has helped you understand a bit about functions. Here are some Youtube videos that I created that explain this concept in more detail:


r/eli5_programming • • Oct 24 '17

Database? Table? Form?

8 Upvotes

Hello!

I'm so new and I'm not even sure how to explain what information I'm looking for!

I want to create a website/database/search engine... thing. I'm very invested in missing persons/unidentified remains and I want to improve upon the way the information is stored about each person so that it is much easier to navigate, search and compare. Do I do this through a database creator? I don't quite understand if I can create a website you can navigate through with the data in the database.

Thanks so much!!


r/eli5_programming • • Oct 23 '17

Monads

8 Upvotes

.


r/eli5_programming • • Sep 21 '24

Question ELI5 - What is buffer overflow?

7 Upvotes

What is buffer overflow guys?


r/eli5_programming • • Nov 28 '22

Meta ELI5: How has massively understaffed twitter defied expectations of basically everyone on the planet including legit industry experts by not (yet?) collapsing under the weight of its own unmaintained infrastructure?

7 Upvotes

r/eli5_programming • • Nov 11 '22

Meta ELI5: If every engineer working on twitter right now stood up and left...

7 Upvotes

Barring security attacks, why wouldn't it just go on functioning? What is necessary at any given moment for something like this to keep working? Shouldn't it just hum right along?


r/eli5_programming • • Oct 26 '22

Question ELI5: Embedded Software Engineering vs Software Engineering. Also Devops

7 Upvotes

I understand embedded means the software is in a specific device vs an application on an OS. But that’s as far as I understand.

And DevOps? Wtf is it?


r/eli5_programming • • Jun 06 '22

ELI5: What are environment variables on Windows ?

7 Upvotes

As a new CS Student, I am constantly running into environment variables all over the place when learning new languages and installing tons of different things. I could never get a clear explanation to what these environment variables are, except that I need to change them somehow.


r/eli5_programming • • Apr 12 '22

Question Why cant an application be de-compiled.

7 Upvotes

I understand it is not possible to get source code from an application after it has been compiled but I dont understand why. I also understand why a programmer would not want people to be able to have their source code I less they choose to make it open source.

I apologize for this very stupid question and it's probably very obvious and simple but I'm not a programmer, I attempted to take coding classes but it is just too tedious for me and I have to be very interested/passionate about subjects in order to learn them.


r/eli5_programming • • Oct 28 '19

How do you know if a file has a virus?

7 Upvotes

I'm not asking how to use an antivirus, I'm asking how do antiviruses know if a file is a virus? Like how can you tell if one executable file is dangerous while others cant?

Thanks in advance!


r/eli5_programming • • Mar 30 '19

NoSQL

7 Upvotes

r/eli5_programming • • Apr 23 '18

How does written code get transformed into video games?

7 Upvotes

I'm in an introductory CS course at my university where we are learning object oriented programming in Java. I find it very interesting, but I'm wondering how all these classes and methods that I write in my IDE get transmitted into a game like Skyrim(for example), where there are various NPC interactions and action in play. Can anyone explain?


r/eli5_programming • • Feb 06 '18

ELI5: What's a polyfill?

7 Upvotes

I've been hearing they make websites slow and that they're used a lot but I don't know what they do and I see the word getting thrown around a bunch.


r/eli5_programming • • Oct 07 '26

Question What actually is API?

6 Upvotes

The moment I think I get it, another definition of it comes in. I was learning Flask APIs used with GET PUT PATCH DELETE . But then I started with JS , it has DOM APIs . And then API is also used when people say companies like ChatGPT , Higgsfield etc provide their APIs.


r/eli5_programming • • Sep 12 '26

Hey, quick question. If you're fresh out of college with an IT degree, if you get hired for a software engineer role (full stack or backend developer) do companies train you? Will they help you understand what their product is about, or how to use the company codebase and work with it? Thank you.

6 Upvotes

Can you let me know this? Thank you.


r/eli5_programming • • Oct 03 '23

ELI5 How one would recreate these archaic Flash websites today?

6 Upvotes

I'm fairly new to web design and development so don't flame me.

Could someone explain to me how they would approach creating a website like these?

example 1

https://web.archive.org/web/20040630024455/http://xerogravity.net/v3/

example 2

https://web.archive.org/web/20041109015648/http:/www.fantasy-interactive.com/conspiracygames/movie.html

as flashy as the web design on these websites is, it feels almost archaic to make something like this?

What javascript fundamentals or advanced CSS mechanics would i need to learn? Are there other languages that would make this more achievable?

Again, im sorry im so uninformed! I appreciate any direction and help!


r/eli5_programming • • Apr 15 '23

Question ELI5 what the logistics behind those OF bots are NSFW

6 Upvotes

I hope this post is allowed here. I don't know that much about programming but I thought it would fit the theme of your sub. I'm sorry if I'm wrong and if I am it would be nice if you'd directed me to a more fitting sub. Anyway:

So. I'm a woman. I have no interest in porn and the idea of paying for said porn I have zero interest in is absurd to me. Nevertheless I get several of those OnlyFans accounts who follow me. Now, I understand the marketing technique behind this and I understand that those accounts are most likely bots. But why do they follow me? I guess there must be some kind of list with user names on them and with the help of a bot they just follow all of them at once.

Where would they get that list? Why am I on it? Did you also experience this? Is my theory completely wrong?

In short: I want to know the logistics. Every step that comes after creating that fake account to I guess automatically following so many users.

Thanks in advance:)


r/eli5_programming • • Feb 17 '23

Question What the heck is exactly a Monad?

6 Upvotes

I've read many definitions and I still do not grasp it.


r/eli5_programming • • Feb 17 '23

Question What is a REST API? How is it different from SOAP?

6 Upvotes

r/eli5_programming • • Feb 09 '23

Question ELI5 what are AI neural networks?

6 Upvotes