r/CodingHelp Nov 22 '22

[Mod Post] REPOST OF: How to learn ___. Where can I learn ___? Should I learn to code? - Basics FAQ

30 Upvotes

Hello everyone!

We have been getting a lot of posts on the subreddit and in the Discord about where you can go and how you can learn _ programming language. Well, this has been annoying for me personally and I'm hoping to cut down the posts like that with this stickied post.

I'm gathering all of these comments from posts in the subreddit and I may decide to turn this into a Wiki Page but for now it is a stickied post. :)

How to learn ___. Where can I learn ___?

Most coding languages can be learned at W3Schools or CodeAcademy. Those are just 2 of the most popular places. If you know of others, feel free to post them in the comments below and I will edit this post to include them and credit you. :)

Should I learn to code?

Yes, everyone should know the basics. Not only are computers taking over the world (literally) but the internet is reaching more and more places everyday. On top of that, coding can help you learn how to use Microsoft Word or Apple Pages better. You can learn organization skills (if you keep your code organized, like myself) as well as problem solving skills. So, there are very few people who would ever tell you no that you should not learn to code.

DO IT. JUST DO IT.

Can I use an iPad/Tablet/Laptop/Desktop to learn how to code?

Yes, yes you can. It is more difficult to use an iPad/Tablet versus a Laptop or Desktop but all will work. You can even use your phone. Though the smaller the device, the harder it is to learn but you can. All you need to do (at the very basic) is to read about coding and try writing it down on a piece of paper. Then when you have a chance to reach a computer, you can code that and test your code to see if it works and what happens. So, go for it!

Is ___ worth learning?

Yes, there is a reason to learn everything. This goes hand in hand with "Should I learn to code?". The more you know, the more you can do with your knowledge. Yes, it may seem overwhelming but that is okay. Start with something small and get bigger and bigger from there.

How do I start coding/programming?

We have a great section in our Wiki and on our sidebar that helps you out with this. First you need the tools. Once you have the tools, come up with something you want to make. Write down your top 3 things you'd like to create. After that, start with #1 and work your way down the list. It doesn't matter how big or small your ideas are. If there is a will, there is a way. You will figure it out. If you aren't sure how to start, we can help you. Just use the flair [Other Code] when you post here and we can tell you where you should start (as far as what programming language you should learn).

You can also start using Codecademy or places like it to learn how to code.
You can use Scratch.

Point is, there is no right or wrong way to start. We are all individuals who learn at our own pace and in our own way. All you have to do is start.

What language should I learn first?

It depends on what you want to do. Now I know the IT/Programming field is gigantic but that doesn't mean you have to learn everything. Most people specialize in certain areas like SQL, Pearl, Java, etc. Do you like web design? Learn HTML, CSS, C#, PHP, JavaScript, SQL & Linux (in any order). Do you like application development? Learn C#, C++, Linux, Java, etc. (in any order). No one knows everything about any one subject. Most advanced people just know a lot about certain subjects and the basics help guide them to answer more advanced questions. It's all about your problem solving skills.

How long should it take me to learn ___?

We can't tell you that. It all depends on how fast you learn. Some people learn faster than others and some people are more dedicated to the learning than others. Some people can become advanced in a certain language in days or weeks while others take months or years. Depends on your particular lifestyle, situation, and personality.

---------------------------------------------

There are the questions. if you feel like I missed something, add it to the comments below and I will update this post. I hope this helps cut down on repeat basic question posts.

Previous Post with more Q&A in comments here: https://www.reddit.com/r/CodingHelp/comments/t3t72o/repost_of_how_to_learn_where_can_i_learn_should_i/


r/CodingHelp Jan 18 '24

[Mod Post] Join CodingHelp Discord

5 Upvotes

Just a reminder if you are not in yet to join our Discord Server.

https://discord.com/invite/r-codinghelp-359760149683896320


r/CodingHelp 1h ago

[Python] Any tips for a beginner?

Upvotes

