r/AskProgramming • • May 26 '24

Is 500 lines of code a lot for a vehicle?

109 Upvotes

This Reddit ad tells us that "Today's vehicles can contain up to 500 lines of code".

https://www.reddit.com/user/MouserElec/comments/1cwq39c/todays_vehicles_can_contain_up_to_500_lines_of/?p=1&impressionid=4155985439515213836

I am not a programmer - what functions in a vehicle could run with just 500 lines of code?

Thanks.


r/AskProgramming • • Jan 05 '24

Why do programmers use so many buzzwords?

109 Upvotes

I'm not referring to jargon -- which is essential.

Someone recently posted a project to a Facebook group. I was 3 pages into their manual and still had no idea what it did. There were paragraphs upon paragraphs of just tech buzzwords. And everyone in the group was eager to try it out.

Words like, index or pointer are jargon. I get that, but n-tier browser-based distributed OS...

That's literally the description they gave, and that description fits the internet itself -- or at least the routers that run it.

I got blocked for asking for clarification.

What's up with all the buzzwords programmers like to use?


r/AskProgramming • • Dec 01 '20

Question to any black people in this sub: What do you think of the recent terminology changes within the industry?

108 Upvotes

Before any mods delete this: This is not a political post. I do not have a political agenda for asking this question. All I'm looking for are individual personal perspectives.

There's been a recent drive to rename git master branches to "main", and blacklist/whitelist to "allowlist"/"denylist". The reason for doing so is to remove potentially racially tinged, exclusionary language from our industry.

Something that's been curiously absent in all this though, are black voices. Given that these changes are explicitly intended to make the industry more inclusive of that exact group, I'm curious here what members of said group think about this effort.

I know some might consider it a faux pas to ask this so bluntly, but if we're serious about creating meaningful, positive social change, then we need to actually listen to the people that we say we're trying to help.


r/AskProgramming • • Mar 08 '24

Why is Apple so exclusive?

107 Upvotes

NOTE: THIS IS NOT CRITICISM. THIS IS JUST A QUESTION.

Why are things such as development for the Apple OS’s, apps used on Apple, the exclusive programming language, etc. so exclusive? They aren’t useful anywhere else, and for some things, you can only do using Apple’s software and licensing. Is it for security reasons or more proprietary since Apple tries to make major innovations every 5 or so years?


r/AskProgramming • • Sep 26 '25

What’s a programming concept or habit you wish you had learned earlier in your career?

105 Upvotes

r/AskProgramming • • Jan 10 '24

Career/Edu Considering quitting because of unit tests

105 Upvotes

I cannot make it click. It's been about 6 or 7 years since I recognize the value in unit testing, out of my 10-year career as a software engineer.

I realize I just don't do my job right. I love coding. I absolutely hate unit testing, it makes my blood boil. Code coverage. For every minute I spend coding and solving a problem, I spend two hours trying to test. I just can't keep up.

My code is never easy to test. The sheer amount of mental gymnastics I have to go through to test has made me genuinely sick - depressed - and wanting to lay bricks or do excel stuff. I used to love coding. I can't bring myself to do it professionally anymore, because I know I can't test. And it's not that I don't acknowledge how useful tests are - I know their benefits inside and out - I just can't do it.

I cannot live like this. It doesn't feel like programming. I don't feel like I do a good job. I don't know what to do. I think I should just quit. I tried free and paid courses, but it just doesn't get in my head. Mocking, spying, whens and thenReturns, none of that makes actual sense to me. My code has no value if I don't test, and if I test, I spend an unjustifiable amount of time on it, making my efforts also unjustifiable.

I'm fried. I'm fucking done. This is my last cry for help. I can't be the only one. This is eroding my soul. I used to take pride in being able to change, to learn, to overcome and adapt. I don't see that in myself anymore. I wish I was different.

Has anyone who went through this managed to escape this hell?

EDIT: thanks everyone for the kind responses. I'm going to take a bit of a break now and reply later if new comments come in.

EDIT2: I have decided to quit. Thanks everyone who tried to lend a hand, but it's too much for me to bear without help. I can't wrap my head around it, the future is more uncertain than it ever was, and I feel terrible that not only could I not meet other people's expectations of me, I couldn't meet my own expectations. I am done, but in the very least I am finally relieved of this burden. Coding was fun. Time to move on to other things.


