r/AskProgramming

▲ 1 r/AskProgramming+1 crossposts

Learning codes

I have just started getting into coding, and I'm doing this ethical hacking free course. But there's so many softwares, and so forth.

I always seem to forget most of them and have to redo.

I was told I need to try obsidian and create a Github profile to save versions of code or applications.

Can someone give me advice, on this.

reddit.com
u/ArtisticAd1841 — 23 hours ago

How can I get better at reading unfamiliar code and building a mental model of a codebase?

I'm a former data scientist that transitioned into AI engineering. I can code, but have pretty limited software-engineering experience. As such, I rely pretty heavily on AI for implementation and understanding the code base. However I find that I have trouble remembering my code and developing a mental model around the code. I can understand individual lines, but struggle to retain the overall architecture, data flow, dependencies, and reasons behind decisions. A coworker advised me that to get better I should start reading the code first before I turn to AI to understand it, which I agree with. My question is how can I get better and reading/understanding code? Are there any exercises or routines that work for reading code, reviewing PRs, understanding the code flow or remembering how a system works? What do experienced programmers do what entering an unfamiliar codebase?

reddit.com

Need explanations. I learn how to build simple CRUD app with C# and TS. I wanna really understand CS. So I tried to learn C but I get even more confused about many CS concepts.

I’m trying to learn C not just because I want to learn another programming language, but because I want to understand Computer Science and the "science" behide a programming language

The problem is that I constantly fall into an endless chain of prerequisites/CS concepts

For example, I want to understand pointers:

int x = 10;
int *p = &x;

On the guide/website it says

>Pointer is a variable that store memory address.

Okay, but then I ask:

  • What exactly is a memory address
    • address is numbers telling where data is stored
  • What exactly is memory?
    • memory is where address live
  • Is memory the physical RAM?
    • something to do with CPU
  • What exactly is RAM and CPU?
    • etc...
  • How does RAM actually work?
    • etcc..
  • What's the relationship between RAM, CPU, cache, virtual memory, thread, processing etc.?

And suddenly I'm 10 levels deep into computer architecture instead of learning pointers "*"😂

So what to do here, I wanna understand CS. I thought my experience with coding CRUD APP with C# would help but no it doesn't help much.

--

Let me put it this way

let's say if you ask a normal person what "water" is , a normal person replied "liquid"

but if you ask a scientist, it would be "1 Hydrogen and 2 Oxygen combined together to become H2O"

So I try to understand the Science in Computer Science, i hope you get the picture what i try to say

reddit.com
u/Wasabi-spicy00 — 2 days ago

How do you genuinely review HUGE PRs?

I got handed a PR that's +23,497 / -260 lines of code. Not all lines are my responsibility (I only review frontend), but isn't this an insane count?

Can you "genuinely" code review this amount of code? How can I do it without just clicking approve to move on?

reddit.com
u/GodLob0 — 3 days ago

Founder looking for one good intro into the API/SDK world

I’m doing early customer discovery for a developer infrastructure product and am looking to speak with founders, engineers or investors at API/SDK companies.

I’m particularly interested in companies that have dealt with v1 → v2 migrations, major SDK releases, endpoint deprecations, authentication changes, or shutting down legacy versions.

For some background, I do research at Harvard, Stanford, and Brown, and my cofounder is a Columbia CS major.

The goal is to validate the problem, understand how painful these migrations actually are for providers, and talk to people who have experienced this firsthand.

reddit.com
u/Top_Pomelo7996 — 2 days ago

I have a lot of free time at work. What can I do with it?

I have a lotta free time at work and I'd like to actually do something useful with it.

I'm thinking programming, but not really in a "learn this skill for a job" kind of way. More like solving problems for fun. Something I can sit down, work on, get stuck, figure it out, and get that little dopamine hit when it finally works.

Basically, I want programming to feel more like playing a game than studying.

Any recommendations? Coding challenge sites, projects, puzzles, anything like that. Hook me up.

reddit.com
u/Different_Lynx4658 — 2 days ago

Why is people glazing rust so much?