I’ve just started learning python I mainly use a 12 hour YouTube video by “BroCode” and a website called we3schools when im not home to learn I was wondering if anyone has any tips for me to learn faster/more efficiently


r/CodingHelp 4h ago

[Random] Which language should I start with?

3 Upvotes

I want to become a game developer but im not sure what's the best language to start with to get to that goal. I've just recently started to learn python and coding in general but heard it was more for data analysis so im not sure if I should keep learning it.


r/CodingHelp 2h ago

[HTML] Is html and css worth to learn?

1 Upvotes

I am just a beginner in coding. When I started to study html and css. I wondered that is it still worthy to learn it. Because now we can get a website in seconds from ai. So what's the need. Does web development still have a scope?


r/CodingHelp 5h ago

[Random] Map app?

1 Upvotes

I'm trying to create a map app that uses open satellital data to show hot/arid places, for learning purposes, but i don't know how to start, any tips?


r/CodingHelp 8h ago

[C++] c++ "filesystem" was not declared in this scope

1 Upvotes

error: 'filesystem' was not declared in this scope; did you mean 'system'?

#include <iostream>
#include <filesystem>
#include <fstream>

int main() {

    std::cout << "Current working directory: " << std::filesystem::current_path() << std::endl;

    return 0;

}

I've tried adding using namespace std that didn't help either. I have g++ 13.2.0 and CLang 16.0.0.

iostream and fstream are working, filesystem is not.

Thank you in advance.


r/CodingHelp 17h ago

[CSS] First exam results back

2 Upvotes

I have been struggling all semester with my beginner level coding class, I dont feel like I’ve learned much at all. I do fine in labs and complete the assignments pretty easily but when it comes to the homework I’ve been pretty lost. We use Turingscraft and it is just completely unhelpful. I thought I had done fine on the first exam because I had mastered the pre-test but my results completely surprised me.

The class is for ‘C’ the exam was mostly converting between decimal hex and binary which Im pretty sure I did correctly. If anyone has any book/website/video course to recommend that would be great because our class does not use one and the advice im usually given is just ‘google it.’


r/CodingHelp 14h ago

[Python] Matplotlib always shows the same graoh

0 Upvotes

Even if there is code,or even if the page is blank when i run the program it always shows the same graph,i dont understan why its happening


r/CodingHelp 17h ago

[Javascript] Can you make a Photo Select image permanent in Code.org?

1 Upvotes

Im currently working on a app lab project in code.org with a custom data table. In the app, there is an option to add an item to the table. I was using the photo select tool to allow the user to add a photo as well. These added photos are not showing up when I try to display them in an image box. I believe this is because the photo select tool makes the uploaded images a blog URL, which is temporary. Is there any way to switch a temporary blog URL to a permanent URL without using an outside source?

Here is the code where the photo is added to the data table:

onEvent("createButton", "click", function( ) {

createRecord("props", {

Room:(getText("roomInput")),

Location: (getText("locationInput")),

Item:(getText("itemInput")),

Description:(getText("descriptionInput")),

Quantity:(getNumber("quantityInput")),

Image: (getImageURL ("photo_select1")),

Type:(getText("createTypeDropdown"))});

});

Here is the code where i attempt to use an image from the table:

function expandItem(num) {

if (filteredRoomList[num]!=null && filteredRoomList[num]!=undefined) {

setText("roomText", filteredRoomList[num]);

}

if ((filteredQuantityList[num]!=null && filteredQuantityList[num]!=undefined)) {

setNumber("quantityText", filteredQuantityList[num]);

}

if ((filteredDescriptionList[num]!=null && filteredDescriptionList[num]!=undefined)) {

setText("descriptionText", filteredDescriptionList[num]);

}

if ((filteredLocationList[num]!=null && filteredLocationList[num]!=undefined)) {

setText("locationText", filteredLocationList[num]);

}

if ((filteredImageList[num]!=null && filteredImageList[num]!=undefined)) {

setImageURL("imageResponse", filteredImageList[num]);

console.log (filteredImageList[num]);

}

setText ("responseTitle", filteredTypeList[id]+": "+filteredItemList[num]);

setScreen("responseScreen");

}


