r/AskComputerScience • • Feb 21 '21

I think I know what an API is, but I don't quite get what an API isn't

40 Upvotes

I let most of what I learned in college sink deep into my brain through neglect, so I'm currently stuck re-teaching myself what an API is. My general takeaway is that it's something that lets you communicate information between different pieces software. Even though I know what it does, I can't wrap my head around what an API actually is, as in, what an API actually looks like.

Is it a method you write into a program? Is it something built into an IDE? Is it a separate program entirely? Is the connection between Java classes in the same project an API? Is it an API that lets me send data between a Java project and a MySQL database? At what point are two things different/ distant enough that they require an API? I have such a vague idea of what an API is that it could be nearly anything at this point, and explanations online haven't been much help in clarifying this.

I feel dumb asking something this important after all this time, but I have to acknowledge that it was this same pride that got me into this situation in the first place, so I reap what I sow.


r/AskComputerScience • • Feb 20 '21

How do I transfer a file to a computer with no USB or Internet?

40 Upvotes

Greetings,

I am teaching computer science at a school that has extremely old computers. They don't have internet or even a USB port. They have floppy but not in working condition.

I'm teaching them C language (part of their course). IDEs like Dev-c++ or Code locks don't work at all so I'm trying to get just the compiler and a makefile on the machine so the students can practice C when my volunteer work ends here.

Any suggestions?

Edit: People have asked me for a picture. Here it is ... (https://ibb.co/X8Cyd6K)


r/AskComputerScience • • Feb 03 '21

How long do you spend coding each day in work?

40 Upvotes

I saw a TikTok the other day and a girl that works for Microsoft and she had on it that during any one day she will probably code for no more than 1 hour, I thought this was very strange as I am expected to be coding for the full 8 hours each day, minus an hour or 2 every 2 days for meetings.

Thought I'd set up a poll to see how long other people are spending each day coding

802 votes, Feb 06 '21
197 < 1 Hour
234 1 - 3 Hours
214 3 - 5 Hours
73 5 - 6 Hours
84 > 6 Hours

r/AskComputerScience • • Nov 24 '20

What maths are the most useful for learning CS?

40 Upvotes

I’m going to be doing a CS minor in college and will probably be making personal projects to build up my portfolio. As I’m self learning, which math classes are actually beneficial to my learning?

I’m sure not every single math class that a CS major would take is useful. There are most likely certain math topics that aid in problem solving much more than others as I’ve heard classes like linear algebra and discrete math being a good help. Can you guys suggest classes like those that I should learn online that could potentially help?


r/AskComputerScience • • Aug 21 '20

What is it about NAND gates that makes them the logic gate for SSD storage?

40 Upvotes

Is it performance, cost, something unique to just these types of gates? Is it technically possible to make storage out of other types of logic gates?


r/AskComputerScience • • Aug 19 '20

Follow up book to CODE by Charles Petzold?

40 Upvotes

Hi, I just finished CODE by Charles Petzold and I absolutely loved it. I occasionally had a hard time getting through some chapters, but I think it had more to do with me not being a native English speaker and some of the lingo just being unfamiliar. What I really liked about this book, was that it was meant to just be read. You don't need your computer next to you and follow along some code like in the regular "Learn Python Data Science" (or the like) books. I was able to read it on my commute to work etc.

So back to my question: Are there any other books on the topics of Comp Sci that are meant to just be read and more so used to understand the concept of a topic rather than being a tutorial? Or a book on the different concepts of Comp Sci in general that would make a nice follow up to CODE?


r/AskComputerScience • • Mar 14 '20

What tools/technologies did you discover that revolutionised your workflow?

40 Upvotes

Whether it be learning to use Git, or particular plug-in for an IDE you use, I'd like to hear about the tools that people are using.


r/AskComputerScience • • Nov 25 '18

Which interesting chanels about programming on the youtube you know?

40 Upvotes

r/AskComputerScience • • Aug 22 '26

Hats-off to the Engineers who had coded without AI

39 Upvotes

I am a Btech final year student so there is a project called astra it is basically a music player, so now it only works with local, jellyfin but i want to stream from GDrive, so i thought i can fork and complete this project but when i open the files in my local i thought "what the fuck is this" i mean there are so many files, so many lines of code. I know only "python, ts, js, go, cpp" but when i saw the project i thought i am just a little kid in the world of great engineers and i am just a drop in an ocean, so hats off to you all who are building amazing softwares and giving them for free. So can i get any tips or suggestions from you guys if possible, Thank you!!


r/AskComputerScience • • Jan 18 '21

Can we make a new, seperate Internet? If so, how can we switch between current internet and new one?

39 Upvotes

r/AskComputerScience • • Jan 04 '21

I am full-stack software engineer and I am looking to get into robotics as a career. How screwed am I?

39 Upvotes

I've basically maxed out my abilities as a software engineer. Meaning I can build just about anything from scratch and do a decent job at it. And before you go off on me saying I don't know shit or nowhere maxed out my skill set, you are right. What I am saying is I am more so burnt out that I don't feel like improving my skills as a software dev anymore even though I can perform at a high level.

Robotics has always interested me especially because I believe it is an integral part of the future. I would love to get involved and use my skills as a software engineer to jumpstart as a robotics engineer. Is this even possible without going back to school? Where do I start? Any advice is much appreciated. I am so burnt out by my day job I can barely function. I need a new fascinating challenge.

Thank you!


r/AskComputerScience • • Aug 31 '20

What exactly is a data structure? Can someone put into like layman’s terms please?

39 Upvotes

r/AskComputerScience • • Jul 30 '20

Do GPUs have different system architecture (instruction sets) like CPUs?

39 Upvotes

I am familiar with different instruction sets on CPU like arm, x86 and PowerPC. But what about GPUs? Are they all the same? Are there cases in which I have to recompile my code for specific GPUs?


r/AskComputerScience • • May 19 '20

As a developer, what kind of "daily hacks" do you make use of to make your life/workflow better?

39 Upvotes

^


r/AskComputerScience • • Feb 22 '20

Can one code in binary?

39 Upvotes

Can you code using ONLY 0 and 1's. I'm not talking about dificulty or efficiency, but rather the possibility, like making a "Hello World" program in binary.


r/AskComputerScience • • Nov 27 '19

Ever Thought You Could Learn The Sorting Algorithms Through A Card Game?

39 Upvotes

Learning or even teaching the different types of sorting algorithms can be a rather challenging task. Infusing gamification is definitely a great way to introduce these different sorting concepts. I gave this card game a go and found that it was wayyy easier to understand the different algorithms in comparison to reading plain text online. Would definitely recommend this to anyone whose serious about picking up some programming concepts or just want to have some fun and put their memory to the test ;)


