r/AskProgramming • u/Dayumnanon • Jun 05 '20
r/AskProgramming • u/CDWEBI • Mar 13 '20
Other What does the "on" in names such as "onEvent", "onKey" etc mean?
Whenever there is a tutorial or source code regarding input or event systems, there is always this prefix "on" which is used without any explanation as to why, at least I couldn't really find it.
What is the meaning of that prefix?
EDIT: Oh. It's a simple "on". I thought that it was was some sort tradition similar to "m_" or something along those lines.
r/AskProgramming • u/abrandis • Mar 10 '20
Careers For senior developers , what career advice do you have for being successful in this field for 10,20,30+ years? Is it something worth pursing for the long term in light of the changing economics (outsourcing,automation,cloud services)?
r/AskProgramming • u/Leifbron • Jan 25 '20
Has anyone ever asked a problem on a forum, just to be answered 5 years later?
I answered someone's question on a forum, but it has been 5 years since they asked it. Still should be helpful to anyone else who looks at it. Also begs the question, why lock forums after a set time?
r/AskProgramming • u/gwynftw • May 26 '25
Youtube channel for experienced programmers.
Hi all, I've been in professional dev (now management) for 12 years and im looking for a video channel that just sorta talks about the latest and greatest cs innovations, frameworks, languages, code organization, etc.
I absolutely loved code estetic, but he only put out like 6 videos.
Im not looking for how to videos and im not looking for cs humor, and I would prefer someone with modern tastes.. no offense, i love you folks, but I just dont care how fast c is, and im tired of hearing about how memory inefficient modern code is. I dont want to write my own binary tree..., I write buisness logic code and I want someone who talks about that layer ideally.
r/AskProgramming • u/Conscious_Quantity79 • Apr 27 '25
How do you do a codereview of 1000-2000 lines PR ?
There are like 5-20 pages and I don't know where I should start from 0 then 1 then 2 3 .. how do you guys do it?
And when your colleague don't follow clean code like creating a vague variable name like this, it confuses me alot :P
var number
var text
-- o
First month of my job as a junior dev, I was like a new fresh baked bread from Uni and I sneaked the other junior's PR, who has been 1 year before me and he made a big at least 1k PR and I saw a comment from the senior dev " I don't know what you did here but there is something with this XYZ lines ".
I belive and I think the junior is very good at coding but i'm still confused how he do things lol, maybe because the company is a start up with 2 seniors dev so they don't follow those good pratices
r/AskProgramming • u/[deleted] • Apr 23 '25
Other Why aren't all interpreted programming languages also compiled?
I know my understanding of interpreted vs. compiled languages is pretty basic, but I don’t get why every interpreted language isn’t also compiled.
The code has to be translated into machine code anyway—since the CPU doesn’t understand anything else—so why not just make that machine code into an executable?
r/AskProgramming • u/tsodathunder • Mar 28 '25
Career/Edu What if the interviewer is wrong?
I just had an interview, where one of the questions was wether you can use multiple threads in javascript. I answered that altough it is normally single threaded, there is a way to multithread, i just can't remember it's name. It's webworkers tho, checked later. And those really are multithreading in javascript. But i was educated a bit by the senior dev doing the interview that you can only fake multithreading with async awaits, but that's it. But it is just false. So, what to do in these situations? (I've accepted it, and then sent an email with links, but that might not have been the best idea xD)
r/AskProgramming • u/ED9898A • Mar 09 '25
Do all programming languages software and libraries suffer from the "dependency hell" dilemma?
In Java/Kotlin/JVM languages, if you develop a library and use another popular library within your library and choose a specific version, but then the consumers/users of your library also happen to use that same other library (or another library they use happens to use that same other library), but they’re using a much older or newer version of it than the one you used, which completely breaks your own usage, and since a Java process (the Java program/process of your library user code) cannot use two different versions of two libraries at the same time then they're kinda screwed.
So the way a user can resolve this is by either:
Abandoning one of the libraries causing the conflict.
Asking one of the library authors to downgrade/upgrade their nested dependency library to the version they want.
Or attempt to fork one of libraries and fix the version conflicts themselves (and pray it merely just needs a version upgrade that wouldn't result in code refactor and that doesn't need heavy testing) and perhaps request a merge so that it's fixed upstream.
Or use "shading" which basically means some bundling way to rename the original conflicted.library.package.* classes get renamed to your.library.package.*, making them independent.
Do all programming languages suffer from this whole "a process can't use two different versions of the same library" issue? Python, JavaScript, Go, Rust, C, etc? Are they all solved essentially the same way or do some of these languages handle this issue better than the others?
I'm pretty frustrated with this issue as a Java/JVM ecosystem library developer and wonder if other languages' library developers have it better, or is this just an issue we all have to live with.
r/AskProgramming • u/ninjeth • Mar 10 '24
if I want to learn programming just to spite my friend,which language should I try?
exactly what the title says, My friend who is a programmer said I could never learn programming, so which one should I choose to learn as revenge? keep in mind I always have wanted to try programming sorr of, but never had the motivation to do it.
r/AskProgramming • u/Big-Inspection-1937 • Dec 22 '23
Algorithms I made a sine function 4x faster than the in-built function in C, is this worth anything?
I was playing around and searching the internet, I gotten inspiration that gave me a idea to make a fast sine function.
I've developed a new algorithm for computing sine that's faster than the in-built function in C (gcc -O3). It performs 4x faster with the optimization flag and 4-15x faster without.
With extensive testing with all float number range of -9.22337203685e+18 to 9.22337203685e+18 and near 0, although it loses precision beyond the first range. However, I believe this issue can be fixed if I were not lazy.
The maximum error of 0.0016, with an average error of 0.00084 for -9.22337203685e+18 to 9.22337203685e+18 range.
Is this new to have a sine function this fast? or even worth it to share? if so, where?
I am skeptical about this because it is something so simple that I am surprised that I couldn't find anything similar on the internet. I made sure that it really works and not just a mistake in benchmarking or measuring.
r/AskProgramming • u/Mustard_Dimension • Nov 22 '22
Anxiety before standup
Does anyone else get extremely anxious before morning standup because they feel like they haven't done enough work in the previous day to justify their employment?
If I've had a slow or difficult previous day and I don't have much to show for it during standup when the team present their progress I get extremely anxious, especially as I've only been at the company for a few months and everyone else on the team has been there for years and has a lot more experience than I do so have usually achieved a lot more during each day.
And its not about being in meetings or talking to people, I am perfectly comfortable with that when I actually have something meaningful to present.
r/AskProgramming • u/[deleted] • Nov 14 '22
How do you handle colleague who writes unreadable/unmaintenable code?
We have a colleague who is always tries to write "fancy" sophisticated code, even for simple tasks, i don't know why. This leads to everyone else in the team not ever being able to read and understand what it does, and we spend a lot of time on trying to decode it.
Example
Requirement: add an endpoint that shows unprocessed orders
Expectations: get orders where processed = no -> json -> return
His implementation: Some publisher that creates predicates that creates factories that pass through dynamic filters from the config that goes through his custom serialization that in the end just does JSON.serialize...
I have tried talking to him but the response is along the lines of "you think it is complex because you are not so good yet".... but his complexity never does anything complex, just adds more lines for a simple thing.
How would you approach this?
r/AskProgramming • u/programmerProbs • Nov 25 '20
Professionals, are you sloppy with details when writing brand new code for the first time?
As a note this pertains to segments of code, not the greater system. I find myself doing things I shouldn't, before a code review I will clean this up. For instance
>Declaring functions right before use, rather than at the start.
>Variable names I am the worst, I have no consistency until its time for code review
>Using for loops instead of vectorization(although I think this is forgiveable)
As mentioned, I fix these before submitting, but when I'm mid programming, I'm just getting things down, testing, and repeat. Any warnings about this practice?
r/AskProgramming • u/leisuresuitlarrydoes • Nov 23 '20
Bad software engineer, how to get gud?
I’m almost 3 months in to my new job and I’m really inefficient. I’m new to the field with no experience, I do have a CS degree and I have no idea how I landed this job.
The lead senior engineer has zero patience for new employees and looks down on everyone because they are inferior to his vast intellect. He has been a software engineer for about 20 years and really knows his shit and is a really smart guy. However, he is also a condescending prick.
I did find this one young guy who is brilliant and helpful but I’m starting to have a negative effect on his work and adding more work to his load.
This company is small and I don’t think anyone would know or does know that I’m their except four a handful of people I see including the two mentioned above.
My problem is, I like the work that the company does and I like software engineering but I’m really bad at it. I feel like the CS degree was good for getting me through a interview but that’s about it.
I feel bad because the patient young man that has been literally teaching me various aspects of engineering is starting to get sick of me. For example, I got sick this week, (strep throat not covid) was trying to show that I can help and tried to pump out some code before leaving to get tested.
Story summation: I’m new to git and I went to commit my work and some how merged my work into the main product which caused our automated testing to fail and fuck up the entire system. I discovered this on the way out the door to get covid tested.
I don’t know what to do. I don’t want to give up but I feel like I’m hurting this team of strangers and making their lives worse. The pay isn’t good and I drive 2 hours a day one way to get to this place.
My background is I’m mid 30s with zero professional computer experience in any aspect, I have a hard time with memory recall and learning in general. I have to take notes for conversations or I will forget everything.
I was out of two of work for two years because I had blood cancer. During my fight with cancer I was in the hospital for about 6 months, was even in a coma for a week at one point from sepsi and almost died a few times. So there maybe be some related issues with learning.
After all that my question(s) is how do I take the right steps to become a better software engineer. I’m looking for advice and know that there isn’t a simple solution. I’m just looking for ideas. And baby steps to take to start.
Also with this new job, do I quit to save their mental state from having to put up with my dumb ass? Right now I’m going to keep going and trying until they fire me but I just hate to burden people with the extra load of having me around.
Looking for any feed back, thanks.
r/AskProgramming • u/stfuandkissmyturtle • Nov 14 '20
Careers So many people leave their former jobs and take up programing. Anyone here who gave up programing for something else but still lurks around ?
This has nothing to do with me.....yet, I'm just curious.
r/AskProgramming • u/LuminousTines • Aug 30 '20
When I type in my router's IP (192.168.0.1), where does the web page come from?
I decided to use this time in quarantine to understand a bit more about the Internet.
So yeah, I understand that all webpages are hosted in servers and that each server has a unique IP address. So, when I browse a webpage, that web page's name gets translated to its server's IP address, and I get the HTML file stored in there.
My question is: When I type in my router's IP address (192.168.0.1) on my browser, and I get a nice clean webpage, where does that HTML file come from? Is it stored inside the router? Or does the router request that page on the internet so that it can be displayed to me?
Thank you!
r/AskProgramming • u/questionAboutThing • Aug 12 '20
Web My startup hired an outside developer to build a web application. We're making good progress but are encountering so many tiny details we didn't expect to have to mess with, and I'm wondering if this is normal since we are about to be 2x over time.
I have a startup that provides a B2B2C service. We are transitioning onto our own tech platform that lets us add clients to it and then allows our clients to add and service their own customers. It requires a high degree of security and scalability.
We interviewed a few firms and ended up selecting someone who we have worked with before on other IT projects who has extensive programming experience. He's building the whole thing in AWS from the ground up.
He jumped right into the project and started sketching out a very basic UI to serve as a roadmap for the functionality we want to include. Now a lot of backend work. The trouble is that requirements were not clearly defined up front, he just wanted to sort of lay things out as we go. Fine. But, SO MUCH STUFF keeps coming up.
For example, 2FA is set up, but little things like "if they enter the wrong code for 2FA, we have to clear out the input box and tell them they entered the wrong code." I didn't expect to have to spec that sort of thing out for them. Or "when prompting them to change their password on first login and then having them log in again, tell them you're going to have them log in again instead of just routing them back to the login screen."
I wanted to focus on the business, and I'm getting pulled into having to identify these crazy little user experience things. Does that make sense? It seems like there are frameworks for this and we are just reinventing the wheel on basic stuff like login screens and uploader modals. 6 week project now in week 12.
My other issue with it is that it seems like it's irritating him that we're coming up with these things, and it's actually more irritating to me that he ISN'T coming up with them. Like, telling the user what's going on is not optional, they have to know why their password was rejected or that the 2FA code was wrong or they're just going to click submit 10 more times and then call us for help.
r/AskProgramming • u/L_James • Aug 06 '20
Other Is personalized yet anonymous search engine possible?
So, there's a problem with DuckDuckGo. If you ever used it, you probably had a thought that it's a lot harder to find anything in it compared to Google that gives you results it knows that are more relevant to you. So, how do you think, is it possible to achieve anonymity while retaining personalized results according to recent searches? Maybe something like keeping data on previous searches locally
On top of that, another degree of complexity - is it possible to make it personalized, anonymous and distributed, because implications of single entity controlling the system terrify me. If thing is not on Google, it might as well not exist, so if search engine is big enough it can easily become a propaganda tool, for most obvious use case. No single person or corporation should have that amount of control over internet.
r/AskProgramming • u/narajaon • May 02 '20
Is being very good at data structures and algorithms worth it ?
Hello, I'm practicing on hackerrank at the moment because I want to improve my data structures and algoritms skills for future interviews.
The thing is, everytime I successfully solve a problem and go to the discussion sections there's almost always somebody who will find THE perfect solution in terms of space / complexity.
So my question is for those of you who are really good at those types of problems, was it worth it ? Are you working at a FANG-like company right now ? Are you able to sell that skill when the interview is more about building apps than creating an algorithm ?
ps: sry for bad engrish
edit: Thanks for the replies ! Maybe I should have emphasized more about the "very good" at DSA part. I know the time complexity of arrays, hash tables, BST etc. I also know some classic sorting algorithms and tree traversals. I did not ask if learning DSA is useful because obviously it is but to what degree ?
r/AskProgramming • u/Prot00ls • Nov 24 '19
Anyone have any recommend books to read on programming that can be read before bed (not too technical)
I know this sounds like a dumb question but hear me out. In addition to becoming a better developer I want to kick the habit of being on the computer/staring at a tv 30 mins before bed. I'm thinking of using this time to read but i've read a bunch of fiction/non-fiction (but not programming/cs related) books recently. I could just read a technical programming book but i feel like something too technical won't stick. So looking for some book recommendations. Thanks
edit: i should add that I'm a self taught dev if that matters
r/AskProgramming • u/Media_Offline • Sep 27 '19
How are open source programmers able to create and maintain so much thought-out, complicated, open source software and still survive?
I am learning Python and there are SO many wonderful packages that people have created to give functionality to the community. I love that, it's wonderful. But I simply don't understand how it is economically possible.
I am working hard to build some simple apps which, by comparison, take little effort and I can barely fit it into my life around my job/family. How can people put in the amount of effort required to create Python, it's packages, or any other open source software and not be paid for it?
What would be the reason for them to do it? It's great to give back to the community but some of this free software must've taken years of development.
r/AskProgramming • u/SakuraTakao • Mar 11 '26
Why is Linux bash commands are so simple compared to powershell
I am wondering this because I have a both windows and Linux on my laptop and own Linux using terminal is like really easy but windows powershell weird Syntex.
r/AskProgramming • u/Maleficent-Bug-2045 • Sep 26 '25
Is UI/UX just phenomenally bad nowadays?
Let me give you an example. I use a hotel app. You click “stay” and you get a dropdown list of locations. You pick one. Then you click “search rooms”. Next you get a room selection page. But, at the top is a new dropdown to…well, “choose location”.
This is a minor example. I have used apps that you can’t login to from the opening page, but need to learn and memorize the app first to know where to go. And calendars for scheduling that show your time zone as being selected, then show the times in the other persons time zones.
Another one that bugs me is no instructions, but you have to swipe diagonally to two fingers to get where you want. .
Whenever I mention this, people say the UI/UX dedicated professionals designed it, not the coders.
But one would think the only value of such people would be better ergonomics than programmers would likely come up with. This is often blatantly untrue.
Why is this?