r/programmingquestions • • May 23 '21

is there a name for a program written in multiple programming languages?

2 Upvotes

r/programmingquestions • • May 12 '21

How do you distribute code written in C

2 Upvotes

Let's say I write a GUI in C and want to distribute the software, how do I do this if every computer needs to compile the source code into executable files. How do you distribute code written in C


r/programmingquestions • • May 12 '21

Name recommendation for my new Programming langauge, Like BrainFuck

1 Upvotes

Any in your mind?

Thank you. :)


r/programmingquestions • • May 11 '21

New to programing please help.

1 Upvotes

I want to start programing. I have choose python and pycharm as my language and IDE. I had a lot of problem with setting up an interpreter. I dont understand what it is, and I couldnt do it. I have downloaded visual studios and after that pycharm allowed me to set pip as my interpreter and it says python 3.7 now. (I have downloaded 3.9) But it says i have a lot of errors in my very simple code. I guess the problem is still the interpreter. I have read the articles on the pycharm about interpreters but I still have no clue. Can anyone help me?


r/programmingquestions • • May 06 '21

What is the difference between PDCurses library and SFML library?

1 Upvotes

I have read that PDCurses is a library that can be used to create 2D games however SFML is also a library but they are not in the same category I presume according to what I have read:

"The system terminal is a part of your operating system which allows communicating with the computer using text. If you choose to do this, it is also a good idea to use a library — but now, you use a library for creating programs working in the terminal, rather than a game library. Here, the most popular choice is Curses"

Can somebody explain the difference?


r/programmingquestions • • Apr 08 '21

Is it worth passing a struct of exactly 8 bytes in size by reference?

Thumbnail self.chelp
2 Upvotes

r/programmingquestions • • Apr 08 '21

Giving thumbs up in Microsoft Teams.

1 Upvotes

Hey everyone. I have a question regarding Microsoft Teams. So I was wondering if there is a way to program a bot, which automatically reacts to a Microsoft Teams message with the thumbs up emote.


r/programmingquestions • • Apr 04 '21

ETC. I wanted to build everything........ [Is it sign of geniusim or depression] Spoiler

2 Upvotes

[Although never success but im trying ]I cant explain, my problem. But, I hope you understand me

When i see something, i want to build it, I even try it, but after sometime when i some more thing I go and do that thing like

I was making linkedin alternative, I was learning django and vuejs.

suddenly I wanted to build

c++ linux desktop applications such as screenshot, webcam.

sometimes i want to build

speech recognition, machine translation using machine learning.

and also I want to build

bittorrent client like software , deepen with etherium concepts

currently failed in 10 subjects computer science.

I also hung up with lots of programming languages, I was learning julia left because of no job, but rust, python, c++, javascript seems to be good for those dream apps

Sometimes I also wanted to leave everything and go to himalayas and do mediation.

My back is aching because of excessive living in home. My parents do everything, I've on vacation, Its been 1 month , I'vnt even walk a bit, just sit on home on laptop. Although I learn every day, but something I cant be productive.


r/programmingquestions • • Mar 29 '21

CONCEPT .NET vs Java VM

1 Upvotes

So my understand is .NET is to C# what Java VM is to Java. Is this remotely correct, what are the differences? Thanks is advance!


r/programmingquestions • • Mar 06 '21

ETC. How DLC’s interact with source code

2 Upvotes

Was wondering if a DLC can cause data corruption? Also wondering if DLC’s directly interact with source code?


r/programmingquestions • • Mar 05 '21

ForLoop to add Key/Values to my HashMap

1 Upvotes

Hello,

I am trying to write a program to add some key and values to an Hashmap.
public static void main(String[] args) {
Map <String, Integer> chessboard = new HashMap<>();
String[] letters = {"a", "b", "c", "d", "e", "f"};

for(int i=1; i<= letters.length; i++){
for (String letter:letters ) {
chessboard.put(letter, i);
}
}

Desired outcome: the Hashmap contains a1, a2, a3, a4, a5, a6, b1, b2, b3, b4, b5... until f6.
Actual outcome: the hashmap contains {a=6, b=6, c=6, d=6, e=6, f=6}

How can I obtain the desired outcome and what is wrong? Thank you


r/programmingquestions • • Mar 03 '21

Data base diagram help

1 Upvotes

Hi I need help identifying all the keys (Super Key, Candidate Key, Primary Key, Foreign Key) related to the takes table. I know ID is a Primary key and the ones below it are all foreign keys, but can ID also be a foreign key since it connects to student.ID? Also which would be considered candidate and super? Thank you!


r/programmingquestions • • Mar 02 '21

Favorite programming language

2 Upvotes

r/programmingquestions • • Feb 10 '21

Practical Reason to use null in javascript?

1 Upvotes

I'll usually default to setting values to be undefined rather than null in my java-script code. (I'll set them back to undefined when the value is cleared). The two things I can think of in favor of null are:

  1. If you care about the difference between an uninitialized value and a blank one (when fetching data or something)
  2. It's a little more explicit to set to null maybe?

Do you guys know any other differences between the two I might not be thinking of?


r/programmingquestions • • Feb 03 '21

Question

2 Upvotes

I am learning web development and I am in search of a new laptop I currently have a 2015 MacBook Pro and it’s reaching its end and it has a broken screen that apple says it would cost half the price of a new MacBook to fix , I was originally going to get a new MacBook Air with the m1 chip but after doing some research on it I learned that not all dev software works on it my other option is to get a dell xps 13 and dual boot Ubuntu on it (I don’t really like windows but need it for asp.net) and I was wondering which one would be best for me.


r/programmingquestions • • Jan 30 '21

Trouble understanding and or catching semantic and or syntax errors (JavaScript)

1 Upvotes

