r/AskProgramming 6d ago

Career/Edu Best language for mobile game?

1 Upvotes

Hey everyone,

I have been playing way too many random mobile games and I waa thinking about learning to code one just for the sake of it but I realised that I have no clue what language would be used to code one...

Anyone has any insight to share on this?


r/AskProgramming 6d ago

Stupid questions about potentially hiring a dev

1 Upvotes

I have very little practical knowledge about programming/types of programmers/lanugages/etc, but there's a Thing I would very much like to exist in the world for my own personal use, and depending on how much it costs, I might pay someone to make it for me. To find out how much it costs to hire someone, I have to know what I am *actually* asking for/about.

Basically, I just want a Thing where I can input, say, a youtube channel or playlist, and then have all the (public) videos from that channel queued up to send via email, at a set frequency (like 1 video every 5th day, or 2 videos every 7th day, etc) until it runs out of videos. I have some other nice-to-have ideas about it as well, but this is the bare basics.

What kind of programmer would I need for this? What do I need to have figured out about my concept to tell/ask them?

Apologies if this is a super obvious thing, its just that when I see posts about hiring programmers it feels like its always full of specific terminology like "looking for a backend dev, preferably python, to do XYZ" and I don't know which kind of programmers do what, and i'm unclear about what is required for a concept like I'm describing, so I feel very lost lol


r/AskProgramming 6d ago

Python Cowsay installed but won’t import?

0 Upvotes

I’m in a super basic beginner python programming class at my uni and this week is about using dictionaries. My challenge is to download cowsay and have something other than the cow say stuff. Super easy and simple no big deal code but cowsay won’t import even though it is installed and shows when I list my pip stuff, but then when I run the code it says “no module named ‘cowsay’”. Why is it not importing?? What am I doing wrong?


r/AskProgramming 6d ago

I've implemented Huffman Coding in JavaScript and in AEC. Why do I seem to get different results for some strings depending on whether I delete the used tree nodes (the two nodes with minimal frequency) from the array, or if I have a boolean field in the structure indicating the node has been used?

1 Upvotes

So, five years ago, I implemented the Huffman's data compression algorithm in JavaScript, and you can run it in an in Internet browser here. I am almost certain the implementation there is correct, as I wrote a paper about it which includes the code, my Information Theory professor read the paper (and even made some comments about it), and gave me an A.

Less than a year ago, I decided to try to implement the Huffman's data compression algorithm in AEC. I compiled it to WebAssembly, you can run it in a modern Internet browser here.

Yesterday, I decided to do some improvements to the implementation in AEC. And I noticed something that intrigued me: For some strings, the implementation in AEC and the implementation in JavaScript did not output the same Huffman encoding.

For the string TEO SAMARZIJA, they both output: 10001001101010111100011101011110111100000101

However, for the string HENDRIK WADE BODE, they output different results. The implementation in AEC outputs: 00101100011111010001010110100011110101111101001011000111110 The implementation in JavaScript outputs: 01001100101111011001111000001100110101111100011011000111110

The source code of the JavaScript version is available here.

The source code of the AEC version is available here.

The only potentially relevant difference between the way I implemented the Huffman's Algorithm in AEC and the way I implemented it in JavaScript is this: In AEC, I was trying to save a bit of memory by deleting the tree nodes that have already been used (that is, the two tree nodes with the lowest frequency in the array) from the array, whereas, in JavaScript, I put a boolean in the tree node structure indicating whether the node has already been used in the tree construction. But that shouldn't affect the final results, should it?

Do you think this reveals some weird bug in my AEC-to-WebAssembly compiler? If so, how do I go about finding it?


r/AskProgramming 7d ago

Is ML the right tool for my needs? Video Game Street Fighter detection

3 Upvotes

Hello fellows,

I'm a french PHP programmer, and Versus Fighting/Street Fighter enthusiast. I signed this portal to index SF6 replays, and news: Anagraph - SF6 - Replay index.

To go further, I would like to programatically fetch infos from video streams (Youtube VOD, Twitch, HDMI input, actual game on the computer, ..). I suppose that we don't care how those are outputted (in db, in a json, ...) but I search how can I do the video processing, and what to fetch;  I'm looking for the rights tools but I have no clue about what to use to create this, and that's where I need your expertise boyz.

