r/AskProgramming • • Dec 06 '24

Other Do programmers "network" in real life?

71 Upvotes

I'm job hunting, and aware that social skills are my biggest deficit. So I feel like I should be going out to meet tech people. But where? How? And is that a normal thing to do? I live in Montreal. Where should I go meet tech people?

Or should I just put my head down, write code, and contribute to open source?


r/AskProgramming • • May 29 '24

Other How to stop a scraping bot from hitting my webpage/API. I am at my wit's end!

71 Upvotes

I have a webpage for my site that shows widgets , my site makes a GET request to my api, for example we'll say it is: api/?widget_size=55 which is visible in the JS of the page.

But I have a competitor who is constantly hitting the site page with bots, passing in one of the 500 different sizes for this widget and then, I believe scraping the resulting API response directly from the API. On my API, I utilize a 3rd party API for my distributor to get inventory, etc, and they are threatening to cut me off for the excessive requests.

So far I tried:

1) I added in an api key and a nonce to my JS, the nonce is generated on the web page
api/?widget_size=4736&public_api_key=8390&nonce=44723489237489 so there is no way to visit the API unless you legitimately come from the webpage and use the nonce first. The nonce only works one time, it is saved in my DB to ensure that we track if it is used and if it is valid, and it expires in 60 seconds. This fixed it for a bit, but the scraper figured it out and I am guessing just visit the webpage to get the entire api URL with the nonce, then visit it and scrape.

2) I added in php_referer check in the API to ensure only someone coming from the webpage can access the API, but the scraper is spoofing this

3) I added in a php session on my site to ensure the user is visiting at least one page before going directly to the /products/results page. I am guessing that a bot directly hits /products/results page whereas you can not access this page without first going to /products and searching for a size.

4) A puzzle/captcha is what was suggested but I want this as a last resort, as captchas drop my click thru rate.

None of the above has worked. Am I just not approaching this the right way? Thank you in advance for the help, as I am self taught and although I have been programming for 10 years I constantly find out I am doing things improperly or against standards.


r/AskProgramming • • Dec 22 '23

What is the best programming language to "think" in?

71 Upvotes

So, I've worked with c++,, Java, and python, all over ten years ago. I want to get back into programming, and I'm curious which language I should refresh my memory on first. I was leaning towards Java, since it's more user friendly than c++ from my memory, while python feels overly simplified, like it would be better to pick up after Java or c++. Basically, I'm wondering which language I should make my primary. I'm also concerned about which ones will be more marketable


r/AskProgramming • • Jun 07 '21

Careers Anyone else do the bare minimum at work?

71 Upvotes

Me: 26 Years old, Male, Full Stack Software Engineer Consultant (mostly dotnet core stuff)

I used to be really passionate about Software Engineering in college and when I was fresh out. But as the work years have gone by I have slowly been losing interesting in programming all together. I do the absolute bare minimum at work just to get by. I probably work 10 hours a week tbh. I make a comfy salary so why would I care about busting my ass for more? I feel like I have gotten way to comfortable with where I am at in life and I don't have the motivation to push myself beyond where I have gotten myself. Anyone else have this issue?


r/AskProgramming • • Dec 27 '20

This Github repo compiles "Hello World" in different languages, and measures the startup time of the binaries. How come FreePascal programs are so fast?

71 Upvotes

This one: https://github.com/bdrung/startup-time

All the performance chasing languages, C, C++, D, Rust, are beaten by FreePascal. Not only beaten, but it comes in at half the time of the C program, and in that repo results the only one below 0.1ms.

I assumed that C being so old, so "primitive" (simple/limited), so low level, so popular, having so much effort put into it, it would of course be the fastest, and the languages with heavier runtimes and more abstraction layers would be slower, and FreePascal is neither popular nor heavily funded.

I've run it, it does the same for me on a modern Ubuntu machine, so the relative timings on that page aren't mistake or fluke.

a) How is the FreePascal HelloWorld binary so much faster than everything else?

b) Why don't the others do whatever it does?


r/AskProgramming • • Sep 23 '20

Other A question for 8+ years programmers in the sub. What are some regrets you have in regards to your health and lifestyle throughout your years of programming?

71 Upvotes