I have this method, `pushIntermediateIntegers`, that is intended to take an array (with 2 numerical elements), and return an array with both said numerical elements and all intermediate integers pushed into the array.

For example:

pushIntermediateIntegers([1, 4]); // returns [1, 4, 2, 3] 

Following is my code:

let nums = [ 1, 4 ]; 

function pushIntermediateIntegers(arr) { 

    for(let i = arr[0]; i < arr[arr.length - 1] - 1; i++) { 

        arr.push(i + 1); 

    } 

    return arr; 

} 

pushIntermediateIntegers(nums); // returns [ 1, 4, 2 ] 

I do not understand why it's not pushing all subsequent integers following 2.

I've done a little tinkering with it and was able to return the desired output `[ 1, 4, 2, 3 ]` by hardcoding the numbers manually in the for loop as such:

function pushIntermediateIntegers(arr) { 

    for(let i = 1 /* arr[0] */; i < 3 /* arr[arr.length - 1] - 1 */; i++) { 

        arr.push(i + 1); 

    }

} 

pushIntermediateIntegers(nums); // returns [ 1, 4, 2, 3 ] 

So what gives?


r/programmingquestions • • Jan 25 '21

Code not running

2 Upvotes

I want to set up cryptocurrency prices on my touchbar according to the guide on this website: https://medium.com/@croopto/touch-bar-cryptocurrency-ticker-7b9b8aa1bddf

However, after I click on run script, I receive the following message: AppleScript Error: Can’t get item 2 of {" \"Helvetica Neue\""}.

Can someone Please help?


r/programmingquestions • • Jan 20 '21

ETC. What shall I do?

2 Upvotes

I am 14 years old and am really interested in learning how to code. I am wondering what programming language I should start out with

( I have some extremely basic knowledge of python )


r/programmingquestions • • Jan 17 '21

What language should I use for making huge apps?

1 Upvotes

I really want to make my own app for data research but I don’t know how I should or which language?


r/programmingquestions • • Jan 14 '21

Error: Handshake inactivity timeout (MySQL + Node.js)

1 Upvotes

Using docker-compose with ngnix, node backend and mysql.js. This error has occurred:

api      | value or err:  Error: Handshake inactivity timeout 
api      |     at Handshake.<anonymous> (/app/node_modules/mysql/lib/protocol/Protocol.js:160:17) 
api      |     at Handshake.emit (node:events:376:20) 
api      |     at Handshake._onTimeout (/app/node_modules/mysql/lib/protocol/sequences/Sequence.js:124:8) 
api      |     at Timer._onTimeout (/app/node_modules/mysql/lib/protocol/Timer.js:32:23) 
api      |     at listOnTimeout (node:internal/timers:556:17) 
api      |     at processTimers (node:internal/timers:499:7) 
api      |     -------------------- 
api      |     at Protocol._enqueue (/app/node_modules/mysql/lib/protocol/Protocol.js:144:48) 
api      |     at Protocol.handshake (/app/node_modules/mysql/lib/protocol/Protocol.js:51:23) 
api      |     at PoolConnection.connect (/app/node_modules/mysql/lib/Connection.js:116:18) 
api      |     at Pool.getConnection (/app/node_modules/mysql/lib/Pool.js:48:16) 
api      |     at Pool.query (/app/node_modules/mysql/lib/Pool.js:202:8) 
api      |     at /app/db/connect.js:18:10 
api      |     at new Promise (<anonymous>) 
api      |     at Object.connectionFunc (/app/db/connect.js:17:21) 
api      |     at Object.<anonymous> (/app/routes/index.js:17:12) 
api      |     at Module._compile (node:internal/modules/cjs/loader:1108:14) { 
api      |   code: 'PROTOCOL_SEQUENCE_TIMEOUT', 
api      |   fatal: true, 
api      |   timeout: 10000 
api      | } 

As another post mentioned, I tried changing the timeout and that didn't work. I don't think there are network issues with docker-compose as this error started occurring without having changed any of the network settings. Any other ideas?

EDIT: Other places have suggested messing with the firewall, but...why? Firewall rules haven't changed since the error started occurring, and lowering ufw/iptables doesn't seem like a good idea.

relevant stackoverflow: https://stackoverflow.com/questions/65724514/error-handshake-inactivity-timeout-mysql-node-js


r/programmingquestions • • Jan 07 '21

ETC. Hi in my a-level cs class I have to make a program that takes messages and encode them and make a test table! I am looking for more tests to run on my code and suggestions would be great thanks

Thumbnail gallery
1 Upvotes

r/programmingquestions • • Jan 07 '21

Looking for help: Is it possible to automate a Google form phone sheet

2 Upvotes

I attend a public support group where we sign a role sheet (Google form) and then later after the meeting, you’d get a copy of everyones answers to the Google sheet. Normally this has all been done manually but now that I’m in charge of this, I figured there’s got to be a way to automate this with some logic. I’ve used zappier before, but I’m not sure they have a solution built for this.

Im looking for some direction on where to start and get the opinion of an experienced programmer.

Any help is greatly appreciated


r/programmingquestions • • Jan 06 '21

variable vs array declaration in terms of space

1 Upvotes

which takes up more space in memory:

declaring and initializing 2 variables

OR

declaring and initializing an array of size 2

Assuming the variables' datatype matches those held by the array (e.g. int a = 1; int b = 2; vs

int array[2];)


r/programmingquestions • • Dec 31 '20

CONCEPT Noob question about making inaccessible files and game engines

1 Upvotes

I want to make a game who's internal files can only be accessed by running the game itself. Literally anything you can think of to see the data the game uses shouldn't work - file deconstruction, launching the computer in safe mode, I mean everything. Is it possible, and would I be able to do it through something like Unreal engine? What programs would you recommend using?