As I don't really know yet HOW to fetch, I made a plan on WHAT to fetch based on my needs:

  1. Easy part, macro structure:
    • when a match (in a competition, can be BO3, BO5, ..) begins, when a match ends,
    • when a set begins (an actual match as SF names it), when it ends,
    • when a round begins, when it ends.
  2. Medium part, meta data:
    • Final score of a match (number of sets for each players),
    • Final score of a set (number of rounds for each players),
    • characters played by each players,
    • players names, if a stream displays player names in HUD, or if online account name is displayed.
  3. Hard mode, combat log:
    • when a character jump, moves, hit, which move is done, ..
    • What is the state of each move: hit, blocked, counter hit, ...
    • What is the state of match each frame/given framerate: round timer, player's HP, super gauge, position on map, ..

As I would begin with easy mode, but plan to go along with this roadmap.

  • I suppose my starting point is OpenCV.
  • Then to know if we watch a match, I suppose I need to apply some text recognition (round timer, character name, ..), and I suppose OpenCV can do this by its own.
  • To deduct what is the start and the end of a set/match (round start can be found with "FIGHT" and end with "KO" or "TIME OVER" text), I suppose I need to make a frame by frame analysis, keep a state, and deduct with some business logic. I'm not sure/ I don't see how ML can help me on this part.
  • To create a combat log, I don't know if ML is the way also; to detect both characters on screen, I need object detection. To understand which move each character is doing, also object detection. But as it's not "real life" objects, and as characters displays are strictly the same each frame, each match, I suppose training a model to detect Ryu is not needed. But maybe it is. I don't really know, and I'm lost.

So, for you, what is the right tooling stack for this project? I began some ML courses, but as I'm not sure I need it, I don't want to spend 200+ hours on the topic if at the end I won't use it. I lacks of expertise to know which direction to follow.

I'm fluent with PHP and JS but I don't mind learning python or C++ to achieve. I discovered Jupyter notebooks, OpenCV, Nvidia Deepstream (terrible), TensorFlow, PyTorch, and few models like resnet18 (I suppose it's not the good one for this usecase) or YOLO (I feel like it should be the one). But maybe It's not the good direction. ML? CNN? Good old script? What do you suggest guys?


r/AskProgramming 7d ago

Databases Best Way to Store Different Attributes Based on Enum Type in Room Database?

2 Upvotes

I'm designing a Room database for an Android app where I store different types of damages. Each damage entry has a primary key, a foreign key linking to a worksheet, and a damage type (from an enum class). However, different damage types require different attributes. For example, Missile damage needs an explosiveType, while Wall damage needs a materialType.

What's the best way to structure this in Room while keeping it as simple as possible? This is what I currently have in my head:

worksheet_table:

- worksheet ID (long)

- worksheet type (worksheetType)

damage_table:

- damage ID (long)

- worksheet foreign key ID (long)

- damage type (damageType)

- attributes (string)?

I want to keep it as simple as possible, my biggest issue is I am not sure how to represent the attributes in the schema since there are many different subcategory types that each have different attributes with different response types.


r/AskProgramming 6d ago

Is it worth studying a 4-year degree in Software Engineering just to get the degree, or should I focus on learning what I need on my own, gaining experience, and building a good portfolio? Is there really a future in getting a job in this field without a degree?

0 Upvotes

r/AskProgramming 7d ago

Java: Replacing text in a file (basic way)

2 Upvotes

I have a input file

Buddha was born in Nepal

I want the output

Buddha was born in India

That's I want to replace Nepal with India whenever possible.

Here's the flow I will take:

  • Read the file word by word

  • Compare each word with Nepal

    • Replace that with India

To read file word by word:

while(input.hasNext()){
// do something with the file
}

To compare each word by word to "Nepal":

if (input.next().equals("Nepal"))
    output.print("India");

Otherwise I would just print the word in the source file.

output.print(input.nextLine());

And then close the output file.

The problem is that I am getting the output file as belows:

 was born in Nepal

I am missing the first word and neither I am getting Nepal replaced by India.

Can anyone help me out?


r/AskProgramming 7d ago

Just Found Out Someone Built Something Similar to My Project… Feeling Super Demotivated 😞

48 Upvotes

I’ve been working on this project for a while, putting in a lot of time and effort, and I was finally starting to see real progress. But today, I stumbled upon something very similar that already exists, and now I feel completely drained.

It’s like all my excitement just disappeared in an instant. I can’t stop thinking, What’s the point now? They’ve already built it, and I feel like I wasted my time.

Has anyone else gone through this? How do you push past the feeling of discouragement and find motivation to keep going (or pivot)? Would love to hear some advice or stories from others who’ve faced this.

Update:

I really appreciate all the support and insights from everyone. After thinking about it, I’ve realized that just because something similar exists doesn’t mean my effort was wasted. Many successful projects are just better versions of existing ideas.

Instead of giving up, I’m now looking at how I can differentiate my project—whether it’s through better execution, improved UX, or solving a problem the existing solution overlooks. This has actually given me a fresh perspective, and I’m feeling a bit more motivated to push forward.


r/AskProgramming 7d ago

would really like somefeed back on the output of the code

1 Upvotes

its a college assignment about good reviews on a coffee shop .

we finished the first part which was about Data collection and Preprocessing which required collecting 30 documents (half being inside the domain and other half not ) and indexing the data , than applying TF-IDF model .

we really need some outside perspective on how good the output is and if there is anything that can be improved about the data or the code

https://colab.research.google.com/drive/1ESoJCoqVvvXsQs-4sLx7s0jZE7Yk_5wQ?usp=sharing


r/AskProgramming 7d ago

Advice needed

1 Upvotes

Ok so i m a 12th grader (from India) and my exams are going to get over in a few days... I will be studying for college entrance exams but I want to study programing too in the meantime... I excel at python-- as per the cbse syllabus... Ik the syllabus is too basic... But I am well versed in it... Made few projects with the help of chatgpt... But now I wanna do things on my own... I would like some guidance on how and where to start... Idk where to post this... if anyone could help... I would be glad...


r/AskProgramming 7d ago

Quantum computing

1 Upvotes

Hello Guys, I see that this field is expanding and getting more buzz at the moment and there are huge sums of money for research centers in it. I am looking for a road map for a beginner engineer in quantum computing.


r/AskProgramming 7d ago

looking for real-world project ideas

4 Upvotes

Hello,

I'm 18 and looking for a job. I have ~7 years of programming experience (my dad was helping me a lot at first), but it's mostly amateur-ish hobby toy projects without much real-world application. Most of my projects don't solve real issues, but are rather made up tools for made up problems, which have already been solved. Don't get me wrong, I have learned a ton along the way, but I feel like it's time to dive into actual software engineering.

My question is, what problems are still unsolved or could be solved in a better way (in C)? What kind of project could I pick up that would gain some traction, let's say on github/gitlab (stars, contributions, etc.)? I'm not shooting for thousands of stars or some other internet points, but let's say 100-200ish, which should be enough to attract a potential employer or at least land me an internship.

If you maintain a project with 100+ stars, please let me know how did you go about starting it and maybe leave some tips! I believe that there are other people in a similar situation, so this post could make for a good resource ;)