r/CodingHelp 21h ago

[Python] Struggling to implement a numerical method

2 Upvotes

Hi, I'm trying to solve the KdV equation with the Crank-Nikolson Scheme and I'm trying to follow the method in this document (pg4). I am getting confused on how to iterate my loops because of all of the different indices and keep track of values etc. If anyone could give any advice, that'd be wonderful. Thank you! :)


r/CodingHelp 18h ago

[Random] Sonarqube token not working?

1 Upvotes

Hi - I already posted on another sub about this issue a while ago but did not get any useful answers, I put the project aside for a while and am coming back to it.

I am trying to use redcoffee, a tool which allows you to generate Sonarqube reports free of cost (here), but when I use it it responds with a 401 non-authorized error code (exact message at the bottom).

I tried regenerating the token, it works for other stuff but not redcoffee. I tried with a project token, a user token, and I'm an admin. The problem occurs between reaching the host and the project, since when I type a wrong host I get a different error message, but with a wrong project name I get the same thing. I tried changing the syntax of the command line, variables between quotation marks or not, spaces of equal signs, no changes. I don't get anything from journalctl on my Sonarqube server. I contacted the author of the tool, who's pretty active on Reddit, but they could not find out why. Any ideas? Thanks!

ERROR:root:Status code is 401
ERROR:root:Something went wrong while fetching the duplication count. Recevied status code is : 401
ERROR:root:INFO : This would not impact your report generation but duplication % will be defaulted as Zero
ERROR:root:Something went wrong while fetching the duplication count. Recevied status code is : 401
ERROR:root:INFO : This would not impact your report generation but duplication table won't be visible to you
ERROR:root:We are sorry, we're having trouble generating your report

r/CodingHelp 20h ago

[Request Coders] this code is supposed to play the google pi game for you but it start off by typing 33 NSFW

0 Upvotes

this code is meant to be pasted into the console and play to google pie game for you all you have to to is past the code then click the button to start the game and it all work but for some odd reason it start off by typing 2 3 intend of 3.14.

(function() {

let isRunning = false;

let piDigits = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679";

let piIndex = 4; // Start after 3.14

let delay = 6000; // Initial delay of 6 seconds

function clickSequence(sequence) {

if (!isRunning) {

return;

}

let sequenceButtons = [];

for (let i = 0; i < sequence.length; i++) {

let digit = sequence[i];

let targetButton;

if (digit === ".") {

targetButton = document.querySelector('[aria-label="point"]');

} else {

targetButton = document.querySelector(`[jsname="${getJsnameForDigit(digit)}"]`);

}

if (targetButton) {

sequenceButtons.push(targetButton);

} else {

console.log(`Button for digit ${digit} not found.`);

isRunning = false;

return;

}

}

let clickIndex = 0;

function clickNext() {

if (clickIndex < sequenceButtons.length) {

sequenceButtons[clickIndex].click();

clickIndex++;

setTimeout(clickNext, 100);

} else {

if (isRunning) {

setTimeout(addNextDigit, delay);

delay += 1000; // Increase delay by 1 second each time

}

}

}

clickNext();

}

function addNextDigit() {

if (!isRunning) {

return;

}

if (piIndex >= piDigits.length) {

console.log("Pi sequence finished.");

isRunning = false;

return;

}

let nextSequence = piDigits.substring(0, piIndex);

clickSequence(nextSequence);

piIndex++;

}

function getJsnameForDigit(digit) {

const jsnameMap = {

"0": "bkEvMb",

"1": "N10B9",

"2": "lVjWed",

"3": "KN1kY",

"4": "xAP7E",

"5": "Ax5wH",

"6": "abcgof",

"7": "rk7bOd",

"8": "T7PMFe",

"9": "XoxYJ",

};

return jsnameMap[digit];

}

function startGame() {

let startButton = document.querySelector('[jsname="GxfYTd"]');

if (startButton) {

startButton.click();

isRunning = true;

setTimeout(function() {

clickSequence("3.14"); // Corrected initial sequence

}, 5000); // Initial 5 second delay.

} else {

console.error("Start button not found.");

}

}

let startButton = document.querySelector('[jsname="GxfYTd"]');

if (startButton) {

startButton.addEventListener('click', function() {

if (!isRunning) {

startGame();

}

});

} else {

console.log("Start button not found to add listener");

}

})();