If you could go back in time to give advice to your younger self what would you say?


r/AskProgramming • • Sep 04 '20

Do you keep your old/unfinished projects on github?

71 Upvotes

Pretty much what title says. I was wondering whether you guys keep the old projects on your github(or any similar site) or you keep it clean and only have the ones you're proud of?

Personally i actually do keep most of the projects i've worked on ever since i started programming (~6 years) and even though some of them are terrible (in terms of readability/architechture etc.) for some reason i don't want to remove them (i lie to myself i will update them).

I wonder if it can be harmful in a way, i.e. recruiter would see old project and would judge my skills based on that.


r/AskProgramming • • Jan 21 '20

How do you care for your eyes when programming?

71 Upvotes

I hope this topic belongs into this sub...

In critical weeks I have to spend ~8-12 hours programming, because of my job and my university projects and I experience exhaustion of my eyes after ~2 days. Therefore I do:

  • Turn IDEs into dark mode

  • Wear glasses that filter blue light

  • drink enough water

  • try to sleep enough

I know, its not very healthy to spend so much time programming, but sometimes you gotta what you have to.

I was wondering how experienced programmers deal with that? Any recommendations or experience?


r/AskProgramming • • May 27 '21

Anyone else bummed out posting on StackOverflow?

70 Upvotes

The past few days I have been studying programming. I believe I am understanding code a lot better than I used too compared to myself last year. I am getting comfortable with C++ so I started to make a project that revolves around classes and storing them in vectors. I was so proud of myself till I got stuck. So I had the bright idea to post on StackOverflow. The two times I did post were flagged, downvoted and then locked. Some of the kind people there did answer my question so I did get an answer (happy that I did) but I’m afraid of posting in the future. The second time I made a post I made sure to cut down on the amount of code presented and the result I wanted vs the result I was getting and still got downvoted and locked. I have read the rules and the tips/tricks but to no avail. Has anyone else had this experience? I feel like a moron.


r/AskProgramming • • Mar 15 '21

Other How do I avoid going insane while unit testing shitty code with a shitty unit testing program?

70 Upvotes

There are two problems here:

  1. The code is bad. Many variables are named value, pointer, amount... Functions are non-descriptive and it's often unclear why they are used. I'm currently testing a SD-card interfacing module, which has four functions to read the same data from the card. Why?? There are doxygen comments on the functions, but they basically just repeat the function name. Everything is a singleton, everything needs a billion functions, there is a "DataService" that deals with over a thousand variables, which are then globally accessible. There are many more problems with this code.

  2. As much as I dislike the code, I'm actually finding more bugs in the unit testing program itself than in the code. We are using VectorCast for testing. I don't know what it does to deserve its price tag, but I'm not enjoying VectorCast. Its GUI feels clunky, it has 7 different spots for error messages and yet none of those tell me in which line or at least which function that segmentation fault occured. I can't find a way to debug other than slapping print statements on everything. VectorCasts documentation is worthless and the only way to get help is through their customer service. Maybe I wouldn't feel as bad about VectorCast if I had a colleague or anyone else to help me get into it, but I'm alone with this.

Everytime I try to write a test, I just get pissed at the code or the testing program. I keep getting distracted by this. I find myself trying to manage the explosion of code complexity by stubbing every function, but then I'm not testing the unit as a whole, I'm testing each function individually. What can I do?


r/AskProgramming • • Sep 12 '20

As a junior developer, how to stand up to yourself and your coding decisions?

70 Upvotes

We got a new hire who is more experienced than most of the people in the office. He is talking shit about our code that we wrote with a previously given scope in mind (we had absolutely no idea of those new features that are requested now), taking tasks that I am working on and finishing them quicker than me, making me waste sometimes entire days that way.

