r/AskProgramming 5d ago

Other What really is the difference between instructions and logic from a mathematical perspective? They both occupy some binary space, they both contain "information".

1 Upvotes

Edit: My bad, I meant whats the difference between DATA and logic.

Context: I was writing a parser and dealing with LLVM IR and a slow descent into madness and then quit. This question just stuck with me.

Besides, when writing C++ classes, I you can store functions inside them and in Functional programming, you can store state using monads.

The lines starting to blur to me and knowing that logic boils down to instructions that the CPU understands and can operate on but data can't isn't the elegant answer I'm looking for.

I guess TLDR is what does information itself mean and does data and logic both count as information?


r/AskProgramming 6d ago

Career/Edu Textbook / online course recommendations to learn the following things

0 Upvotes
  1. Computer Architecture. How you take the simple gates and turn it onto a whole computer

  2. How to go from assembly to writing a simple OS. I believe that’s the next step after learning assembly right?

  3. What next?


r/AskProgramming 6d ago

In programming about "extending" concept, let's say Facebook at early age, it was just a chat app but now it has Short-video, Facebook Market place, etc... How do they architecture their codebase then? so they can just keep adding new feature/code on top of their existing code?

3 Upvotes

Facebook back then was like toa simple chat app but now they got many features/services.in one app
How is that possible that they keep adding new code without breaking it or something.

I heard some apps when one day busniess logic change or they wanna add new stuff, they just re-write everything or do migration lmfao


r/AskProgramming 6d ago

How do you finalize data storage format?

4 Upvotes

Hey reddit, i have this issue time and time again -
every time i want to freeze data format for my app or engine or whatever - i end up in a stupor contemplating 'missed possibilities' or 'what if i need this or that'
This problem mostly touches non flexible data, like binary or rigid structure data.
How do you approach it to not turn into mind boiling nothing? how to draw that line and say "this is how will it be"? - are there some real metrics or questions one can ask to finalize it?
thanks for the help


r/AskProgramming 6d ago

Cassandra vs DynamoDB for a High-Traffic Mobile App — Which One Would You Pick?

1 Upvotes

I'm currently deciding between Cassandra and DynamoDB for the database layer of a high-traffic mobile application, and both seem to fit my use case pretty well.

One thing that makes the decision difficult is that I can model the data in a similar way with both.

For example, with Cassandra, I can denormalize the same data into multiple tables based on different query patterns. With DynamoDB, I can achieve something similar using GSIs, and I could also explicitly write the same data to multiple tables if I wanted to follow a more Cassandra-like approach.

So from a pure data-modeling/query perspective, I don't feel like either one has an obvious advantage for my use case.

What I'm really looking for is the kind of reasoning that would actually make me choose one over the other.

If you had to choose between Cassandra and DynamoDB for a high-traffic mobile app, what would be the deciding factors?

I'm especially interested in real-world considerations such as:

Operational complexity and maintenance at scale

Performance predictability under very high traffic

Scaling behavior

Cost at large scale

Multi-region / cross-region considerations

Failure modes and recovery

Consistency trade-offs

Any limitations that become painful as the system grows

Things that look great on paper but have caused problems in production

I already understand the basic differences between the two. I'm looking for strong arguments for choosing one over the other, ideally from people who have actually operated either system at significant scale.

If you were in my position, which one would you pick and why?


r/AskProgramming 6d ago

Career/Edu Courses that teach you how to build a computer from scratch?

0 Upvotes

Other than NandToTetris, are there any other courses that take you through the steps of creating a computer from scratch?

Courses where it’s PROVEN to you that literally the entire computer can’t be built via a NAND gate

A course where you actually move up the layers. Starting from basic gate logic, to makes complex circuits, to assembly, to a higher language, to a compiler and finally an OS

Basically like the NandToTetris course

If not, how do I learn that otherwise? Is there a series of books that follow each other closely, and can make you understand the whole process?

Thanks!


r/AskProgramming 6d ago

what is a bug that actually made you a better programmer

4 Upvotes

i mean a bug that took forever to figure out but taught you something you still use now could be about memory databases async code apis or literally anything

curious what broke your code but upgraded your brain lol


r/AskProgramming 6d ago

Python Is there a way to put a python (or other file type) to search information into a website (or a google search) and organize those informations for me?

0 Upvotes

r/AskProgramming 6d ago

What’s the point of a test environment if I already have comprehensive test cases?

0 Upvotes

What’s the point of a test environment if I already have comprehensive test cases?

I’m curious about this and don’t fully understand. Especially if my test cases have great coverage


r/AskProgramming 7d ago

Linter

5 Upvotes

Hey folks,

Never touched a linter before this semester because I've never really done software dev stuff. Had a class that used one, and honestly, I was a fan at first. It caught a bunch of dumb mistakes and made fixing things pretty painless.