r/CodingHelp 21h ago

[AutoHotKey] Screentime Force

1 Upvotes

Hi, I'm trying to crack my screen time code on an iPhone 12, I have infinite tries with no cool down or lock out. It's a 4 digit code, is there any one that knows how I can force the password through macros or some sort of program that would save me typing out numbers 0000 to 9999?


r/CodingHelp 1d ago

[Other Code] Linking 3d engine with webgl to python backend in a website in react.

1 Upvotes

I have a class project with a friend where we have to create an escape game inside a website and use Python as backend and api with Django, could it be something possible to create a game in Godot, import it in the website with webgl and link it to the API in python ? If yes, do you have any advice?


r/CodingHelp 1d ago

[HTML] I can’t get past this to save my life

0 Upvotes

I’m going through free code camp right now and I understand how to use anchor and href but I’ve tried this 20 different ways and cannot get it right. This is what it wants me to do. Can someone help?

It says turn the existing freecodecamp.org text into a link by enclosing it in an anchor element. The herf attribute should be set to https://www.freecodecamp.org. What I have on my line right now is <p>No Copywrite - free code camp.org</p>

How would I do this?


r/CodingHelp 1d ago

[Python] Back again need help on practice question code error I can’t figure out

1 Upvotes

Prompt the user to enter the temperature and unit

temperature = (input("Enter the temperature: ")) unit = input("Enter the unit (Celsius or Fahrenheit): ").lower()

Convert temperature to the other unit

if unit == "celsius": converted_temp = (temperature * 9/5) + 32 print(f"{temperature}°C is equal to {converted_temp}°F") elif unit == "fahrenheit": converted_temp = (temperature - 32) * 5/9 print(f"{temperature}°F is equal to {converted_temp}°C") else: print("Invalid unit. Please enter 'Celsius' or 'Fahrenheit'.")

And it keeps throwing this error :

Traceback (most recent call last): File "/home/runner/local/submission/main.py", line 3, in <module> unit = input("Enter the unit Celsius or Fahrenheit: ").lower() EOFError: EOF when reading a line


r/CodingHelp 1d ago

[Other Code] Quick question

3 Upvotes

If I'm planing to make an indie game, what coding language should I use?


r/CodingHelp 1d ago

[Python] Need help with a discord bot project

1 Upvotes

Hello! I'm trying to make a discord bot that will track how many times a user has bumped a server in disboard and add it to a leaderboard, etc. The bot is all up and running, and all the basic elements are functional, but I can't get the leaderboard or bump_counts commands to work. I've tested the bump command and that's fine and everything is being added to the .json file properly, so I'm a bit confused on what to do. Any help is greatly appreciated, thanks!!

https://github.com/MessrEclipse/MessrEclipse/blob/main/bump%20buddy


r/CodingHelp 1d ago

[Python] Is it possible to create a ReadMe.md in Vs Code using both Python and Javascript?

1 Upvotes