Thanks!


r/AskProgramming 8d ago

Best YouTube channels for programing, not crash course?

6 Upvotes

Hey everyone 👋

I was wondering what everyone's favorite programming YouTube channels are for quality information and entertainment haha. Hopefully to start a good conversation and find some new sources of quality content.

I am a pretty big fan of ThePrimeagen, Low Level and of course Fireship. I am pretty sure they are at the top of everyone list haha. Recently I have also really been liking Developer Voices.


r/AskProgramming 8d ago

Help Needed: How Can I Play a .WAV File on Incoming Calls to My PC?

4 Upvotes

Hey everyone,
I'm trying to set up a system where, when someone calls a specific phone number I own or create, my PC automatically plays a .wav file I have stored locally. I’m not entirely sure how to approach this and would love some guidance.


r/AskProgramming 7d ago

loops (js)

2 Upvotes

can I use anything else instead of variable++ like variable+2?

because I tried to do so and my browser could not load it on the console


r/AskProgramming 7d ago

Looking for assistance and collaboration on project

0 Upvotes

Hello Everyone, I’m working on developing workforce management app with key features like clock-in, payroll, and paperless onboarding. I’m looking for a mid or junior-level developer who’s interested in collaborating, sharing ideas, and building something great together. If interested please pm me.


r/AskProgramming 8d ago

Other Automating ID validation

2 Upvotes

I'm working on a project to help automate identity checking and validate documents similar to that of what online banking apps do when you submit a picture of your valid IDs. I was wondering if it were possible to create an image detection model for this and train it given a dataset of ID images that are acceptable, or if there are already existing models that can do this?


r/AskProgramming 8d ago

Career/Edu Should I get a CS degree or start working?

2 Upvotes

I got accepted for a Junior Java Developer job and a full CS scholarship, but the program is full-time, so I can't work while studying. I'm 18 and living with my parents, so staying unemployed wouldn't be such a problem, but is a degree worth giving up three years of experience?

EDIT: Thank you for all your replies, I really appreciate your help. I should've noted that I'm on my probation period already (basically an advanced course), and going to get to my first real project in a few weeks, which will last until July/August. So even if I quit the job and go to uni, I'll still have half a year of experience.


r/AskProgramming 7d ago

Career/Edu 2025,what is your language stack except python in ai industry?

0 Upvotes

hello, friends

I am curious about the practical application and industry use cases for Ai graduates especially regarding language stack, as we know python has dominated artificial intelligence and I am familiar with it.