When I say in online communities that Rust isn’t good for everything and definitely has its issues, I don’t even want to tell you what they’ll call you. For some reason, here in the Czech Republic, it seems like almost every college student uses Rust. I don’t get it.

Personally, I like to try different things, and I believe there’s no one-size-fits-all language. For example, TypeScript is 100 times better for Discord bots. Python, on the other hand, is better for AI. I don’t get why they hype it up so much plus, Rust’s ecosystem seems pretty small to me. I tried to find a backend framework with good documentation and all the bells and whistles, something like NestJS or something similar… but nothing well, there’s Axum and Loco, but they don’t meet my needs. However, where I see the future is that Rust is one of the few languages to have made it into the Linux kernel, but I still can’t implement an XDp/Ebpf filter in it, so I’m still forced to learn C. Which is maddening. Overall, Rust strikes me as a language that has a little bit of everything but nothing truly standout. + overcomplicated syntax.

What are your thoughts on this?

reddit.com
u/sodikovakapsle — 3 days ago

Coding in ai era

I am not sure if this is right place to ask and if it was somewhere already answered or there is some material on this subject please let me know.

I started to learn programming more than a year ago (python/sql/vba) and I use it in my current position to which I was moved around four months ago. At the beginning I was excited about programming, it's hard and sometimes boring, but sometimes I felt so excited when I was writing a program and when I was solving things. Then in my job I started to discover ai, and that was it.

I am still thinking to start applied cs this autumn, but after using Claude code for a month I just feel it doesn't make sense. Claude code is so good that I can work on dotnet web app without knowing C#, javascript, css, html, I can fix and write python or vba macros faster and better than I would do without it. Every time I read people saying things like ai code is trash or seeing youtube videos saying how companies will not hire less engineers, how ai cant maintain code and you need people for that, I just see this programmers with formal education and experience that just can't deal with this change and refuse to accept the fact that their skills they learned so hard and worked so hard on are becoming obsolete. Today I've seen 50 thumbs up on a comment saying that ai empowering people (making everybody able to create software) is a bad thing, that's how these people hate ai. I get it, it tells them "you are nobody".

My final question is, do you think it makes sense to learn programming for job nowadays or study CS and pay for it in the uni? I don't think I can make it alone, i tried studying alone but it's difficult. And if yes, then how would you do it, how to learn knowing that an app can make it for you in a short amount of time with no effort. As I sai, thanks for sharing your opinions or some texts/materials on this topic.

reddit.com
u/Common-Reserve7654 — 3 days ago
▲ 344 r/AskProgramming+17 crossposts

CTOs, engineering managers, and staff engineers are rushing to deploy autonomous AI agents across their businesses – either through their own volition or because of the clamor of demand from rank-and-file workers. However, they should think twice, a new study shows.

Enterprise large language model (LLM) agents are likely leaking company secrets, and throwing more compute at the problem is only making it worse, the study finds.

In part, that’s because of the AI’s ability to retrieve and synthesize vast amounts of internal data, from Slack messages to board transcripts, to automate tasks. By gathering that information, they also create issues with contextual integrity.

When retrieving dense corporate data, these agents routinely fail to disentangle essential task data from sensitive, contextually inappropriate information. Higher task completion rates often directly correlate with increased privacy violations.

Read the full story: https://leaddev.com/ai/frontier-ai-models-haemorrhage-sensitive-data

u/OfficialLeadDev — 4 days ago

Programming stickers

Hi, idk if this is the right sub reddit for this but I hope so, is it considered bad if i would order/buy some stickers for example go gopher or something like that if i use that language or is it only acceptable collecting from conferences etc. but I am a 15 year old programmer so I don't have access to them also because i live in smaller city in smaller country I didn't mean like buying stickers of something i don't use but of thinks I like and use

reddit.com
u/riki6882 — 3 days ago

How do I learn programming logic?

I’m learning Python, but my main problem isn’t the syntax. I understand concepts when someone explains them, but when I’m given a basic problem and told to write a program, I just don’t know where to start or how to arrange the code.

Is there a good book, course, or YouTube channel that teaches how to think through programming problems step by step, recognize patterns, and build the logic, kind of like how you learn methods and patterns in math?