r/AskProgramming • • May 27 '20

Why is C++ such a controversial language?

105 Upvotes

Linus Torvalds said " C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it". Jonathan Blow, a game developer said "C++ is a weird mess. My new language would increase productivity 50 to 80% over it". I have also had teachers and met other coders who seem to want to avoid C++ like the plague. Why does C++ generate more controversy than other languages?


r/AskProgramming • • Jan 26 '25

What are some dead (or nearly dead) programming languages that make you say “good riddance”?

104 Upvotes

I’m talking asinine syntax, runtime speed dependent on code length, weird type systems, etc. Not esoteric languages like brainfuck, but languages that were actually made with the intention of people using them practically.

Some examples I can think of: Batch (not Bash, Batch; not dead, but on its way out, due to Powershell) and VBscript


r/AskProgramming • • Mar 27 '25

Why Are Companies Only Hiring Full-Stack Developers Now?

103 Upvotes

I've been searching for web dev jobs lately, and I’ve noticed that almost every company is looking for full-stack developers instead of frontend or backend specialists (around 90% of them). Even for junior roles, job postings expect candidates to know React, Node.js, databases, cloud, DevOps, and sometimes even mobile development.

A few years ago, you could get a job as a pure frontend (React, Vue) or backend (Node, Django, etc.) developer, but now almost every listing expects you to know both.

Is it because companies want fewer developers to handle more tasks in order to cut costs?

Are basic frontend/backend roles being automated, outsourced, or replaced with no-code or minimal-code solutions?

Is the definition of "full-stack" becoming broader and more unrealistic?

Is anyone else struggling with this shift? Are there still good opportunities for frontend/backend-focused developers, or is full-stack the only viable option for getting hired now?


r/AskProgramming • • Jan 28 '25

Why do large software projects use so many programming languages?

103 Upvotes

Some examples, Firefox uses 47 programming languages (source). VLC Media Player uses 25 (source). Libre Office uses 31.

Why so many? Did someone at Mozilla sit down and decide that they needed to use Pascal for certain features and Basic for other features?

Granted some of those are scripting languages, not strictly programming languages.

If I wanted to compile Firefox, would I need to set up 47 programming environments on my computer?

Edit: Thanks for the answers everyone.


r/AskProgramming • • Jul 16 '20

Other Has anyone else spent a long time implementing a solution to a problem only to discover there's a language feature that does exactly what you need?

103 Upvotes

I feel really dumb, I just spent almost 5 hours implementing a solution that is easily solved by a native feature of the language that I didn't know about.


r/AskProgramming • • Nov 03 '26

What programmer has had the biggest influence on 21st century computing?

102 Upvotes

Curious question. Not asking about what programmer you think the "greatest" or "smartest" or those types of superlatives, but if you had to choose one programmer who has had the biggest influence/effect on 21st century computing. Who would you choose?


r/AskProgramming • • Feb 14 '24

Why do we still use languages that compile to bytecode or IL when it's so rare to actually move them unchanged from platform to platform?

102 Upvotes

I understand that the selling point of Java was "write once, run anywhere" in a time when C/C++ was not very portable. The idea was that you could compile to bytecode and run the binaries anywhere that had a Java VM. But in reality cross-platform desktop applications are rare and Java found its home mainly on servers. But on a (web) server it makes no sense to be able to run the binary "anywhere." You're only ever going to run it on your chosen server platform. So why not skip the JVM middle-man and just compile it to native machine code?

Why is JVM so popular when few organizations actually utilize it's main selling point? You could just define the Java spec such that it was easy to recompile for different architectures. You usually have to package it separately for different platforms anyway. Just add a recompile in there when building distributables.

C# is even more strange to me because originally it was never even really intended to run on anything but Windows. And Windows runs almost exclusively on x86. So what advantage does the IL have?

I've heard "security" thrown around before, but Java certainly has no shortage of security problems. Not sure about C#/.NET


r/AskProgramming • • May 20 '25

Some days I write less than 200 lines of code as a SWE. Is it normal?

101 Upvotes

The reason behide this is I spend alot of time reading doc,