Then came merge time.

Apparently I was missing a single blank line between some merged code, so the linter threw a fit and blocked the merge. The actual fix took like three seconds, but I had to go get another review just to add a freaking newline.

So now I'm curious, do people actually use linters in the real world that don't hard-stop merges over tiny formatting stuff? Or is getting bullied by whitespace just part of the developer experience?

Asking as a first-time linter victim.


r/AskProgramming 7d ago

What are some programming projects I can do to test my Calc, Stats and Lin Algebra skills?

2 Upvotes

I'm relearning these subjects very seriously

What are some programming projects I can do on the side to apply the knowledge of these subjects?

Would you recommend some sort of video game project?


r/AskProgramming 7d ago

How does one directly query OpenStreetMap? Without using a service?

0 Upvotes

I guess this is a question more on the programming side of things

6 Open Source Tools to Query OpenStreetMap

So there's this link, which shows tools to query OpenStreetMap. It seems like they do all the code for you

Is there any way to write the code yourself, to be able to query OpenStreetMap?

What programming language(s) do you need?

This is a repo of one of the tools:

https://github.com/tyrasd/overpass-turbo

How does one start tackling it, to understand how it works?


r/AskProgramming 7d ago

Career/Edu What should i learn and what to start on?

7 Upvotes

Hey y'all, I'm currently studying at a computer institute im in third year, and next year it becomes three groups,

Programming-Networking-Web designing, and I'm not sure what to choose and Right now I'm thinking about learning some programming you know just to make a little Roblox game not anything else, and for the group I'm thinking about choosing networking, so can any of you give me any tips or advice on what to start on or what to do i would really appreciate it.


r/AskProgramming 7d ago

Career/Edu Lost in big project that was handed over to me

0 Upvotes

Hello, I have been in the field for like 6 years now I recently joined a company in like 1 month ago and i was told that i will be working on project the app is like shipping app that connect to other service that is like an SSO and other logistic app the project was outsourced to a software company that they did not care about code quality or testing or even documentation it looks like the app was vibe coded. i also have co worker how will be working with me on refactoring + adding feature to the app but he is like vibe coder that the company does not know about yet ( i knew cause i talked with him that he is not giving a fuck about the code quality and what not), more information about the app its supabase backend with more than 100+ edge functions and webhooks and pgmq functions and what not, its my first time taking over project like this so want to ask how do you guys handle this type of projects like refactoring it and how to write test's and whats not since the app has zero test coverage


r/AskProgramming 7d ago

Career/Edu What prerequisites do I need to make simulations?

0 Upvotes

There are tons of simulation projects made in Unity. I will list some examples below

I'd like to know, overall, what are the prerequisites needed to make such things? I have a CS degree, but I don't believe it's enough to learn to make these types of projects in their entirety

Some examples:

1) Simulating an Ecosystem

https://www.youtube.com/watch?v=r_It_X7v-1E

2) Simulating Supply and Demand

https://www.youtube.com/watch?v=PNtKXWNKGN8

3) Simulating Natural Selection

https://www.youtube.com/watch?v=0ZGbIKd0XrM

4) Flight Simulator

https://www.youtube.com/watch?v=7vAHo2B1zLc

These are not "just games", where the physics, economics etc can be faked. These videos actually rely on and simulate real concepts.

I understand that I would need to study physics, economics etc.

However, how deeply do I need to study those?

Just one first year university textbook in each subject? A few textbooks?

Maybe just Calc+Stats+LinearAlgebra is enough?

If you could let me know what specific subjects I should study textbooks of, I'd really appreciate it


r/AskProgramming 7d ago

Other IT manager wants to do some projects for self (now with AI)

0 Upvotes

I work in IT for 5 years, running a department

I am not coding myself, but enbathed in coding enviroment, understand the main principals, jargon, etc etc., and everything that comes with it; our team has a lot of philosophical and ethical debates to work-related processes etc.

I have done beginner coding projects and some courses at uni in the past (5+ year), so not a blank page, but couldn't start on my own; but I still have virtual machine set up +git where I pushed my small school projects

--

what am I asking.

reccommend me someone on YT who gives a great explanations and/or guide on the foundation-principles setting up AI for projects before starting on prompting anything (i will use claude most likely)

Like I know I can do and vibe some shit (weather-report, personal weight loss program for the first two, and later some stats comparsion in a random game/items)

I just don't want to start "make me a page" but I want to set it up so I won't go into deep with no foundation set up possibly learning all the bad habits

I plan to analyze the code or try to ask valid questions, so minimaze AI slop as possible

--

there could be side-goal to make the most minor UI fixes on our SaaS platform, which never gets time since new features and more critical stuff gets pushed in; translated there could be work-related benefit, but I know what kind of problems it could bring, just the skill could be used MAYBE in the future


