r/eli5_programming • • Aug 20 '23

Can someone explain how sockets really work ? (Network,Operating System,System Calls)

11 Upvotes

Ok, what is a socket ? I learned that is a IP adress combined with a PORT number but this information is too abstract for my taste , I want to go deeper, so what is really a socket ?

Please correct me if you see something wrong here :

Operating System is the big boss in a computer , he manages fkin everything,processess,memory,I/O devices .

Operating System provides many services to the processess

These services can be accessed only with these so called "system calls" , which are an interface between a process and a Operating System service .

sockets() is a system call which enables network communication .

I was just thinking, isn't this socket just a file created by the Operating System ? And somehow this file can receive packets from the internet ?

Because I can read and write files very easy, it's just another system call ( File Management Service) and it would make absolute sense !

And considering that the Operating System has this Process Control Block , which is a big table where it stores all the information about all processess (including Process ID) ,then I believe it should be easy to link this file to the process that created this file and voila, i can receive messages from the internet ..from a "special" file .. is it true or false ?


r/eli5_programming • • May 14 '23

ELI5 where is all this AI tech coming from

11 Upvotes

What has changed in the last 5 months that has made AI able to be integrated Into everything ?

All I know about AI is that there was chat gpt released about 4 or 5 months ago

But I hear all these industries using AI now. Are there other AI techs besides chatgpt that are used for all these things and if so why didn't they become popular before chatgpt came out if they already existed ?

Untill chatgpt came out i didn't hear anything about AI. Now it seems like it's a race to implement it into everything.

I recently read an article about a Instagram persona using AI to create a virtual girlfriend and charge money ....how would you even go about doing this, so confused . Is this from chatgpt ? How do you even use their platform to create an AI girlfriend. I don't think chatgpt will just give you all their " coding ".


r/eli5_programming • • Sep 05 '21

What's a design document?

11 Upvotes

In a meeting during my internship, the mentor said, "We need to develop a design document". And, I had no idea what a design document is. And I feel foolish because google couldn't solve my doubts. So I am going to resort to reddit.


r/eli5_programming • • Jun 08 '24

Why are circuit boards so pretty?

10 Upvotes

I understand they have to be intricate, sure, but why do they have little bulbs on the end and go in branches like a tree, etc? Why not just do a bunch of lines with no pretty little dots at the end?

I’m not a tech person so this may be an impossible question.


r/eli5_programming • • Jan 08 '22

ELI 5 OOP

10 Upvotes

I'm taking Information Systems in college and in our Java class we started to learn about OOP. The issue is I can't seem to get my head around objects and wondering if someone could explain it maybe better as I'm pretty lost.


r/eli5_programming • • Sep 24 '20

Docker, snaps and kubernetes, can i have a better explanation?

10 Upvotes

Hi guys, days ago i asked the differences between linux snaps and docker. Here an extract of the answer:

(Eli5) snap is software that runs on Linux —Docker runs Linux.

Docker containers “contain” an entire virtual computer.

When you create a docker container, you specify the OS you want (Ubuntu, RedHat, Windows, etc), then you install software on it (I.e. snap).

Are you sure that docker runs a virtual machine? I mean: yes probably it could, but to run i program i didn't set up any os, and nothing asked me to do it. Now my experience clashes with the theory so i'm here asking again about the differences between snaps and docker... And kubernetes, that as far as i know it's a way to make containers too.

Thanks guys. I'll later try to format text and add user link with my pc.


r/eli5_programming • • Nov 03 '17

ELI5: Connecting to "Public" Wifi

10 Upvotes

How does using the public wifi work...?

Real question is: if I connect to my workplace public wifi on my phone for personal web browsing, social media, messaging, etc.- what can my IT people see?

Can they see what mobile device is using it? Can they see I'm browsing FB? Can they see the specific sites I'm visiting? Messages I'm sending?


r/eli5_programming • • Nov 02 '17

ELI5: Javascript arrow function notation?

10 Upvotes

And what are the advantages of arrow notation vs standard?


r/eli5_programming • • Mar 10 '24

Source code

9 Upvotes

I enjoy watching development documentaries on YouTube for games, but there is one thing I'm not really clear on. When games are pressed onto disc they are obviously lines of code to tell the processors what to do. Why do developers have such a hard time remaking games when the source code is lost? I know things can be "reverse engineered" but I'm not really clear on how that works either.


r/eli5_programming • • Sep 12 '23

ELI5: REST vs gRPC

9 Upvotes

I am a product manager who is just technical enough to do salesforce development, and understand other technical concepts enough to be able to effectively lead my product team.

I understand what a rest api does, how it's used, and can even write my own endpoints (for salesforce only!). But when my engineers talk about grpc, I am totally lost.

Help me understand what it is, how its different, and in what situations you would use grpc versus rest or soap.

Thanks in advance!


r/eli5_programming • • May 09 '23

Question ELI5 why DOOM can run on almost anything but Roller Coaster Tycoon can't?