answers slack messages, chatting with colleagues,

spend time on reddit,

Code review,

Write docs

Otherwise I will just go clear the tickets


r/AskProgramming • • Sep 21 '24

Why is it so difficult to find another job as programmer in 2024?

100 Upvotes

I am working as a software developer in the last 4+ years. In the same company. However, I want to change job as I can't learn and develop much but the other companies don't like me for some reason. Or they don't call me at all. They don't give genuine feedback and I don't know where the problem comes from.

I am looking for mid-level jobs with PHP as this is my current level and the language that we use. We use our own custom framework and I feel like the other companies are not very happy about it. I am trying to work on my custom projects but they don't count these projects. All that I am asked at interviews is about what I currently use in my workplace and how we work. I have a Bachelor's Degree in software engineering but this doesn't help much either.


r/AskProgramming • • May 28 '24

I blew up another department's API servers - did I screw up or should they have more protections?

100 Upvotes

I have developed a script that makes a series of ~120 calls to a particular endpoint that returns 4.5MB of JSON data on each call. Each call was taking 25 seconds on the staging endpoint which added up to 50 minutes for the entire script to run serially. Because of the lengthy time that was taking, I switched to multithreading with 120 threads and that cut the time down to 7 minutes which significantly helped my development process. There were no issues with that number of threads/concurrent calls on the staging version of their API

This morning, I indicated I was ready to switch to their production endpoint. They agreed, and I ran my script as normal only to deadlock their servers and cause a panic over there.

  • I didn't tell them about my multithreading until prod API blew up

  • They didn't tell me about any rate limits (nor was there any in their documentation)

  • They didn't make any 429 too many requests response code in their API

  • They today told me that their staging and production endpoints serve other people and most other users won't be using the staging endpoint at any particular moment, hence why my multithreading had no issues on staging

  • They are able to see my calls in production API but not in staging API

In hindsight, it seems a bit more obvious that this would have been an isuse, but I'm trying to gather other people's feedback too


r/AskProgramming • • Aug 19 '21

If Software Developers are in such high demand, why does it feel like the competition is incredibly fierce?

100 Upvotes

According to this article from USNews, Software Developers jobs are projected in the 300 thousands. That’s nearly 200 thousand more than the next highest in the top 10 (Health Services Manager). That’s a huge number of projected jobs. And I hear all the time about how in-demand Software Developers are. And yet, I’m in my third year of college getting my B.A. in Software Development, and I can’t help but feel like the job market is incredibly fierce and competitive. I’m worried that I may not be able to land a good job. I know that I will have to work hard and learn how to interview well, as interviews for devs are very different than that of other types of work. But even still, if devs are in such high demand, and not everyone is able to get through the degree program due to complexity or other factors involving what is needed, why does it feel so daunting? Is it just my own perceptions? Imposter syndrome kicking in?


r/AskProgramming • • Jan 19 '21

Is it me or has Google's search engine gotten worse?

100 Upvotes

I like their instant Ai reply at the top which is pretty accurate, but the search results for the rest of the pages pretty much suck, are either news articles, or out of context, and I noticed it brings back mostly irrelevant information. Am I wrong or have people noticed this too? And why is Wikipedia usually at the top. Sometimes their content is atrociously inaccurate.


r/AskProgramming • • May 12 '20

Could aliens reverse engineer TCP/IP?

100 Upvotes

Sorry for the off-the-wall question. It's for a story I'm writing. The aliens are about as advanced as we were the 50s. They know English but don't know our protocols, algorithms, etc. They receive a stream of data in TCP/IP format. How difficult would it be for them to make sense of it and decode it?

Edit: Thank you very much to everyone who answered!


r/AskProgramming • • Jun 15 '25

Career/Edu I been coding from the past 10 years but I don't feel even half near to be a real engineer

99 Upvotes

I've been working as a software developer for the past 10 years. I've done a wide range of tasks, but most of my experience involves migrating legacy software to full-stack technologies. That also means I've been responsible for, and involved in, architecture and infrastructure decisions—so I've always tried to keep learning in order to make the best choices I can.