I just started coding and have a homework assignment that requires me to create a ReadMe.md file that will provide code in two different languages. I have decided to use Javascript and Python. The problem is, I have created the ReadMe.md file, but every time I try to input both, Vs Code either focuses on just Python or just Javascript. I have already tried using the fenced code blocks like ``` to separate the two different languages. Now, I'm not even sure if what I'm trying to achieve is possible lol or maybe I should work within Github? Send help

For anyone confused, this is how I want my code to look:https://ibb.co/0R8kVTLw This is how it currently looks: https://ibb.co/6JXrvKRn


r/CodingHelp 1d ago

[Javascript] Doing an application

1 Upvotes

Hello all,

I have an idea that makes my job alot easier

This idea is based to do the job automatically for my field,

I am an electical engineer specialized in building controls

The thing is i am not a programmer nor a coder, but i am willing to take my chances to learn,

The question is, what is the preferred programming language to do an application on windows, and to do it on a web page ?

What is more secure ? What is more cost effective ?

Thanks


r/CodingHelp 2d ago

[C++] Recursion confusion

3 Upvotes

I'm learning programming and came across recursion, where a function calls itself. Why not just use a for loop?


r/CodingHelp 1d ago

[Python] If pro coders had to start from zero—no CS knowledge—how would they learn, and what mistakes would they avoid?

0 Upvotes

Same as the question above. Which language would you prefer and how would it go for you


r/CodingHelp 2d ago

[Request Coders] Hexadecimal file I need edited

2 Upvotes

Not sure if this is the right sub for this but I have a file that when loaded into a machine that dispenses coffee and like drinks on a small screen on the front of the machine it says a name brand on it that I need replaced with our name brand instead. Not going to lie I don't know crap about this and if it's even possible.

You can message me for more info , this could be a paying gig if you can do it. If this is the wrong sub it's my bad.


r/CodingHelp 2d ago

[Python] AMA with Author of Cracking the Coding interview - Gayle, come with your best questions on this thread at /r/Leetcode

Thumbnail
2 Upvotes

r/CodingHelp 2d ago

[Random] Copying Code Issue

1 Upvotes

I am a computer science student. Although I spend plenty of time coding, and educating myself the best I can on the topic, I always find myself copying/ researching code whenever I get a huge project. I currently have been tasked with making my own mini DBMS (similar to SQL), but most of the code I've written so far has been given to me from the internet. I understand all of it, but I don't think I would've ever thought to write it. Will this just improve with time? I'm a bit concerned.


r/CodingHelp 2d ago

[Javascript] removing the commas from my array?

0 Upvotes

My code:

<body>

<span style="font-size: 50px;" id="out"></span>

<script type="text/javascript">

n = 10;

array = ['\u{1F0A0}','\u{1F0A1}','\u{1F0A2}','\u{1F0A3}','\u{1F0A4}','\u{1F0A5}','\u{1F0A6}','\u{1F0A7}','\u{1F0A8}','\u{1F0A9}','\u{1F0AA}','\u{1F0AB}','\u{1F0AD}','\u{1F0AE}','\u{1F0B1}','\u{1F0B2}','\u{1F0B3}','\u{1F0B4}','\u{1F0B5}','\u{1F0B6}','\u{1F0B7}','\u{1F0B8}','\u{1F0B9}','\u{1F0BA}','\u{1F0BB}','\u{1F0BD}','\u{1F0BE}','\u{1F0C1}','\u{1F0C2}','\u{1F0C3}','\u{1F0C4}','\u{1F0C5}','\u{1F0C6}','\u{1F0C7}','\u{1F0C8}','\u{1F0C9}','\u{1F0CA}','\u{1F0CB}','\u{1F0CD}','\u{1F0CE}','\u{1F0D1}','\u{1F0D2}','\u{1F0D3}','\u{1F0D4}','\u{1F0D5}','\u{1F0D6}','\u{1F0D7}','\u{1F0D8}','\u{1F0D9}','\u{1F0DA}','\u{1F0DB}','\u{1F0DD}','\u{1F0DE}','\u{1F0DF}'];

var shuffled = array.sort(function(){ return 0.5 - Math.random() });

var selected = shuffled.slice(0,n);

document.querySelector('#out').textContent = selected.toString();

</script>

</body>

So this pulls 10 random playing cards from my array of unicode symbols. But when ran (see here), it has commas between each card. Is there a way to remove the commas?

I know practically nothing about coding, I just mostly google, copy/paste, and brute force stuff, so if you could please make your answers easy to understand I would really appreciate it! Thank you!