9 Upvotes

I just saw a post on r/ProgrammerHumor about RCT not being able to run on modern devices even though it was written in Assembly, and that confused me.

By my understanding, Assembly is the lowest language of computers. So why can't Roller Coaster Tycoon run on modern machines but DOOM can?

If this isn't the right sub for this question, please let me know and I'll take it down.

Sorry if this is a dumb question.


r/eli5_programming • • Sep 17 '20

ELI5_Programming - What is an API?

9 Upvotes

Hello,

I can't seem to wrap my mind around what API's are and how they work. Most of my google searches just haven't helped the concept 'click' to me yet. Thanks in advance!


r/eli5_programming • • Aug 14 '20

I don't understand HTML, css and JavaScript. How do they work together?

9 Upvotes

The way I understand this is that HTML is the skeleton which gives the general shape and structure, css is the skin which gives the detailed look and JavaScript is the muscle along with the brain which controls everything and makes stuff work. Is this the general idea or am I completely wrong?


r/eli5_programming • • Mar 25 '20

Question ELI5: How do plagiarism checkers efficiently search against the whole of wikipedia?

9 Upvotes

r/eli5_programming • • May 14 '19

Eli5: why do programmers dump on PHP so much?

9 Upvotes

If you go on r/programmerhumor, it seems like the most common punchline is that PHP is awful and no one should use it. Why is that such a commonly held belief? My first job was programming in PHP, which I did for two years, and I didn’t have any problems with it. The language is a little clunkier-looking and it doesn’t have many of the conveniences that languages like Python have (no semicolons, etc), but its way simpler than languages like Java or C#. And I’ve never had any issues with it performance wise, though if this goes into “it took 30 microseconds to do this task when it would have taken 5 microseconds in x language” territory I likely didn’t notice. Is there more to this joke than just making PHP the designated punching bag?


r/eli5_programming • • Apr 29 '19

What is the point of the div element in HTML?

9 Upvotes

It just seems so generic. I know it’s a general purpose container but is it used for any special occasions?


r/eli5_programming • • May 23 '24

Explanation ELI5: I was a computer wiz in the 90s as a kid (pre-Windows 95, until 2000); now I'm a standard ignorant consumer; what have I missed? (But without using confusing acronyms/lingo)?

8 Upvotes

I (36/m) ran every PC game from the boot function.

I built a computer with my older brother when I was 7.

Now when I research/ask questions online about how to do technical solutions on my laptop/phone, I can't even keep up because I'm having to look up the definition, of a definition, of a definition, just to get thru the first couple sentences.

So... What have I missed in the last 25 years?


r/eli5_programming • • Dec 28 '23

Explain What Is / What Makes An AI Chip

8 Upvotes

I’ve got some fundamental knowledge of computer structures. I’ve even designed basic computers (processors, memory, switch, bus, more). But what exactly is an AI chip? What does it bring to the table that a CPU doesn’t? What are Nvidia and Intel and others rushing into production? Isn’t AI just some revolutionary programming? Does it need a new engine?


r/eli5_programming • • Apr 12 '23

Question ELI5: How do banks store account balances?

8 Upvotes

Reduced to its simplest form, an obvious solution would be a central database with every account and their respective balance (probably in integers for the pence/cents). But that seems like a bad idea, both from the security and scalability perspective.

As most banks allow international accounts, it's equally impossible for them to use a "cdn"-esque approach, as that's just money-multiplication glitches waiting to be discovered.

I'm talking about fiat currency banks, not crypto (as I have a vague idea how their ledgers work).

I appreciate that every bank might do this differently, but I'm just curious how they save these data.


r/eli5_programming • • Oct 10 '22

Meta ELI5: What new computer features are in development?

8 Upvotes

My background is as a 3d artist and intermediate programmer on desktop systems with an interest in vintage technologies.

I'm aware of real-time raytracing and quantum computing as those get the most public attention, but what technologies are being worked on that you think we'll see in future products, or that will flop? What are industries focusing their efforts on to push computing forward?


r/eli5_programming • • Jun 23 '22

How does a process like a Python app make a system call like open a file? Who checks if this is allowed?

8 Upvotes

r/eli5_programming • • May 23 '22

Question Developers of Reddit, explain like I'm 5 : what are the SOLID principles?

8 Upvotes

r/eli5_programming • • Apr 26 '22

ELI5 - How does branch management in Git work?

8 Upvotes

r/eli5_programming • • Feb 22 '22

Question Can someone explain encapsulation and getters and setters with an example?

8 Upvotes

So I learned about getters and setters and I know it’s a way of protecting sensitive information in a class. And you cannot access that class directly, you have to do it through the getter and setter.

But what I don’t understand is, how is this any better than directly changing the class itself, to my understanding, you have added another layer before you can get to that value. But since you can use the getter and setter to read or change it, is it not the exact same thing as if you were directly accessing the value?

I think I need a better example of how this layer protects the actual value If anyone has one?