The thing is, even though I keep studying and staying up to date with full-stack development, I can't shake the feeling that I'm just an average developer. I don't feel like a real software engineer. I often wonder how people reach the level needed to land a $200K job at Google. How smart do you have to be to work at Uber or Meta? I just don't see myself there. I work for an average salary at an average company, as an average "senior" developer—though, honestly, I don’t even feel senior.

How can I become a real engineer? Is it even possible to reach the level of a Google engineer—or at least learn what I need to pass a Google-style interview? I'm not necessarily aiming to work at Google, but my goal is to become a real engineer one day.

Edit: Thanks very much to everyone , I really appreciate you taking the time to comment and share such kind words and advices. I truly means a lot to me.

A lot of comments out there make a lot of sense so I will work on that, thanks again !


r/AskProgramming • • Feb 25 '22

Architecture I've been programming for years, I still don't understand the anti comment sentiments.

96 Upvotes

We've all heard it, "good code doesn't need comments." But first of all, what are they hurting? A small description on a well written function can save you time reading it to figure out what it's doing, that's just how it is, even well written code takes longer to read than english in most cases.

And second of all, y'all act like good code even exists in any organization at scale. It certainly doesn't exist with any degree of regularity to make me anti-comments. All this code we're writing is ass. Double cheeked up on a thursday afternoon.

I want to see simple comments, even on your garbage perl script you're convinced is the best written code ever and we'll all understand it 2 years from now.

/rant


r/AskProgramming • • Sep 12 '21

Other Please take the time to learn how to ask a question

96 Upvotes

A thing you will have to do a lot in your journey as a developer is asking questions: please understand that it's your responsibility to make it as easy as possible for people to help you.

This holds true in general, as well as in this subreddit.

The person on the other side of the screen has no idea of the context of what you are trying to do, your goal, your constraints, your specification: you have to be clear about all of those when asking a question

I see questions that are borderline like:

"why doesn't my code work?" (copypaste of the code)

So here's a few things you should ask yourself before you ask for help

  1. Do you understand what the error is? Because if you don't understand it, you can't communicate it. You have to have a clear idea of what the expected behavior is, what the actual behavior is, and communicate both

  2. Did you try googling the error before asking? A lot of questions I answered on this sub were just copy pasting from the first result of stack overflow

  3. Is all of the code you're posting necessary for the comprehension of the problem? If not, it's probably a good idea to strip away some parts of the code, and only leave what is essential

  4. Did you try solving the issue for at least 10 minutes on your own before asking?

  5. Is the form in which the question is formulated essential and direct? Is the code properly formatted? Maybe you should consider pasting a link to a codesandbox / jsFiddle instead?

  6. By reading your question, would a stranger be able to have a good idea of what I was expecting to happen, and what is happening instead?

  7. Most problems can have plenty of possible solutions. In the body of your question, please provide examples of ways you've already tried solving the issue

As for the rest, just use common sense

Thanks for coming to my ted talk


r/AskProgramming • • Jan 31 '20

Cracked 1000 EUR/USD software in a couple of minutes. Should I report it and ask for a bounty?

96 Upvotes

I reverse engineered software made by a company I don't want to disclose, they're selling it for more than 1000 EUR/USD. Based on the reverse engineered code, I was able to generate unlimited serial numbers.

I sent an e-mail to the company saying I could share with them how I did it, and a bounty was optional.

Was it the right thing to do? Or are there better ways of bounty/bug hunting?


r/AskProgramming • • Apr 09 '26

Other Self-proclaimed GitHub employee makes massive pull request on my repo. Is it legit?

95 Upvotes

Someone who says on their GitHub profile that they are an employee of GitHub recently made a massive pull request on one of my repos (I am JohnReedLOL):

https://github.com/JohnReedLOL/Sea-Air-Towers-App-2/pull/3

The weird thing is I tried to contact them to ask basic questions like "Who are you? How did you find my repo? Why are you making all these improvements?" but they wouldn't respond and then closed the pull request without explanation.

I posted a job on Upwork saying that I wanted these changes (dependency updates) and in the past posted and/or commented on Reddit that I wanted these changes, but I find it kind of odd that some random stranger is doing them for free without any explanation.

Is this some sort of attempt to sneak a bad dependency into my project or some other sort of attempt at cyber intrusion? I don't know what's going on. I wish they would answer my questions but they won't say anything.