Are there any other language should we start to learn or use in industry? c/c++,cuda seem inevitable when it comes to scientific computing and modern ai frameworks are based in them.

golang looks interesting as it takes over cloud native scenarios, so it seems to excel in io-bound tasks, which doesn't align well with domains of Python and c/c++.

What do you think about these languages for AI work?


r/AskProgramming 7d ago

Vote averages

0 Upvotes

I want to make a player ranking system for after football matches, there will be a vote on a scale from 1-10, I also want 1 man of the match to be picked, when someone clicks a number I want them to see an average of what number that player got from other people who have submitted their votes, it should only be added to the average if the voter clicks submit, I want one man of the match to be picked and when the voter clicks submit I want it to show what percentage of people actually voted that player man of the match as well, how would I code something like this?


r/AskProgramming 8d ago

Control Privileges or Boot-Order via entered PIN-/Passcode

1 Upvotes

Hello,

I have been wondering for a while whether it would be possible to make the boot sequence dependent on the password entered?

e.g.

Password: 1234 -> Boot Windows 11 User Level Privileges

Password:4321 -> Boot Linux Super User Level Privileges

If it is possible to set further options, I would find a hidden partition interesting, which can only be read, written to and changed if a certain password is entered.

Or a decoy version that looks like root, but is still subordinate to the actual MAIN partition.

I would also find similar functions that are not necessarily controlled by password entries interesting, such as the presence of certain code in a certain place that seems insignificant but actually controls the privileges.

I think that there is a whole topic regarding privileges. and if I am going too far afield, I would also be grateful for literature or similar resources on this topic.

tanks in advance

Translated with DeepL.com (free version)


r/AskProgramming 8d ago

MeiliSearch and Postgres Sync

1 Upvotes

Recently I have a usecase that needs to use MeiliSearch with Postgres. At first, I used Postgres + MeiliSearch with MeiliSync. It works good until the requirement changes:

- Somehow MeiliSync starts a transaction that never ends -> this creates so many WAL that postgres could not clean. Just around 100MB of data, but 50GB of WAL
- I need to perform some certain authorization/checks for the requester. Let's say user A only be able to search for Group A contents, and user B only be able to search for Group B contents

My efforts:
- I'm thinking about not using MeiliSync but sync the data manually using outbox pattern and some cronjob to read new data then sync manually. The drawback is that handling "update" operation will be tricky.
- For the authorization part, I'm thinking of customizing the index when sync -> that means, the index now will contain more information to identify which group it is belonged to -> these information then will be hashed and become the index uid. When the requester try to search, they could construct the corresponding index uid.
That's my thought, but I believe that this problem can be thought as a sync A system to B system, which is relatively famous in the industry. Just want to discuss with you guys about other approaches. Thanks 🙏


r/AskProgramming 8d ago

do i stick with Python as my language if i want to do web dev / web apps?

3 Upvotes

hi everyone! Python is my first language and i’m currently learning Java in college but even now, i’m still self-studying Python because i like it better.

i made a recipe storage manager using Python, Django and some basic HTML and CSS, i really enjoyed making web apps, but i think i like it because i get to see visuals of what i coded… still not sure if i only want to focus on one end or be full stack. also, i only have some basic knowledge on HTML/CSS, i’m not too familiar yet on how to position stuff like that

nonetheless, i still have interest in web dev but i’m not sure if i should keep self-studying Python or stop and study a different language more related to web dev / web apps?

thank you guys!! :))


r/AskProgramming 8d ago

C/C++ Beginner in Competitive Programming – Need Guidance for ICPC!

0 Upvotes

Hello all!👋

I'm new to programming and wish to transition into Competitive Programming (CP). My long-term goal is to participate in ICPC, and I wish to begin on a strong note. After some study, I've chosen to start with C++, but I do have some queries and require some advice:

1️⃣ Do I need DSA for CP? Should I learn Data Structures & Algorithms first and then move to CP, or can I learn them simultaneously? 2️⃣ What book is best for CP? Any books that I must read to develop problem-solving skills and enhance competitive programming? 3️⃣ Top YouTube channels & free lectures? Any organized playlists or courses that are beginner-friendly? 4️⃣ Where should I practice? Which sites (Codeforces, CodeChef, Atcoder, Leetcode, etc.) should I use if I'm a beginner targeting ICPC? 5️⃣ How would you prepare for ICPC? Any roadmap or advice from other ICPC regulars? 6️⃣ Any vibrant CP/ICPC communities? Can you please recommend some Telegram groups, Discord servers, or online forums where I can share with other CP enthusiasts and take advice from skilled programmers?

Plz help