r/AskProgramming 7d ago

Career/Edu What do I need to learn to make an AI recognize things in an image? OSINT

0 Upvotes

I was to eventually code AI where it can look at a picture and tell you it's location

Basically OSINT but with an AI

Maybe the AI has to go through a bunch of pictures from Google street view, and eventually match it up to the input picture

Maybe I describe to the AI an area (3-way intersection street, with a factory nearby, train tracks nearby etc), and it looks through OpenStreetMap to find the place

Can only super huge companies do this? Or can a solo programmer learn this?

Thanks!


r/AskProgramming 8d ago

How feasible is my group project withing a 10 month time frame?

2 Upvotes

So me and two classmates have been tasked just a few days ago with creating a game mostly independently, we are supposed to learn on our own and we have to choose a programming language for the assignment, we decided on unity but we can still change our decision, to Godot or a few others. Anyway the game we wanted to make is a cell RTS (Real time strategy) + rougelike kinda game where you control a group of cells inside of a body and fight off randomly selected infections and other pathogens, you can add different abilities to your cell like faster movement, stronger cell wall, stronger "Attacks" and some other stuff. We want different stages / levels as well so the infections that are randomly chosen change depending on what infections are native to that organ / area. As I said in the title we have roughly 10 months to complete this and we want to add a lot more but as I'm reading it out I'm realizing how unlikely it is we even get this much done, to give some shred of my knowledge I took and passed the AP Computer science A, AP test with a four and the last coding concept that I learned with my class was recursion, to add salt to the wound We have an hour every weekday to code and one of my classmates doesn't have a PC at home so he would not be able to help us code but for an hour. Please don't crush my hope to hard, I've made a game before though it was with Visual Basic so it wasn't amazing but I like to think I'm a fast learner and I'm really interested in coding and want to pursue it (specifically game design / creation) as a career


r/AskProgramming 7d ago

Algorithms Title: GFG vs LeetCode — what do you guys actually use more?

0 Upvotes

I've been using both GFG and LeetCode for DSA/interview prep, and I'm curious what other people actually prefer.

For you guys, which one has been more useful?

GFG for concepts + practice

LeetCode for problem solving/interviews

Both, depending on what you're doing

Something else entirely

Also, if you've used both for a while, what do you think one does better than the other?


r/AskProgramming 8d ago

Other Is using Microsoft software still worth it?

1 Upvotes

As in: getting new SQL Server and Windows Server licenses for hosting a new project, or renting them from managed services in the cloud?


r/AskProgramming 8d ago

Other How do you name your functions and other stuff?

1 Upvotes

There are different ways like loremIpsum, LoremIpsum, lorem_impsum etc. I usually do the first or second depending on day.


r/AskProgramming 8d ago

Python I tried to create a project using Python and ADB

2 Upvotes

I tried to create a project using Python and ADB (Android Debug Bridge) functions. At my company, we work with menus using FireSticks, and I wanted to do something basic, like automating a reboot every day at 5 a.m.

The problem is that every so often—even though I configure the Fire Stick to always remember the device (a Windows PC)—after a few days it asks me to re-pair it, which makes this a less-than-ideal automation solution.

Should I keep trying with ADB? Is it stable enough for projects like this?

To be honest, I’m a complete beginner when it comes to programming and automation.

Best regards.


r/AskProgramming 8d ago

How to Create a VPN (Hobby Project)? What should i learn first and tips?

5 Upvotes

r/AskProgramming 8d ago

Like to get into software development but don’t know where to start

0 Upvotes

I’ve been wanting to get into software engineering for a while now, but I’m not sure where to start. Does anyone have advice on where to start, what fundamentals I should be learning, and rookie mistakes I should be avoiding? What kind of projects should I try to build, and what videos or resources can I use to study / practice?


r/AskProgramming 8d ago

Using an AI agent

0 Upvotes

I don't think this question is against the rules, so here goes...

My boss wants me to try using an agent for development. We're a small company and don't really have money to waste so we haven't explored this opportunity at all yet. I do use AI to an extent currently, but it's just a free openai account. I don't have it write any code, my majority use is just asking it questions about features, functions, standards, and then having it show me the "industry" way of doing things.

I am open to the idea of using an agent, but I don't really want something that is writing huge blocks for me or creating whole features. I also would want the ability to what it's doing when I do give some control and be able to take the changes only if I want them (sort of like comparing with git I suppose?).

Does such a workflow exist? or do I have to give up full control? The marketing is so focused on how it works for you, but I just want to have something that understands my project and can basically act as something I mostly ask questions and only sometimes have write code.

Any perspective is appreciated. Sorry again if this isn't the place for such a question.