He is also proposing all sorts of architectural changes to the already written code and since he is more experienced that me, I think I should listen but I also see him being too hasty about everything, often causing architectural mismatch with our other apps (and lots of bugs that now sometimes pop up and wasn't there before) and I am taking the blame for it, because I approved those decisions he made.

Honestly I feel like I somehow need to stand up to myself now, but since this is my first programming job and I am still relatively new, I don't know how to turn down some of the changes that he is proposing... My point is that the code we already have works and redoing large chunks of it might cause more trouble than it's worth (down the line we might discover that something else breaks, causing a huge headache), despite the changes he is proposing might be better in the long run... Maybe.

Seriously I am more stressed now than I was before his "help" and am already looking for a new job.

In summary, i guess I have 2 questions:

  1. Am I just running away by looking for a new job?

  2. How can I stand by the code that I have already written, considering that the scope was different when it was written and that the code works great as is currently is?

Btw I am always open to new ideas and suggestions, but not when someone straight up starts talking down on my code without knowing the context.


r/AskProgramming • • Jun 12 '20

Does anyone else get fatigued from being in "programming flow" for too long?

70 Upvotes

I'm excited about the project I'm working on, and I'm at a spot where I can work completely flexibly time-wise and really want to get it done. But I seem to have a constant pattern of:

  1. Take 15 minutes to get into flow

  2. work very efficiently for 2-3 hours

  3. crash strongly for 1-2 hours feeling quite dizzy

  4. Repeat 1-3 probably once more for the day, twice if I'm very energetic.

With non-programming work (or even Data Science work where I don't have to hold software architecture in my head), I could take small breaks in between and use things such as Pomodoro timing (25 min work burst, 5 min rest). But with programming I get completely sucked in until I crash, and it feels really inefficient to interrupt myself every x minutes.

Not sure if anyone else can relate / have any tips?


r/AskProgramming • • Jun 03 '20

When is trying to do functional programming going too far? How do I push back?

70 Upvotes

So I am working on a large JavaScript project where the now lead developer has started heavily using functional programming throughout the code base, but to a level that makes it hard to work in.

I'll give you an example - essentially he will try to never write an if statement (e.g. will create a function like "throwIf"), never write a loop, never declare variables, chain everything into massive pipe and compose functions.

All of this is, in my opinion difficult to read, maintain and debug. Especially creating hundreds of small functions you are importing everywhere which could easily be done with standard language features.

Every PR he reviews will have dozens of comments where he is trying to convert people's code to a more functional style (but not fix anything, not catching errors).

How do I deal with this? How do I push back against this as a member of the team?

Side note: have you seen people do this with JavaScript before? I've used Ramda a lot and its no big deal, but taking it to this level seems extreme?

Edit: typos, added more spaces.


r/AskProgramming • • Dec 19 '25

what if I LIKE reinventing the wheel?

69 Upvotes

what's a good path for someone who enjoys knowing absolutely everything about the system they're toying with?

What if I have a 'bad' habit at work of, instead of finding the appropriate tool, I MAKE the appropriate tool? (Of course just to find out later that it was already there in the first place, and I get told to not "reinvent the wheel")

Is there any space in this field (programming/cs/ml/computer eng (my major)) where this sort of attitude is actually acceptable, or do I need to take those slaps on the wrist way more seriously?

I UNDERSTAND its extremely inefficient. but i LIKE to do it. I like the ownership and control. There has to be SOMEWHERE in this huge ass field (or adjacent) where this is a GOOD trait!


r/AskProgramming • • Oct 28 '24

Does anyone else spend more time thinking and refactoring than actually typing code?

69 Upvotes

Hey everyone,

I often see movies and TV shows where programmers are shown continuously typing for extended periods,. But in reality, I find myself spending most of my time just thinking about the problem, planning my approach, and refactoring the code I’ve already written. I could easily spend a couple of hours coding and only write 50 lines of code.

The only case where I spend more time coding than thinking/tweaking is when I am writing something very standard, which is almost always some UI stuff, such as when I am writing a function that is triggered by a function.

I'd love to hear your thoughts.


r/AskProgramming • • Jul 31 '24

What’s one aspect of your job you wish non-developers understood better?

69 Upvotes

r/AskProgramming • • Jan 13 '24

I dont get it how am i supposed to contribute in open soure as a beginner

69 Upvotes

I have an assignment in contributing code in any open source project, and i have searched and searched and searched, yet there is literally nothing on github that a beginner can contribute to. I just dont get it how am i supposed to contribute to something just with the basic knowledge that i have got from few semesters in computer science. Im about to give up at this point, it sucks because it counts almost half my final grade, if anyone can help i would be beyond grateful.


r/AskProgramming • • Apr 23 '22

Career/Edu I'm a former employee at ThriveDX/HackerU. Do not take their courses.

69 Upvotes

ThriveDX/HackerU sells coding and other technical bootcamps to universities that rebrand them with their university label. I worked for the company for a few years in a technical position and left several months ago. Please excuse my vagueness about my specific role as I want to remain anonymous.

My purpose in writing this is to provide information to potential students before they spend thousands of dollars enrolling in a course I do not believe is worth the money.

I began working at ThriveDX/HackerU when they were a much smaller company. At the time they had a smaller selection of courses and the quality was much higher. I was excited to work there. I believed I would be helping people better their lives.

The company grew rapidly and they decided to expand their catalog of courses offered. This is where (in my opinion) things began to unravel. Management wanted these new courses developed as quickly as possible. The quality of the courses was a secondary concern. They began to enroll students in these courses long before they were fully developed.

The result of this is programs that I do not believe are worth the large investment. I have read posts from people who signed up for these courses and felt scammed. It makes me sad and angry. I am also sad because I believe the courses could have been great, but were sabotaged by upper management who seemed to care more about enrollment numbers than the quality of content produced.

For the people looking to get into technology, there are lots of free resources online to help you. For those looking for something more structured, I recommend looking for courses offered at your local community college.


r/AskProgramming • • Apr 16 '22

Javascript I got a debugging gig and I literally spent 5 minutes on it, should I accept payment?

69 Upvotes

I got a JS project to debug and I spent 5 minutes on it and I feel like I'll be scamming these people of I take their money, what do you normally do in situations like this?


r/AskProgramming • • Oct 27 '20

Breaks aren't working, how do you handle 40+hr/week programming?

69 Upvotes

I can handle tough math problems, but programming is different.

Reading code for hours or days to understand the problem, debugging for days or weeks to solve the problem. It's 100% on the moment I sit in front on the computer.

I can take breaks, but they don't seem to help.

I can only imagine that longer deadlines or working 6 or 7 days/week would be better as I'm wrecked after 3 to 6 hours of programming.

Maybe I need more caffeine. Engineering was hard, but not like programming 40 hours 100% hard.


r/AskProgramming • • Oct 12 '26

Other I had Claude decompile our own app and it found API keys we thought we’d removed.

68 Upvotes

After all the AI decompile threads lately I got curious and pointed Claude at the release build of our desktop app, which is Rust with a Tauri frontend. I mostly expected it to choke and but within an hour it had given me back something pretty close to our source. In the middle were two API keys, one for our logging service and one for the storage bucket our users upload photos to.

We did this “properly” a year ago by pulling every secret out of the repo and moving it into CI variables. Our secret scanner has been green on every PR since. Turns out we were reading them with env!(), which pastes the value into the binary at compile time. So the repo was clean and every release we’ve shipped still had the keys sitting in it in plain text.

I’ve rotated both and we’re moving uploads behind our own endpoint so the app doesn’t need storage creds at all and most importantly i have to make sure this can't slip back because the scanner was looking at the wrong thing the whole time. Do you scan the actual build output in CI and what do you use for it?


r/AskProgramming • • Dec 10 '25

A face seek comparison made me reconsider how I separate logic in my programs

68 Upvotes

I was reading about how a face seek pipeline moves through clearly defined steps, and it made me reflect on how I structure my own programs. I tend to write long blocks of logic that cover too much at once. When I tried splitting tasks into smaller parts, debugging became easier and the whole flow made more sense. For experienced developers, how do you decide when a section of logic deserves its own function? I want to improve my ability to organize code before it becomes complex.


r/AskProgramming • • Apr 03 '25

If you could only know 3 languages

68 Upvotes

What languages would you choose if you could only use/know 3?

Im not talking in a strict proffesional sense but more in a hobbyist/personal one, what 3 languages could cover most usecases that you might encounter?

Would you do something like: high-level, low-level and a web development one? Maybe even sneak in a functional language somewhere.


r/AskProgramming • • May 16 '21

Best programming YouTubers?

68 Upvotes

Hey all! I’m looking for some good YouTubers to watch that are about programming. Specifically videos of them making the projects and possibly teaching you along the way, but mostly I just want to watch someone program something! Any ideas? Thank you!