I don’t want to just memorize Python syntax. I want to actually learn how to think like a programmer.

reddit.com
u/RipPersonal1643 — 3 days ago

Learning c++

So I'm doing dsa in c++ as well as learning modern c++ concepts.I want to become c++ developer what concepts should I learn to become a c++ developer , what concepts should I focus on , what are the best resources to learn c++.Also when I try to build something in c++ i don't even know where to start.Its been 4 months I learned C++ and I'm genuinely comfortable with it till now.

reddit.com
u/Notsoboringi — 2 days ago

The gap between knowing Python and actually being able to build something

I have done a course on python on Udemy . Now how do i learn to write code that are actually useful somewhere or i can do something valuable with it?
One thing I've noticed is that when I look at a more complex programming problem, I sometimes just go blank. I know the individual concepts I've learned, but I struggle to see which concept should be used where or how all the pieces fit together. The bigger the problem looks, the more overwhelmed I can get.

if someone gives an experienced Python developer a problem, how do they approach it before writing the code?

I'm particularly interested in understanding the thought process and the building blocks involved:

  • How do you break a real-world problem into smaller programming problems?
  • How do you decide what the program should look like before you start coding?
  • How do you go from a vague requirement to something you can actually start implementing?
  • How do you decide which Python concepts are appropriate for a particular problem?
  • How do you decide which libraries/modules to use?
  • How do you figure out which libraries even exist for a particular problem?
  • How do you decide how to structure the code?
  • How do you decide what functions/classes/modules you need?
  • How do you decide what should be a function versus just a few lines of code?
  • Is there a typical order in which things are written or organized?
  • How do you handle errors and unexpected inputs?
  • How do you go from a rough idea to breaking it down to  pseudocode/design to working Python program?

Basically, I'm looking for the mental model and workflow that experienced programmers use, rather than another Python syntax tutorial.

While learning i was able to write codes that add subtract numbers etc which were simple enough for learning but want to make my skills better. Also, I'm not a programmer won't be using python much, how do i learn in such a way that i remember the syntax or concepts for longer time, python coding is just a skill i want to develop.

I'd especially appreciate examples of the kinds of projects/exercises that helped you make that transition.

reddit.com
u/Akki_Charee — 4 days ago

Out of ideas.

Hello there guys, I'm a guy that doesn't use AI and wants to do everything by myself, but the problem is that I'm out of ideas on what to create, and I just want to code in my free time. What do you suggest when you are in these types of situations? Thanks in advance!

reddit.com
u/microsoftxp- — 4 days ago

Why does Python feel harder after C++ and Java?

I learned C++ first, then Java, and now I’m trying to learn Python. I honestly expected Python to be much easier, but somehow it feels harder to understand and even remember the syntax.

C++ and Java feel more structured to me, while Python sometimes feels too different.

Has anyone else felt this after switching from C++/Java to Python?

reddit.com
u/Whole_Bet_5506 — 5 days ago

Let's say codebase A can already handle 1m daily users and 300k concurrent users easily but if the codebase wantg to hanlde 10m and 3m concurrent users. Do they normally go change some codes or use "auto scaling" on Cloud?

They say if it works don't fix it, so no need to change codes so I think normally people use

auto scaling or horizontal scaling right?

reddit.com
u/Wasabi-spicy00 — 5 days ago

In general what BE programming languages is easiest to write and doesn't give unnecessary headaches. Let's say I wanna build simple CRUD APP that are used by 100k people?

Maybe TS?

or maybe Python?

reddit.com
u/Wasabi-spicy00 — 6 days ago

How to learn advanced python????

Hello everyone, I'm mainly looking for guidance about learning advanced python concepts. I know basics ,loops , control flow ,data structures etc.

I need a proper guide on how to learn modules and library. Idk how to start ,where to start.

I want to be able to work with any library as i need them ,so how do u actually learn to use new library for a given task . ?And i get overwhelmed understanding the structure, working of library

And could u also suggest important python concepts other than basics which i should learn ???

Pls guide !!!!

reddit.com
u/Extra_Search3465 — 6 days ago