r/AskComputerScience • • Oct 08 '19

How does a process know where it currently is in the code?

39 Upvotes

If I create a process and after a second suspend it. Where is the information stored about what current instruction it is at?


r/AskComputerScience • • Nov 26 '18

Why is Elon Musk scared of artificial intelligence?

39 Upvotes

I study computer science in University and have a good amount of experience implementing it as well as learning the theory. Im aware of tons of uses of it now and potential ones for the future. It just seems too far fetched for it to learn out of control given that it is kind of just flawed Bayesian statistics over large amounts of data. Does Elon know something I don't, is he keeping theory to himself? Is anyone else scared of it?


r/AskComputerScience • • Oct 25 '18

How should I start to get into AI?

39 Upvotes

I’m currently in Undergrad CS & I’m really interested in AI. I want to start doing small AI related side projects in my free time since right now I can’t take any official AI courses. Whats the best way to do this?

I have a few ideas of stuff I’d like to implement, but don’t know where to read up/where to code out my solutions.

Can anyone give me resources as a complete beginner to AI to start making small programs?


r/AskComputerScience • • Feb 02 '26

How does a computer know how long it's been off for?

38 Upvotes

A question that never occurred to me before. I used to assume that it would just connect to the internet and then update it's time accordingly, but I recently took a laptop to a place without internet access and it showed me roughly the correct time.

Granted, the laptop wasn't powered off, it was simply suspended, but I still don't understand how that would keep track of time.

Does the cpu count the clock cycles? It seems like an awful lot of work to do, and also feels like a waste of resources. Besides, how does the cpu know the relation between clock cycles and time? Are those hardcoded?


r/AskComputerScience • • Jul 14 '25

For recursion to work, the input "size" must become smaller on each recursive call, what's the strangest definition of size you've seen?

38 Upvotes

M


r/AskComputerScience • • Apr 23 '22

Company lying to devs to get them to work more

38 Upvotes

For the last few months, devs in my company have been working on a release that has contractural features promised to our clients by a certain date. Everyone has been working overtime in order to get this in including some senior devs working 80+ hours a week. I just received confidential information saying that we have actually renegotiated the contract so the deadline is no longer valid. However, none of the devs have been told this in order to keep them working at this pace. I am beyond pissed about this due to the chronic stress I’ve endured the last few months to get this release out. What should I do?


r/AskComputerScience • • Sep 29 '21

Is there something wrong with me?

38 Upvotes

My friend/roommate and I are both CS majors at our university. We're in the same class now and we've taken all the same classes. We've both been coding for pretty much the same amount of time.

I feel like this happens with every programming assignment though. Where I read the textbook, class materials, class forum posts, class discord posts, ask questions, need help from multiple sources and need ample time to figure out the projects. I do fine on almost all of them, but he does too, but he barely needs all the help i typically need to finish a project. He finishes the projects way faster than me, like he starts working on them way later than me, he says he never looks at class discord or forum posts or asks for help or anything. Never goes to class, never watches lectures online.

Unless a project just literally cannot be done without class materials, he just does all of them all on his own based soley off the instructions.

Then whenever I ask him how he does the projects he always dodges the question and never never reveals his methods. Just says shit like "i just follow the instructions".

I know I'm not supposed to compare myself to others and ik that's a more personal issue but, i just don't know why he finishes everything faster without less help despite us having very similar amounts of programming experience.


r/AskComputerScience • • Jul 29 '21

Should GitHub Copilot be considered plagiarism in schools?

38 Upvotes